Skip to content

Commit de95293

Browse files
DylanDelobeljaviereguiluz
authored andcommitted
Fix missing trailling commas
1 parent 6f2d09c commit de95293

31 files changed

+36
-40
lines changed

best_practices/controllers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ for the homepage of our app:
111111
->findLatest();
112112
113113
return $this->render('default/index.html.twig', array(
114-
'posts' => $posts
114+
'posts' => $posts,
115115
));
116116
}
117117
}

best_practices/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ some developers configure form buttons in the controller::
132132
$form = $this->createForm(new PostType(), $post);
133133
$form->add('submit', 'submit', array(
134134
'label' => 'Create',
135-
'attr' => array('class' => 'btn btn-default pull-right')
135+
'attr' => array('class' => 'btn btn-default pull-right'),
136136
));
137137

138138
// ...

components/dom_crawler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ Pass an array of values::
397397
// sets multiple fields at once
398398
$form->setValues(array('multi' => array(
399399
1 => 'value',
400-
'dimensional' => 'an other value'
400+
'dimensional' => 'an other value',
401401
)));
402402

403403
This is great, but it gets better! The ``Form`` object allows you to interact

components/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ class, which can make this even easier::
564564

565565
$response = new JsonResponse();
566566
$response->setData(array(
567-
'data' => 123
567+
'data' => 123,
568568
));
569569

570570
This encodes your array of data to JSON and sets the ``Content-Type`` header

configuration/environments.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ configuration file:
139139
140140
$container->loadFromExtension('web_profiler', array(
141141
'toolbar' => true,
142-
143142
// ...
144143
));
145144

console/style.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ of your commands to change their appearance::
372372

373373
// After
374374
$io = new CustomStyle($input, $output);
375-
376375
// ...
377376
}
378377
}

doctrine/event_listeners_subscribers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ managers that use this connection.
106106
->register('my.listener2', SearchIndexer2::class)
107107
->addTag('doctrine.event_listener', array(
108108
'event' => 'postPersist',
109-
'connection' => 'default'
109+
'connection' => 'default',
110110
))
111111
;
112112
$container

email/spool.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ swiftmailer with the memory option, use the following configuration:
5252
// app/config/config.php
5353
$container->loadFromExtension('swiftmailer', array(
5454
// ...
55-
'spool' => array('type' => 'memory')
55+
'spool' => array('type' => 'memory'),
5656
));
5757
5858
.. _spool-using-a-file:

form/form_dependencies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ create your form::
3737
{
3838
$task = ...;
3939
$form = $this->createForm(new TaskType(), $task, array(
40-
'entity_manager' => $this->get('doctrine.orm.entity_manager')
40+
'entity_manager' => $this->get('doctrine.orm.entity_manager'),
4141
));
4242

4343
// ...

form/inherit_data_option.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ for that::
106106
public function configureOptions(OptionsResolver $resolver)
107107
{
108108
$resolver->setDefaults(array(
109-
'inherit_data' => true
109+
'inherit_data' => true,
110110
));
111111
}
112112

0 commit comments

Comments
 (0)