Skip to content

Commit a94a25d

Browse files
author
Ahmed TAILOULOUTE
committed
Add missing trailing comma & Fix foreach code
1 parent f3eaa80 commit a94a25d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

assetic/jpeg_optimize.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ file:
293293
'twig' => array(
294294
'functions' => array(
295295
'jpegoptim' => array(
296-
'output' => 'images/*.jpg'
296+
'output' => 'images/*.jpg',
297297
),
298298
),
299299
),

form/form_collections.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ zero tags when first created).
231231

232232
<h3>Tags</h3>
233233
<ul class="tags">
234-
<?php foreach($form['tags'] as $tag): ?>
234+
<?php foreach ($form['tags'] as $tag): ?>
235235
<li><?php echo $view['form']->row($tag['name']) ?></li>
236236
<?php endforeach ?>
237237
</ul>

templating.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ correctly:
723723
.. code-block:: html+php
724724

725725
<!-- app/Resources/views/Article/recent_list.html.php -->
726-
<?php foreach ($articles in $article): ?>
726+
<?php foreach ($articles as $article): ?>
727727
<a href="<?php echo $view['router']->generate('article_show', array(
728728
'slug' => $article->getSlug(),
729729
)) ?>">

0 commit comments

Comments
 (0)