From cbe6e454869e8a7c7dd4a9b1e106f9fe8109d7c3 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Thu, 2 May 2019 08:28:50 +0200 Subject: [PATCH] fix indention --- bundles/extension.rst | 4 +- components/cache.rst | 4 +- components/console/single_command_tool.rst | 18 ++++---- components/phpunit_bridge.rst | 8 ++-- components/translation/usage.rst | 2 +- components/var_dumper/advanced.rst | 12 ++--- components/web_link.rst | 4 +- console/input.rst | 4 +- contributing/documentation/index.rst | 18 ++++---- create_framework/routing.rst | 12 ++--- deployment/azure-website.rst | 52 +++++++++++----------- deployment/fortrabbit.rst | 4 +- deployment/platformsh.rst | 10 ++--- doctrine/reverse_engineering.rst | 21 +++++---- forms.rst | 4 +- frontend/assetic/php.rst | 12 ++--- reference/configuration/debug.rst | 4 +- reference/configuration/framework.rst | 4 +- reference/forms/twig_reference.rst | 2 +- reference/forms/types/dateinterval.rst | 2 +- security/expressions.rst | 2 +- service_container/factories.rst | 7 +-- templating.rst | 2 +- templating/PHP.rst | 2 +- translation.rst | 2 +- workflow.rst | 5 +-- 26 files changed, 111 insertions(+), 110 deletions(-) diff --git a/bundles/extension.rst b/bundles/extension.rst index dc5e5bc4c73..e119f054329 100644 --- a/bundles/extension.rst +++ b/bundles/extension.rst @@ -141,7 +141,7 @@ I/O operations and increases the application performance. .. versionadded:: 3.2 - The ``addAnnotatedClassesToCompile()`` method was introduced in Symfony 3.2. + The ``addAnnotatedClassesToCompile()`` method was introduced in Symfony 3.2. Your bundles can also add their own classes into this file thanks to the ``addClassesToCompile()`` and ``addAnnotatedClassesToCompile()`` methods (both @@ -178,7 +178,7 @@ class names:: .. versionadded:: 3.2 - The option to add classes to compile using patterns was introduced in Symfony 3.2. + The option to add classes to compile using patterns was introduced in Symfony 3.2. The classes to compile can also be added using file path patterns:: diff --git a/components/cache.rst b/components/cache.rst index 4c71012edde..43dcc370190 100644 --- a/components/cache.rst +++ b/components/cache.rst @@ -33,8 +33,8 @@ Cache (PSR-6) Versus Simple Cache (PSR-16) This component includes *two* different approaches to caching: :ref:`PSR-6 Caching `: - A fully-featured cache system, which includes cache "pools", more advanced - cache "items", and :ref:`cache tagging for invalidation `. + A fully-featured cache system, which includes cache "pools", more advanced + cache "items", and :ref:`cache tagging for invalidation `. :ref:`PSR-16 Simple Caching `: A simple way to store, fetch and remove items from a cache. diff --git a/components/console/single_command_tool.rst b/components/console/single_command_tool.rst index b4afd126a9f..46576b9c680 100644 --- a/components/console/single_command_tool.rst +++ b/components/console/single_command_tool.rst @@ -19,15 +19,15 @@ it is possible to remove this need by declaring a single command application:: use Symfony\Component\Console\Output\OutputInterface; (new Application('echo', '1.0.0')) - ->register('echo') - ->addArgument('foo', InputArgument::OPTIONAL, 'The directory') - ->addOption('bar', null, InputOption::VALUE_REQUIRED) - ->setCode(function(InputInterface $input, OutputInterface $output) { - // output arguments and options - }) - ->getApplication() - ->setDefaultCommand('echo', true) // Single command application - ->run(); + ->register('echo') + ->addArgument('foo', InputArgument::OPTIONAL, 'The directory') + ->addOption('bar', null, InputOption::VALUE_REQUIRED) + ->setCode(function(InputInterface $input, OutputInterface $output) { + // output arguments and options + }) + ->getApplication() + ->setDefaultCommand('echo', true) // Single command application + ->run(); The method :method:`Symfony\\Component\\Console\\Application::setDefaultCommand` accepts a boolean as second parameter. If true, the command ``echo`` will then diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 8512833f40a..1a7d874a24a 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -48,7 +48,7 @@ to register a new `test listener`_ called ``SymfonyTestsListener``: @@ -172,7 +172,7 @@ message, enclosed with ``/``. For example, with: @@ -499,7 +499,7 @@ namespaces in the ``phpunit.xml`` file, as done for example in the @@ -643,7 +643,7 @@ Add the following configuration to the ``phpunit.xml.dist`` file: diff --git a/components/translation/usage.rst b/components/translation/usage.rst index bf01876cdb3..b0374cbffd7 100644 --- a/components/translation/usage.rst +++ b/components/translation/usage.rst @@ -452,7 +452,7 @@ loaded/dumped when using this component inside a Symfony application: + srcLang="fr-FR" trgLang="en-US"> diff --git a/components/var_dumper/advanced.rst b/components/var_dumper/advanced.rst index 31d015793ca..e595b74a2c6 100644 --- a/components/var_dumper/advanced.rst +++ b/components/var_dumper/advanced.rst @@ -59,15 +59,15 @@ you can configure these limits: items. Specifying ``-1`` removes the limit. :method:`Symfony\\Component\\VarDumper\\Cloner\\VarCloner::setMinDepth` - .. versionadded:: 3.4 - - The ``setMinDepth()`` method was introduced in Symfony 3.4. - Configures the minimum tree depth where we are guaranteed to clone all the items. After this depth is reached, only ``setMaxItems`` items will be cloned. The default value is ``1``, which is consistent with older Symfony versions. + .. versionadded:: 3.4 + + The ``setMinDepth()`` method was introduced in Symfony 3.4. + :method:`Symfony\\Component\\VarDumper\\Cloner\\VarCloner::setMaxString` Configures the maximum number of characters that will be cloned before cutting overlong strings. Specifying ``-1`` removes the limit. @@ -85,12 +85,12 @@ Before dumping it, you can further limit the resulting Removes internal objects' handles for sparser output (useful for tests). :method:`Symfony\\Component\\VarDumper\\Cloner\\Data::seek` + Selects only subparts of already cloned arrays, objects or resources. + .. versionadded:: 3.2 The ``seek()`` method was introduced in Symfony 3.2. - Selects only subparts of already cloned arrays, objects or resources. - Unlike the previous limits on cloners that remove data on purpose, these can be changed back and forth before dumping since they do not affect the intermediate representation internally. diff --git a/components/web_link.rst b/components/web_link.rst index 997c88976b3..634da8b81b7 100644 --- a/components/web_link.rst +++ b/components/web_link.rst @@ -5,8 +5,8 @@ The WebLink Component ====================== - The WebLink component provides tools to manage the ``Link`` HTTP header needed - for `Web Linking`_ when using `HTTP/2 Server Push`_ as well as `Resource Hints`_. + The WebLink component provides tools to manage the ``Link`` HTTP header needed + for `Web Linking`_ when using `HTTP/2 Server Push`_ as well as `Resource Hints`_. Installation ------------ diff --git a/console/input.rst b/console/input.rst index c86a4a46b7f..474f97bbd48 100644 --- a/console/input.rst +++ b/console/input.rst @@ -166,8 +166,8 @@ flag: .. tip:: - You can also declare a one-letter shortcut that you can call with a single - dash, like ``-i``:: + You can also declare a one-letter shortcut that you can call with a single + dash, like ``-i``:: $this // ... diff --git a/contributing/documentation/index.rst b/contributing/documentation/index.rst index d4ccfe74310..f16f4e32cc7 100644 --- a/contributing/documentation/index.rst +++ b/contributing/documentation/index.rst @@ -5,21 +5,21 @@ These short articles explain everything you need to contribute to the Symfony documentation: :doc:`The Contribution Process ` - Explains the steps to follow to contribute fixes and new contents. It's the - same contribution process followed by most open source projects, so you may - already know everything that is needed. + Explains the steps to follow to contribute fixes and new contents. It's the + same contribution process followed by most open source projects, so you may + already know everything that is needed. :doc:`Documentation Formats ` - Explains the technical details of the reStructuredText format that is used to - write the docs. Skip it if you are already familiar with this format. + Explains the technical details of the reStructuredText format that is used to + write the docs. Skip it if you are already familiar with this format. :doc:`Documentation Standards ` - Explains how to write docs and code examples to match the style and tone of - the rest of the existing documentation. + Explains how to write docs and code examples to match the style and tone of + the rest of the existing documentation. :doc:`License ` - Explains the details of the Creative Commons BY-SA 3.0 license used for the - Symfony Documentation. + Explains the details of the Creative Commons BY-SA 3.0 license used for the + Symfony Documentation. .. toctree:: :hidden: diff --git a/create_framework/routing.rst b/create_framework/routing.rst index dd491825f4a..628a8a04d39 100644 --- a/create_framework/routing.rst +++ b/create_framework/routing.rst @@ -93,23 +93,23 @@ The ``match()`` method takes a request path and returns an array of attributes (notice that the matched route is automatically stored under the special ``_route`` attribute):: - print_r($matcher->match('/bye')); - /* Gives: + $matcher->match('/bye'); + /* Result: [ '_route' => 'bye', ]; */ - print_r($matcher->match('/hello/Fabien')); - /* Gives: + $matcher->match('/hello/Fabien'); + /* Result: [ 'name' => 'Fabien', '_route' => 'hello', ]; */ - print_r($matcher->match('/hello')); - /* Gives: + $matcher->match('/hello'); + /* Result: [ 'name' => 'World', '_route' => 'hello', diff --git a/deployment/azure-website.rst b/deployment/azure-website.rst index f96521b662b..d27e2ea3aad 100644 --- a/deployment/azure-website.rst +++ b/deployment/azure-website.rst @@ -404,32 +404,32 @@ application, configure it with the following content: .. code-block:: xml - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + As you can see, the latest rule ``RewriteRequestsToPublic`` is responsible for diff --git a/deployment/fortrabbit.rst b/deployment/fortrabbit.rst index c39de553e6a..ad1ca05aacf 100644 --- a/deployment/fortrabbit.rst +++ b/deployment/fortrabbit.rst @@ -270,8 +270,8 @@ Commit and push .. note:: - The first ``git push`` takes much longer as all composer dependencies get - downloaded. All subsequent deploys are done within seconds. + The first ``git push`` takes much longer as all composer dependencies get + downloaded. All subsequent deploys are done within seconds. That's it! Your application is being deployed on fortrabbit. More information about `database migrations and tunneling`_ can be found in the fortrabbit diff --git a/deployment/platformsh.rst b/deployment/platformsh.rst index 4629d9387bc..e1fd257f538 100644 --- a/deployment/platformsh.rst +++ b/deployment/platformsh.rst @@ -40,7 +40,7 @@ Platform.sh how to deploy your application (read more about # The type of the application to build. type: php:5.6 build: - flavor: composer + flavor: composer # The relationships of the application with services or other applications. # The left-hand side is the name of the relationship as it will be exposed @@ -68,10 +68,10 @@ Platform.sh how to deploy your application (read more about # The hooks that will be performed when the package is deployed. hooks: build: | - rm web/app_dev.php - php bin/console --env=prod assetic:dump --no-debug + rm web/app_dev.php + php bin/console --env=prod assetic:dump --no-debug deploy: | - php bin/console --env=prod cache:clear + php bin/console --env=prod cache:clear For best practices, you should also add a ``.platform`` folder at the root of your Git repository which contains the following files: @@ -111,7 +111,7 @@ following file (it's your role to add this file to your code base):: foreach ($relationships['database'] as $endpoint) { if (empty($endpoint['query']['is_master'])) { - continue; + continue; } $container->setParameter('database_driver', 'pdo_' . $endpoint['scheme']); diff --git a/doctrine/reverse_engineering.rst b/doctrine/reverse_engineering.rst index 6b6834c2101..4c2aa04717f 100644 --- a/doctrine/reverse_engineering.rst +++ b/doctrine/reverse_engineering.rst @@ -74,15 +74,18 @@ The generated ``BlogPost.orm.xml`` metadata file looks as follows: .. code-block:: xml - - - - - - - - - + + + + + + + + + Once the metadata files are generated, you can ask Doctrine to build related diff --git a/forms.rst b/forms.rst index 908acf238d9..73e3f0a7c67 100644 --- a/forms.rst +++ b/forms.rst @@ -557,8 +557,8 @@ the correct values of a number of field options. .. caution:: - These field options are *only* guessed if you're using Symfony to guess - the field type (i.e. omit or pass ``null`` as the second argument to ``add()``). + These field options are *only* guessed if you're using Symfony to guess + the field type (i.e. omit or pass ``null`` as the second argument to ``add()``). If you'd like to change one of the guessed values, you can override it by passing the option in the options field array:: diff --git a/frontend/assetic/php.rst b/frontend/assetic/php.rst index bfd314387e3..3f2db541d2e 100644 --- a/frontend/assetic/php.rst +++ b/frontend/assetic/php.rst @@ -108,10 +108,10 @@ First, configure a new ``scssphp`` Assetic filter: // app/config/config.php $container->loadFromExtension('assetic', [ 'filters' => [ - 'scssphp' => [ - 'formatter' => 'Leafo\ScssPhp\Formatter\Compressed', - ], - // ... + 'scssphp' => [ + 'formatter' => 'Leafo\ScssPhp\Formatter\Compressed', + ], + // ... ], ]); @@ -181,8 +181,8 @@ First, configure a new ``jsqueeze`` Assetic filter as follows: // app/config/config.php $container->loadFromExtension('assetic', [ 'filters' => [ - 'jsqueeze' => null, - // ... + 'jsqueeze' => null, + // ... ], ]); diff --git a/reference/configuration/debug.rst b/reference/configuration/debug.rst index 08bfaf3630a..3799288e71f 100644 --- a/reference/configuration/debug.rst +++ b/reference/configuration/debug.rst @@ -79,7 +79,7 @@ destination for dumps. Typically, you would set this to ``php://stderr``: # app/config/config.yml debug: - dump_destination: php://stderr + dump_destination: php://stderr .. code-block:: xml @@ -99,5 +99,5 @@ destination for dumps. Typically, you would set this to ``php://stderr``: // app/config/config.php $container->loadFromExtension('debug', [ - 'dump_destination' => 'php://stderr', + 'dump_destination' => 'php://stderr', ]); diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index de74aedfc8c..b731c8faf50 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -1328,7 +1328,7 @@ individually for each asset package: .. code-block:: yaml # app/config/config.yml - framework: + framework: assets: # this strategy is applied to every asset (including packages) version_strategy: 'app.asset.my_versioning_strategy' @@ -1430,7 +1430,7 @@ package: .. code-block:: yaml # app/config/config.yml - framework: + framework: assets: # this manifest is applied to every asset (including packages) json_manifest_path: "%kernel.project_dir%/web/assets/manifest.json" diff --git a/reference/forms/twig_reference.rst b/reference/forms/twig_reference.rst index d4ad0d24c5a..901d484cdb8 100644 --- a/reference/forms/twig_reference.rst +++ b/reference/forms/twig_reference.rst @@ -215,7 +215,7 @@ This test will check if the current ``form`` does not have a parent form view. {{ form_errors(form) }} {% endif %} - {# DO THIS: this check is always reliable, even if the form defines a field called 'parent' #} + {# DO THIS: this check is always reliable, even if the form defines a field called 'parent' #} {% if form is rootform %} {{ form_errors(form) }} diff --git a/reference/forms/types/dateinterval.rst b/reference/forms/types/dateinterval.rst index 75ad7091a1d..4a79b03a776 100644 --- a/reference/forms/types/dateinterval.rst +++ b/reference/forms/types/dateinterval.rst @@ -6,7 +6,7 @@ DateIntervalType Field .. versionadded:: 3.2 - The DateIntervalType field type was introduced in Symfony 3.2. + The DateIntervalType field type was introduced in Symfony 3.2. This field allows the user to select an *interval* of time. For example, if you want to allow the user to choose *how often* they receive a status email, they could use this diff --git a/security/expressions.rst b/security/expressions.rst index 16f13ab7f0d..c414fbcd4d0 100644 --- a/security/expressions.rst +++ b/security/expressions.rst @@ -43,7 +43,7 @@ Inside the expression, you have access to a number of variables: :ref:`role hierarchy ` but not including the ``IS_AUTHENTICATED_*`` attributes (see the functions below). ``object`` - The object (if any) that's passed as the second argument to ``isGranted()``. + The object (if any) that's passed as the second argument to ``isGranted()``. ``token`` The token object. ``trust_resolver`` diff --git a/service_container/factories.rst b/service_container/factories.rst index 13541bf1b0a..9485f2ec0ec 100644 --- a/service_container/factories.rst +++ b/service_container/factories.rst @@ -56,7 +56,7 @@ configure the service container to use the + class="AppBundle\Email\NewsletterManager"> @@ -123,7 +123,8 @@ Configuration of the service container then looks like this: + class="AppBundle\Email\NewsletterManager"> + + class="AppBundle\Email\NewsletterManager"> diff --git a/templating.rst b/templating.rst index 8a1c0807228..09b99cd63c8 100644 --- a/templating.rst +++ b/templating.rst @@ -108,7 +108,7 @@ with alternating ``odd``, ``even`` classes: {% for i in 1..10 %}
- +
{% endfor %} diff --git a/templating/PHP.rst b/templating/PHP.rst index b4dfd6b1973..eb88c13b856 100644 --- a/templating/PHP.rst +++ b/templating/PHP.rst @@ -536,7 +536,7 @@ resource to use such a layout: ], ], - // ... + // ... ]); If you only want to make the change in one template, add the following line to diff --git a/translation.rst b/translation.rst index c35208b1cf1..95ed03e51bb 100644 --- a/translation.rst +++ b/translation.rst @@ -305,7 +305,7 @@ texts* and complex expressions: .. code-block:: twig - {% trans_default_domain 'app' %} + {% trans_default_domain 'app' %} Note that this only influences the current template, not any "included" template (in order to avoid side effects). diff --git a/workflow.rst b/workflow.rst index befcafe1d93..85aa5c83b80 100644 --- a/workflow.rst +++ b/workflow.rst @@ -69,7 +69,7 @@ like this: - currentPlace + currentPlace AppBundle\Entity\BlogPost @@ -81,19 +81,16 @@ like this: draft - reviewed reviewed - published reviewed - rejected