Skip to content

Commit 515d5d6

Browse files
committed
minor #10377 [Syntax] Remove unnecessary semicolons (royklutman)
This PR was merged into the 2.8 branch. Discussion ---------- [Syntax] Remove unnecessary semicolons Remove unnecessary semicolons to stay in line with the rest of the docs. Commits ------- e6c2c62 Remove unnecessary semicolons
2 parents f7e869e + e6c2c62 commit 515d5d6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/process.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ instead::
189189
use Symfony\Component\Process\PhpProcess;
190190

191191
$process = new PhpProcess(<<<EOF
192-
<?php echo 'Hello World'; ?>
192+
<?php echo 'Hello World' ?>
193193
EOF
194194
);
195195
$process->run();

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ You can also use expressions inside your templates:
967967
'"ROLE_ADMIN" in roles or (not is_anonymous() and user.isSuperAdmin())'
968968
))): ?>
969969
<a href="...">Delete</a>
970-
<?php endif; ?>
970+
<?php endif ?>
971971

972972
For more details on expressions and security, see :doc:`/security/expressions`.
973973

templating/PHP.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ Now that you've created the customized form template, you need to tell Symfony
407407
to use it. Inside the template where you're actually rendering your form,
408408
tell Symfony to use the theme via the ``setTheme()`` helper method::
409409

410-
<?php $view['form']->setTheme($form, array(':form')); ?>
410+
<?php $view['form']->setTheme($form, array(':form')) ?>
411411

412412
<?php $view['form']->widget($form['age']) ?>
413413

@@ -418,7 +418,7 @@ the ``div`` element.
418418
If you want to apply a theme to a specific child form, pass it to the ``setTheme()``
419419
method::
420420

421-
<?php $view['form']->setTheme($form['child'], ':form'); ?>
421+
<?php $view['form']->setTheme($form['child'], ':form') ?>
422422

423423
.. note::
424424

@@ -545,7 +545,7 @@ your template file rather than adding the template as a resource:
545545

546546
.. code-block:: html+php
547547

548-
<?php $view['form']->setTheme($form, array('FrameworkBundle:FormTable')); ?>
548+
<?php $view['form']->setTheme($form, array('FrameworkBundle:FormTable')) ?>
549549

550550
Note that the ``$form`` variable in the above code is the form view variable
551551
that you passed to your template.

0 commit comments

Comments
 (0)