From 3d07e1a09d76b50e6f75558310437ef04dbfaacd Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 7 Nov 2014 23:30:27 +0100 Subject: [PATCH] remove semicolons in PHP templates --- book/controller.rst | 2 +- book/from_flat_php_to_symfony2.rst | 8 ++++---- book/security.rst | 4 ++-- book/templating.rst | 12 ++++++------ book/validation.rst | 2 +- cookbook/assetic/apply_to_option.rst | 6 +++--- cookbook/assetic/asset_management.rst | 18 +++++++++--------- cookbook/assetic/jpeg_optimize.rst | 2 +- cookbook/assetic/uglifyjs.rst | 8 ++++---- cookbook/assetic/yuicompressor.rst | 6 +++--- cookbook/form/form_collections.rst | 2 +- cookbook/form/form_customization.rst | 6 +++--- cookbook/security/form_login.rst | 2 +- cookbook/security/impersonating_user.rst | 2 +- cookbook/security/remember_me.rst | 2 +- reference/forms/types/collection.rst | 2 +- 16 files changed, 42 insertions(+), 42 deletions(-) diff --git a/book/controller.rst b/book/controller.rst index 9e2cc2dd3b4..14d22bdfdd4 100644 --- a/book/controller.rst +++ b/book/controller.rst @@ -736,7 +736,7 @@ the ``notice`` message:
$message
" ?> - + By design, flash messages are meant to live for exactly one request (they're "gone in a flash"). They're designed to be used across redirects exactly as diff --git a/book/from_flat_php_to_symfony2.rst b/book/from_flat_php_to_symfony2.rst index b59e8fcc948..818dee0180b 100644 --- a/book/from_flat_php_to_symfony2.rst +++ b/book/from_flat_php_to_symfony2.rst @@ -49,7 +49,7 @@ persisted to the database. Writing in flat PHP is quick and dirty: - + @@ -121,7 +121,7 @@ is primarily an HTML file that uses a template-like PHP syntax: - + @@ -238,7 +238,7 @@ the layout: - + @@ -603,7 +603,7 @@ database and the Templating component to render a template and return a getTitle() ?> - + The layout is nearly identical: diff --git a/book/security.rst b/book/security.rst index 6741c4be9a9..1a5d90bc823 100644 --- a/book/security.rst +++ b/book/security.rst @@ -512,7 +512,7 @@ Finally, create the corresponding template:
getMessage() ?>
- +
@@ -1803,7 +1803,7 @@ the built-in helper function: isGranted('ROLE_ADMIN')): ?> Delete - + .. note:: diff --git a/book/templating.rst b/book/templating.rst index e5b7c5de7cc..727b30aa8a6 100644 --- a/book/templating.rst +++ b/book/templating.rst @@ -46,7 +46,7 @@ template - a text file parsed by PHP that contains a mix of text and PHP code: getCaption() ?> - + @@ -233,7 +233,7 @@ First, build a base layout file:
  • Home
  • Blog
  • - +
    @@ -283,7 +283,7 @@ A child template might look like this:

    getTitle() ?>

    getBody() ?>

    - + stop() ?> .. note:: @@ -637,7 +637,7 @@ The ``recentList`` template is perfectly straightforward: getTitle() ?> - + .. note:: @@ -967,7 +967,7 @@ correctly: )) ?>"> getTitle() ?> - + .. tip:: @@ -1141,7 +1141,7 @@ automatically: getDebug()): ?>

    Request method: getRequest()->getMethod() ?>

    Application Environment: getEnvironment() ?>

    - + .. tip:: diff --git a/book/validation.rst b/book/validation.rst index 3e0bfa7855f..0cd59ae5aea 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -192,7 +192,7 @@ Inside the template, you can output the list of errors exactly as needed:
    • getMessage() ?>
    • - +
    .. note:: diff --git a/cookbook/assetic/apply_to_option.rst b/cookbook/assetic/apply_to_option.rst index 1e9661327af..8d5cf98fac8 100644 --- a/cookbook/assetic/apply_to_option.rst +++ b/cookbook/assetic/apply_to_option.rst @@ -70,7 +70,7 @@ templates: array('coffee') ) as $url): ?> - + This is all that's needed to compile this CoffeeScript file and serve it as the compiled JavaScript. @@ -100,7 +100,7 @@ You can also combine multiple CoffeeScript files into a single output file: array('coffee') ) as $url): ?> - + Both the files will now be served up as a single file compiled into regular JavaScript. @@ -186,4 +186,4 @@ being run through the CoffeeScript filter): ) ) as $url): ?> - + diff --git a/cookbook/assetic/asset_management.rst b/cookbook/assetic/asset_management.rst index 90311adc4e4..6743796edba 100644 --- a/cookbook/assetic/asset_management.rst +++ b/cookbook/assetic/asset_management.rst @@ -69,7 +69,7 @@ To include JavaScript files, use the ``javascripts`` tag in any template: array('@AcmeFooBundle/Resources/public/js/*') ) as $url): ?> - + .. note:: @@ -126,7 +126,7 @@ above, except with the ``stylesheets`` tag: array('cssrewrite') ) as $url): ?> - + .. note:: @@ -178,7 +178,7 @@ To include an image you can use the ``image`` tag. array('@AcmeFooBundle/Resources/public/images/example.jpg') ) as $url): ?> Example - + You can also use Assetic for image optimization. More information in :doc:`/cookbook/assetic/jpeg_optimize`. @@ -231,7 +231,7 @@ but still serve them as a single file: ) ) as $url): ?> - + In the ``dev`` environment, each file is still served individually, so that you can debug problems more easily. However, in the ``prod`` environment @@ -268,7 +268,7 @@ combine third party assets, such as jQuery, with your own into a single file: ) ) as $url): ?> - + Using Named Assets ~~~~~~~~~~~~~~~~~~ @@ -341,7 +341,7 @@ with the ``@named_asset`` notation: ) ) as $url): ?> - + .. _cookbook-assetic-filters: @@ -417,7 +417,7 @@ into your template: array('uglifyjs2') ) as $url): ?> - + A more detailed guide about configuring and using Assetic filters as well as details of Assetic's debug mode can be found in :doc:`/cookbook/assetic/uglifyjs`. @@ -444,7 +444,7 @@ done from the template and is relative to the public document root: array('output' => 'js/compiled/main.js') ) as $url): ?> - + .. note:: @@ -567,4 +567,4 @@ some isolated directory (e.g. ``/js/compiled``), to keep things organized: array('output' => 'js/compiled/main.js') ) as $url): ?> - + diff --git a/cookbook/assetic/jpeg_optimize.rst b/cookbook/assetic/jpeg_optimize.rst index 162b859fcf9..01f67f6ebcb 100644 --- a/cookbook/assetic/jpeg_optimize.rst +++ b/cookbook/assetic/jpeg_optimize.rst @@ -69,7 +69,7 @@ It can now be used from a template: array('jpegoptim') ) as $url): ?> Example - + Removing all EXIF Data ~~~~~~~~~~~~~~~~~~~~~~ diff --git a/cookbook/assetic/uglifyjs.rst b/cookbook/assetic/uglifyjs.rst index 64d76c0a0f8..958a1c616a5 100644 --- a/cookbook/assetic/uglifyjs.rst +++ b/cookbook/assetic/uglifyjs.rst @@ -133,7 +133,7 @@ can configure its location using the ``node`` key: .. code-block:: xml - - + .. note:: @@ -208,7 +208,7 @@ apply this filter when debug mode is off (e.g. ``app.php``): array('?uglifyjs2') ) as $url): ?> - + To try this out, switch to your ``prod`` environment (``app.php``). But before you do, don't forget to :ref:`clear your cache ` @@ -284,7 +284,7 @@ helper: array('cssrewrite') ) as $url): ?> - + Just like with the ``uglifyjs2`` filter, if you prefix the filter name with ``?`` (i.e. ``?uglifycss``), the minification will only happen when you're diff --git a/cookbook/assetic/yuicompressor.rst b/cookbook/assetic/yuicompressor.rst index ee200b82e46..fedd4dab1da 100644 --- a/cookbook/assetic/yuicompressor.rst +++ b/cookbook/assetic/yuicompressor.rst @@ -102,7 +102,7 @@ the view layer, this work is done in your templates: array('yui_js') ) as $url): ?> - + .. note:: @@ -130,7 +130,7 @@ can be repeated to minify your stylesheets. array('yui_css') ) as $url): ?> - + Disable Minification in Debug Mode ---------------------------------- @@ -156,7 +156,7 @@ apply this filter when debug mode is off. array('?yui_js') ) as $url): ?> - + .. tip:: diff --git a/cookbook/form/form_collections.rst b/cookbook/form/form_collections.rst index 6871be7cdab..df8ab95ecc2 100644 --- a/cookbook/form/form_collections.rst +++ b/cookbook/form/form_collections.rst @@ -226,7 +226,7 @@ zero tags when first created).
    • row($tag['name']) ?>
    • - +
    end($form) ?> diff --git a/cookbook/form/form_customization.rst b/cookbook/form/form_customization.rst index 41361bf6775..7add50be9a4 100644 --- a/cookbook/form/form_customization.rst +++ b/cookbook/form/form_customization.rst @@ -795,7 +795,7 @@ and customize the ``form_errors`` fragment.
    • getMessage() ?>
    • - +
    @@ -860,11 +860,11 @@ fields (e.g. a whole form), and not just an individual field.
    • getMessage() ?>
    • - +
    - + diff --git a/cookbook/security/form_login.rst b/cookbook/security/form_login.rst index 79ce5f808d1..4df556c7c01 100644 --- a/cookbook/security/form_login.rst +++ b/cookbook/security/form_login.rst @@ -213,7 +213,7 @@ redirect to the URL defined by some ``account`` route, use the following:
    getMessage() ?>
    - + diff --git a/cookbook/security/impersonating_user.rst b/cookbook/security/impersonating_user.rst index c3bd0b708c6..8966357a198 100644 --- a/cookbook/security/impersonating_user.rst +++ b/cookbook/security/impersonating_user.rst @@ -84,7 +84,7 @@ to show a link to exit impersonation: > Exit impersonation - + Of course, this feature needs to be made available to a small group of users. By default, access is restricted to users having the ``ROLE_ALLOWED_TO_SWITCH`` diff --git a/cookbook/security/remember_me.rst b/cookbook/security/remember_me.rst index 7efb39f277d..668057201cf 100644 --- a/cookbook/security/remember_me.rst +++ b/cookbook/security/remember_me.rst @@ -90,7 +90,7 @@ might ultimately looks like this:
    getMessage() ?>
    - + diff --git a/reference/forms/types/collection.rst b/reference/forms/types/collection.rst index c1f270c9e82..82327fd7e4f 100644 --- a/reference/forms/types/collection.rst +++ b/reference/forms/types/collection.rst @@ -101,7 +101,7 @@ A much more flexible method would look like this: errors($emailField) ?> widget($emailField) ?> - + In both cases, no input fields would render unless your ``emails`` data array