Skip to content

remove space before self closing xml tag #11175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion best_practices/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ view layer:
{{ form_start(form) }}
{{ form_widget(form) }}

<input type="submit" class="btn" value="Create" />
<input type="submit" class="btn" value="Create"/>
{{ form_end(form) }}

Validation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
https://symfony.com/schema/dic/services/services-1.0.xsd">

<imports>
<import resource="%kernel.project_dir%/somefile.yaml" />
<import resource="%kernel.project_dir%/somefile.yaml"/>
</imports>
</container>

Expand Down
12 changes: 6 additions & 6 deletions components/phpunit_bridge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ to register a new `test listener`_ called ``SymfonyTestsListener``:
<!-- ... -->

<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>
</phpunit>

Expand Down Expand Up @@ -122,7 +122,7 @@ The summary includes:
<!-- phpunit.xml.dist -->
<!-- ... -->
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>

Trigger Deprecation Notices
Expand Down Expand Up @@ -179,8 +179,8 @@ message, enclosed with ``/``. For example, with:
<!-- ... -->

<php>
<server name="KERNEL_CLASS" value="App\Kernel" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="/foobar/" />
<server name="KERNEL_CLASS" value="App\Kernel"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="/foobar/"/>
</php>
</phpunit>

Expand Down Expand Up @@ -342,7 +342,7 @@ following listener in your PHPUnit configuration:
<!-- phpunit.xml.dist -->
<!-- ... -->
<listeners>
<listener class="\Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
<listener class="\Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
</listeners>

.. note::
Expand Down Expand Up @@ -676,7 +676,7 @@ Add the following configuration to the ``phpunit.xml.dist`` file
<!-- ... -->

<listeners>
<listener class="Symfony\Bridge\PhpUnit\CoverageListener" />
<listener class="Symfony\Bridge\PhpUnit\CoverageListener"/>
</listeners>
</phpunit>

Expand Down
8 changes: 4 additions & 4 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ defines a ``Person`` entity with a ``firstName`` property:
https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
>
<class name="App\Entity\Person">
<attribute name="firstName" serialized-name="customer_name" />
<attribute name="firstName" serialized-name="customer_name"/>
</class>
</serializer>

Expand Down Expand Up @@ -795,7 +795,7 @@ the key ``#comment`` for encoding XML comments::
// will return:
// <?xml version="1.0"?>
// <response>
// <foo bar="value" />
// <foo bar="value"/>
// <qux><!-- A comment --!><qux>
// </response>

Expand Down Expand Up @@ -1370,8 +1370,8 @@ and ``BitBucketCodeRepository`` classes:
>
<class name="App\CodeRepository">
<discriminator-map type-property="type">
<mapping type="github" class="App\GitHubCodeRepository" />
<mapping type="bitbucket" class="App\BitBucketCodeRepository" />
<mapping type="github" class="App\GitHubCodeRepository"/>
<mapping type="bitbucket" class="App\BitBucketCodeRepository"/>
</discriminator-map>
</class>
</serializer>
Expand Down
2 changes: 1 addition & 1 deletion components/var_dumper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ the :ref:`dump_destination option <configuration-debug-dump_destination>` of the
https://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/debug https://symfony.com/schema/dic/debug/debug-1.0.xsd">

<debug:config dump-destination="tcp://%env(VAR_DUMPER_SERVER)%" />
<debug:config dump-destination="tcp://%env(VAR_DUMPER_SERVER)%"/>
</container>

.. code-block:: php
Expand Down
10 changes: 5 additions & 5 deletions configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ instance, the framework bundle is configured in ``config/packages/framework.yaml
http://symfony.com/schema/dic/framework https://symfony.com/schema/dic/framework/framework-1.0.xsd"
>
<framework:config secret="%env(APP_SECRET)%">
<!--<framework:csrf-protection enabled="true“ />-->
<!--<framework:esi enabled="true" />-->
<!--<framework:fragments enabled="true" />-->
<!--<framework:csrf-protection enabled="true“/>-->
<!--<framework:esi enabled="true"/>-->
<!--<framework:fragments enabled="true"/>-->

<!-- Enables session support. Note that the session will ONLY be started if you read or write from it.
Remove or comment this section to explicitly disable session support. -->
<framework:session />
<framework:session/>

<framework:php-errors log="true" />
<framework:php-errors log="true"/>
</framework:config>
</container>

Expand Down
6 changes: 3 additions & 3 deletions configuration/configuration_organization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ format (``.yaml``, ``.xml``, ``.php``, ``.ini``):
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<imports>
<import resource="my_config_file.yaml" />
<import resource="legacy.php" />
<import resource="my_config_file.yaml"/>
<import resource="legacy.php"/>
</imports>

