From 48badfdeb0e187fde256387da308d881d443836c Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Wed, 3 Apr 2019 21:30:23 +0200 Subject: [PATCH] remove blank line after filepath in php code examples --- bundles/configuration.rst | 1 - components/console/changing_default_command.rst | 1 - components/yaml.rst | 1 - configuration/micro_kernel_trait.rst | 2 -- doctrine/pdo_session_storage.rst | 1 - doctrine/resolve_target_entity.rst | 3 --- form/dynamic_form_modification.rst | 1 - form/form_collections.rst | 1 - form/form_dependencies.rst | 1 - http_cache/cache_invalidation.rst | 1 - security/entity_provider.rst | 1 - service_container/factories.rst | 3 --- templating/PHP.rst | 1 - workflow/state-machines.rst | 1 - workflow/usage.rst | 1 - 15 files changed, 20 deletions(-) diff --git a/bundles/configuration.rst b/bundles/configuration.rst index bbd379a7e36..3f111cb382c 100644 --- a/bundles/configuration.rst +++ b/bundles/configuration.rst @@ -223,7 +223,6 @@ force validation (e.g. if an additional option was passed, an exception will be thrown):: // src/Acme/SocialBundle/DependencyInjection/AcmeSocialExtension.php - public function load(array $configs, ContainerBuilder $container) { $configuration = new Configuration(); diff --git a/components/console/changing_default_command.rst b/components/console/changing_default_command.rst index 29534ba7d23..c9d5a1fe1e8 100644 --- a/components/console/changing_default_command.rst +++ b/components/console/changing_default_command.rst @@ -31,7 +31,6 @@ name to the ``setDefaultCommand()`` method:: Executing the application and changing the default command:: // application.php - use Acme\Console\Command\HelloWorldCommand; use Symfony\Component\Console\Application; diff --git a/components/yaml.rst b/components/yaml.rst index adce112c41f..e2d2a5bb9b8 100644 --- a/components/yaml.rst +++ b/components/yaml.rst @@ -415,7 +415,6 @@ First, install the Console component: Create a console application with ``lint:yaml`` as its only command:: // lint.php - use Symfony\Component\Console\Application; use Symfony\Component\Yaml\Command\LintCommand; diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index 34ff0aaa11d..b3e57a8298e 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -133,7 +133,6 @@ putting *everything* in ``index.php``, create a new ``app/AppKernel.php`` to hold the kernel. Now it looks like this:: // app/AppKernel.php - use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -298,7 +297,6 @@ Finally, you need a front controller to boot and run the application. Create a ``web/index.php``:: // web/index.php - use Symfony\Component\HttpFoundation\Request; require __DIR__.'/../app/AppKernel.php'; diff --git a/doctrine/pdo_session_storage.rst b/doctrine/pdo_session_storage.rst index 273b6223369..68bea227a9b 100644 --- a/doctrine/pdo_session_storage.rst +++ b/doctrine/pdo_session_storage.rst @@ -146,7 +146,6 @@ a second array argument to ``PdoSessionHandler``: .. code-block:: php // app/config/config.php - use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler; // ... diff --git a/doctrine/resolve_target_entity.rst b/doctrine/resolve_target_entity.rst index fbb7f2744fb..3be29e3915c 100644 --- a/doctrine/resolve_target_entity.rst +++ b/doctrine/resolve_target_entity.rst @@ -40,7 +40,6 @@ brevity) to explain how to set up and use the ``ResolveTargetEntityListener``. A Customer entity:: // src/AppBundle/Entity/Customer.php - namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; @@ -60,7 +59,6 @@ A Customer entity:: An Invoice entity:: // src/Acme/InvoiceBundle/Entity/Invoice.php - namespace Acme\InvoiceBundle\Entity; use Doctrine\ORM\Mapping AS ORM; @@ -84,7 +82,6 @@ An Invoice entity:: An InvoiceSubjectInterface:: // src/Acme/InvoiceBundle/Model/InvoiceSubjectInterface.php - namespace Acme\InvoiceBundle\Model; /** diff --git a/form/dynamic_form_modification.rst b/form/dynamic_form_modification.rst index bc2d4ded53c..94be0bea3f5 100644 --- a/form/dynamic_form_modification.rst +++ b/form/dynamic_form_modification.rst @@ -251,7 +251,6 @@ Now that you have all the basics in place you can use the features of the security helper to fill in the listener logic:: // src/AppBundle/Form/Type/FriendMessageFormType.php - use AppBundle\Entity\User; use Doctrine\ORM\EntityRepository; use Symfony\Bridge\Doctrine\Form\Type\EntityType; diff --git a/form/form_collections.rst b/form/form_collections.rst index 76f6605f113..91b8371be6e 100644 --- a/form/form_collections.rst +++ b/form/form_collections.rst @@ -649,7 +649,6 @@ the relationship between the removed ``Tag`` and ``Task`` object. is handling the "update" of your Task:: // src/AppBundle/Controller/TaskController.php - use AppBundle\Entity\Task; use Doctrine\Common\Collections\ArrayCollection; diff --git a/form/form_dependencies.rst b/form/form_dependencies.rst index f10e268a423..268a285d6c7 100644 --- a/form/form_dependencies.rst +++ b/form/form_dependencies.rst @@ -77,7 +77,6 @@ Suppose you need to access the :ref:`EntityManager ` ob so that you can make a query. First, add this as an argument to your form class:: // src/AppBundle/Form/TaskType.php - use Doctrine\ORM\EntityManagerInterface; // ... diff --git a/http_cache/cache_invalidation.rst b/http_cache/cache_invalidation.rst index a67adb470c4..764ccd09610 100644 --- a/http_cache/cache_invalidation.rst +++ b/http_cache/cache_invalidation.rst @@ -51,7 +51,6 @@ Here is how you can configure the Symfony reverse proxy to support the ``PURGE`` HTTP method:: // app/AppCache.php - use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/security/entity_provider.rst b/security/entity_provider.rst index 2d0df268d17..0c410226829 100644 --- a/security/entity_provider.rst +++ b/security/entity_provider.rst @@ -345,7 +345,6 @@ This extends :class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`, so you only need the new interface:: // src/AppBundle/Entity/User.php - use Symfony\Component\Security\Core\User\AdvancedUserInterface; // ... diff --git a/service_container/factories.rst b/service_container/factories.rst index 134c6fe232e..13541bf1b0a 100644 --- a/service_container/factories.rst +++ b/service_container/factories.rst @@ -72,7 +72,6 @@ configure the service container to use the .. code-block:: php // app/config/services.php - use AppBundle\Email\NewsletterManager; use AppBundle\Email\NewsletterManagerStaticFactory; // ... @@ -136,7 +135,6 @@ Configuration of the service container then looks like this: .. code-block:: php // app/config/services.php - use AppBundle\Email\NewsletterManager; use AppBundle\Email\NewsletterManagerFactory; use Symfony\Component\DependencyInjection\Reference; @@ -216,7 +214,6 @@ example takes the ``templating`` service as an argument: .. code-block:: php // app/config/services.php - use AppBundle\Email\NewsletterManager; use AppBundle\Email\NewsletterManagerFactory; use Symfony\Component\DependencyInjection\Reference; diff --git a/templating/PHP.rst b/templating/PHP.rst index fd3bd7b9545..2aa4fa4d046 100644 --- a/templating/PHP.rst +++ b/templating/PHP.rst @@ -279,7 +279,6 @@ Here, the ``AppBundle:Hello:fancy`` string refers to the ``fancy`` action of the ``Hello`` controller:: // src/AppBundle/Controller/HelloController.php - class HelloController extends Controller { public function fancyAction($name, $color) diff --git a/workflow/state-machines.rst b/workflow/state-machines.rst index bb6ff59a31e..391e690ad41 100644 --- a/workflow/state-machines.rst +++ b/workflow/state-machines.rst @@ -142,7 +142,6 @@ Below is the configuration for the pull request state machine. .. code-block:: php // app/config/config.php - $container->loadFromExtension('framework', [ // ... 'workflows' => [ diff --git a/workflow/usage.rst b/workflow/usage.rst index 903411bc881..18bd8dc15ac 100644 --- a/workflow/usage.rst +++ b/workflow/usage.rst @@ -104,7 +104,6 @@ like this: .. code-block:: php // app/config/config.php - $container->loadFromExtension('framework', [ // ... 'workflows' => [