Skip to content

Commit ddaad83

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assetic/jpeg_optimize.rst

Lines changed: 1 addition & 1 deletion
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
),

templating.rst

Lines changed: 1 addition & 1 deletion
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)