<!-- ... -->
Expand Down Expand Up @@ -157,7 +157,7 @@ when importing it from any other configuration file:
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<imports>
<import resource="/etc/sites/mysite.com/parameters.yaml" ignore-errors="true" />
<import resource="/etc/sites/mysite.com/parameters.yaml" ignore-errors="true"/>
</imports>

<!-- ... -->
Expand Down
4 changes: 2 additions & 2 deletions configuration/environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ the environment variable is passed to the kernel::
http://symfony.com/schema/dic/twig
https://symfony.com/schema/dic/twig/twig-1.0.xsd">

<twig:config debug="%kernel.debug%" />
<twig:config debug="%kernel.debug%"/>

</container>

Expand Down Expand Up @@ -231,7 +231,7 @@ configuration file:
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<framework:config>
<framework:profiler only-exceptions="false" />
<framework:profiler only-exceptions="false"/>
</framework:config>

</container>
Expand Down
14 changes: 7 additions & 7 deletions configuration/external_parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ turn the value of the ``HTTP_PORT`` env var into an integer:
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<framework:config>
<framework:router http-port="%env(int:HTTP_PORT)%" />
<framework:router http-port="%env(int:HTTP_PORT)%"/>
</framework:config>
</container>

Expand Down Expand Up @@ -208,7 +208,7 @@ Symfony provides the following env var processors:
<parameter key="env(SECRET)">some_secret</parameter>
</parameters>

<framework:config secret="%env(string:SECRET)%" />
<framework:config secret="%env(string:SECRET)%"/>
</container>

.. code-block:: php
Expand Down Expand Up @@ -248,7 +248,7 @@ Symfony provides the following env var processors:
<parameter key="env(HTTP_METHOD_OVERRIDE)">true</parameter>
</parameters>

<framework:config http-methode-override="%env(bool:HTTP_METHOD_OVERRIDE)%" />
<framework:config http-methode-override="%env(bool:HTTP_METHOD_OVERRIDE)%"/>
</container>

.. code-block:: php
Expand Down Expand Up @@ -294,7 +294,7 @@ Symfony provides the following env var processors:
</parameters>

<security:config>
<rule path="^/health-check$" methods="%env(const:HEALTH_CHECK_METHOD)%" />
<rule path="^/health-check$" methods="%env(const:HEALTH_CHECK_METHOD)%"/>
</security:config>
</container>

Expand Down Expand Up @@ -344,7 +344,7 @@ Symfony provides the following env var processors:
<parameter key="env(TRUSTED_HOSTS)">["10.0.0.1", "10.0.0.2"]</parameter>
</parameters>

<framework:config trusted-hosts="%env(json:TRUSTED_HOSTS)%" />
<framework:config trusted-hosts="%env(json:TRUSTED_HOSTS)%"/>
</container>

.. code-block:: php
Expand Down Expand Up @@ -384,7 +384,7 @@ Symfony provides the following env var processors:
<parameter key="env(SENTRY_DSN)">http://%env(HOST)%/project</parameter>
</parameters>

<sentry:config dsn="%env(resolve:SENTRY_DSN)%" />
<sentry:config dsn="%env(resolve:SENTRY_DSN)%"/>
</container>

.. code-block:: php
Expand Down Expand Up @@ -435,7 +435,7 @@ Symfony provides the following env var processors:
<parameter key="env(AUTH_FILE)">../config/auth.json</parameter>
</parameters>

<google auth="%env(file:AUTH_FILE)%" />
<google auth="%env(file:AUTH_FILE)%"/>
</container>

.. code-block:: php
Expand Down
2 changes: 1 addition & 1 deletion configuration/micro_kernel_trait.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ because the configuration started to get bigger:
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<framework:config secret="S0ME_SECRET">
<framework:profiler only-exceptions="false" />
<framework:profiler only-exceptions="false"/>
</framework:config>
</container>

Expand Down
6 changes: 3 additions & 3 deletions configuration/using_parameters_in_dic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ Now, examine the results to see this closely:
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:my-bundle="http://example.org/schema/dic/my_bundle">

<my-bundle:config logging="true" />
<my-bundle:config logging="true"/>
<!-- true, as expected -->

<my-bundle:config logging="%kernel.debug%" />
<my-bundle:config logging="%kernel.debug%"/>
<!-- true/false (depends on 2nd parameter of Kernel),
as expected, because %kernel.debug% inside configuration
gets evaluated before being passed to the extension -->

<my-bundle:config />
<my-bundle:config/>
<!-- passes the string "%kernel.debug%".
Which is always considered as true.
The Configurator does not know anything about
Expand Down
2 changes: 1 addition & 1 deletion console/commands_as_services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Or set the ``command`` attribute on the ``console.command`` tag in your service

<services>
<service id="App\Command\SunshineCommand">
<tag name="console.command" command="app:sunshine" />
<tag name="console.command" command="app:sunshine"/>
</service>
</services>
</container>
Expand Down
6 changes: 3 additions & 3 deletions controller/argument_value_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ type-hinted method arguments:
https://symfony.com/schema/dic/services/services-1.0.xsd">

<sensio-framework-extra:config>
<request converters="true" auto-convert="false" />
<request converters="true" auto-convert="false"/>
</sensio-framework-extra:config>
</container>

Expand Down Expand Up @@ -194,11 +194,11 @@ and adding a priority.

<services>
<!-- ... be sure autowiring is enabled -->
<defaults autowire="true" />
<defaults autowire="true"/>
<!-- ... -->

<service id="App\ArgumentResolver\UserValueResolver">
<tag name="controller.argument_value_resolver" priority="50" />
<tag name="controller.argument_value_resolver" priority="50"/>
</service>
</services>

Expand Down
4 changes: 2 additions & 2 deletions controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ automatically when installing Twig support):
xsi:schemaLocation="http://symfony.com/schema/routing
https://symfony.com/schema/routing/routing-1.0.xsd">

<import resource="@TwigBundle/Resources/config/routing/errors.xml" prefix="/_error" />
<import resource="@TwigBundle/Resources/config/routing/errors.xml" prefix="/_error"/>
</routes>

.. code-block:: php
Expand Down Expand Up @@ -293,7 +293,7 @@ In that case, you might want to override one or both of the ``showAction()`` and

<services>
<!-- ... be sure autowiring is enabled -->
<defaults autowire="true" />
<defaults autowire="true"/>
<!-- ... -->

<service id="App\Controller\CustomExceptionController" public="true">
Expand Down
2 changes: 1 addition & 1 deletion controller/service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ a service like: ``App\Controller\HelloController::index``:
xsi:schemaLocation="http://symfony.com/schema/routing
https://symfony.com/schema/routing/routing-1.0.xsd">

<route id="hello" path="/hello" controller="App\Controller\HelloController::index" methods="GET" />
<route id="hello" path="/hello" controller="App\Controller\HelloController::index" methods="GET"/>

</routes>

Expand Down
10 changes: 5 additions & 5 deletions controller/soap_web_service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,17 @@ An example WSDL is below.

<types>
<xsd:schema targetNamespace="urn:hellowsdl">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
</xsd:schema>
</types>

<message name="helloRequest">
<part name="name" type="xsd:string" />
<part name="name" type="xsd:string"/>
</message>

<message name="helloResponse">
<part name="return" type="xsd:string" />
<part name="return" type="xsd:string"/>
</message>

<portType name="hellowsdlPortType">
Expand Down Expand Up @@ -160,7 +160,7 @@ An example WSDL is below.

<service name="hellowsdl">
<port name="hellowsdlPort" binding="tns:hellowsdlBinding">
<soap:address location="http://example.com/index.php/soap" />
<soap:address location="http://example.com/index.php/soap"/>
</port>
</service>
</definitions>
Expand Down
2 changes: 1 addition & 1 deletion controller/upload_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ Now, register this class as a Doctrine listener:

<services>
<!-- ... be sure autowiring is enabled -->
<defaults autowire="true" />
<defaults autowire="true"/>
<!-- ... -->

<service id="App\EventListener\BrochureUploaderListener">
Expand Down
4 changes: 2 additions & 2 deletions doctrine/associations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ the ``Product`` entity (and getter & setter methods):
field="category"
target-entity="App\Entity\Category"
inversed-by="products">
<join-column nullable="false" />
<join-column nullable="false"/>
</many-to-one>
</entity>
</doctrine-mapping>
Expand Down Expand Up @@ -271,7 +271,7 @@ class that will hold these objects:
<one-to-many
field="products"
target-entity="App\Entity\Product"
mapped-by="category" />
mapped-by="category"/>

<!--
don't forget to init the collection in
Expand Down
4 changes: 2 additions & 2 deletions doctrine/dbal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ mapping types, read Doctrine's `Custom Mapping Types`_ section of their document

<doctrine:config>
<doctrine:dbal>
<doctrine:type name="custom_first" class="App\Type\CustomFirst" />
<doctrine:type name="custom_second" class="App\Type\CustomSecond" />
<doctrine:type name="custom_first" class="App\Type\CustomFirst"/>
<doctrine:type name="custom_second" class="App\Type\CustomSecond"/>
</doctrine:dbal>
</doctrine:config>
</container>
Expand Down
Loading