Skip to content

remove space before self closing xml tag #11142

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 @@ -143,7 +143,7 @@ view layer:
{{ form_widget(form) }}

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

Validation
Expand Down
6 changes: 3 additions & 3 deletions best_practices/web-assets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ much more concise:

.. code-block:: html+twig

<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}" />
<link rel="stylesheet" href="{{ asset('css/main.css') }}" />
<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}"/>
<link rel="stylesheet" href="{{ asset('css/main.css') }}"/>

{# ... #}

Expand Down Expand Up @@ -62,7 +62,7 @@ matter of wrapping all the assets with a single Twig tag:
'css/bootstrap.min.css'
'css/main.css'
filter='cssrewrite' output='css/compiled/app.css' %}
<link rel="stylesheet" href="{{ asset_url }}" />
<link rel="stylesheet" href="{{ asset_url }}"/>
{% endstylesheets %}

{# ... #}
Expand Down
4 changes: 2 additions & 2 deletions bundles/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ as integration of other related components:
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<framework:config>
<framework:form />
<framework:form/>
</framework:config>
</container>

Expand Down Expand Up @@ -82,7 +82,7 @@ allow users to configure it with some configuration that looks like this:
https://symfony.com/schema/dic/services/services-1.0.xsd">

<acme-social:config>
<acme-social:twitter client-id="123" client-secret="your_secret" />
<acme-social:twitter client-id="123" client-secret="your_secret"/>
</acme-social:config>

<!-- ... -->
Expand Down
2 changes: 1 addition & 1 deletion bundles/prepend_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ The above would be the equivalent of writing the following into the
<acme-something:entity-manager-name>non_default</acme-something:entity-manager-name>
</acme-something:config>

<acme-other:config use-acme-goodbye="false" />
<acme-other:config use-acme-goodbye="false"/>

</container>

Expand Down
10 changes: 5 additions & 5 deletions components/config/definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ Or the following XML configuration:

.. code-block:: xml

<connection table="symfony" user="root" password="null" />
<connection table="foo" user="root" password="pa$$" />
<connection table="symfony" user="root" password="null"/>
<connection table="foo" user="root" password="pa$$"/>

The processed configuration is::

Expand Down Expand Up @@ -364,9 +364,9 @@ same YAML configuration shown before or the following XML configuration:
.. code-block:: xml

<connection name="sf_connection"
table="symfony" user="root" password="null" />
table="symfony" user="root" password="null"/>
<connection name="default"
table="foo" user="root" password="pa$$" />
table="foo" user="root" password="pa$$"/>

In both cases, the processed configuration maintains the ``sf_connection`` and
``default`` keys::
Expand Down Expand Up @@ -490,7 +490,7 @@ and in XML:
.. code-block:: xml

<!-- entries-per-page: This value is only used for the search results page. -->
<config entries-per-page="25" />
<config entries-per-page="25"/>

Optional Sections
-----------------
Expand Down
2 changes: 1 addition & 1 deletion components/dependency_injection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ config files:

<service id="newsletter_manager" class="NewsletterManager">
<call method="setMailer">
<argument type="service" id="mailer" />
<argument type="service" id="mailer"/>
</call>
</service>
</services>
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%/app/parameters.yml" />
<import resource="%kernel.project_dir%/app/parameters.yml"/>
</imports>
</container>

Expand Down
22 changes: 11 additions & 11 deletions components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,16 @@ Adding the Content

The crawler supports multiple ways of adding the content::

$crawler = new Crawler('<html><body /></html>');
$crawler = new Crawler('<html><body/></html>');

$crawler->addHtmlContent('<html><body /></html>');
$crawler->addXmlContent('<root><node /></root>');
$crawler->addHtmlContent('<html><body/></html>');
$crawler->addXmlContent('<root><node/></root>');

$crawler->addContent('<html><body /></html>');
$crawler->addContent('<root><node /></root>', 'text/xml');
$crawler->addContent('<html><body/></html>');
$crawler->addContent('<root><node/></root>', 'text/xml');

$crawler->add('<html><body /></html>');
$crawler->add('<root><node /></root>');
$crawler->add('<html><body/></html>');
$crawler->add('<root><node/></root>');

.. note::

Expand All @@ -264,7 +264,7 @@ to interact with native :phpclass:`DOMDocument`, :phpclass:`DOMNodeList`
and :phpclass:`DOMNode` objects::

$domDocument = new \DOMDocument();
$domDocument->loadXml('<root><node /><node /></root>');
$domDocument->loadXml('<root><node/><node/></root>');
$nodeList = $domDocument->getElementsByTagName('node');
$node = $domDocument->getElementsByTagName('node')->item(0);

Expand Down Expand Up @@ -469,9 +469,9 @@ You can virtually set and get values on the form::
To work with multi-dimensional fields::

<form>
<input name="multi[]" />
<input name="multi[]" />
<input name="multi[dimensional]" />
<input name="multi[]"/>
<input name="multi[]"/>
<input name="multi[dimensional]"/>
</form>

Pass an array of values::
Expand Down
2 changes: 1 addition & 1 deletion components/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ helper functions:
{{ form_start(form) }}
{{ form_widget(form) }}

<input type="submit" />
<input type="submit"/>
{{ form_end(form) }}

.. image:: /_images/form/simple-form.png
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_DIR" value="app/" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="/foobar/" />
<server name="KERNEL_DIR" value="app/"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="/foobar/"/>
</php>
</phpunit>

Expand Down Expand Up @@ -317,7 +317,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 @@ -650,7 +650,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
4 changes: 2 additions & 2 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ Here, we set it to 2 for the ``$child`` property:
http://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
>
<class name="Acme\MyObj">
<attribute name="child" max-depth="2" />
<attribute name="child" max-depth="2"/>
</class>
</serializer>

Expand Down Expand Up @@ -924,7 +924,7 @@ The array keys beginning with ``@`` are considered XML attributes::
// is encoded as follows:
// <?xml version="1.0"?>
// <response>
// <foo bar="value" />
// <foo bar="value"/>
// </response>

Use the special ``#`` key to define the data of a node::
Expand Down
20 changes: 10 additions & 10 deletions configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ The main configuration file is called ``config.yml``:
https://symfony.com/schema/dic/twig/twig-1.0.xsd">

<imports>
<import resource="parameters.yml" />
<import resource="security.yml" />
<import resource="services.yml" />
<import resource="parameters.yml"/>
<import resource="security.yml"/>
<import resource="services.yml"/>
</imports>

<framework:config secret="%secret%">
<framework:router resource="%kernel.project_dir%/app/config/routing.xml" />
<framework:router resource="%kernel.project_dir%/app/config/routing.xml"/>
<!-- ... -->
</framework:config>

<!-- Twig Configuration -->
<twig:config debug="%kernel.debug%" strict-variables="%kernel.debug%" />
<twig:config debug="%kernel.debug%" strict-variables="%kernel.debug%"/>

<!-- ... -->
</container>
Expand Down Expand Up @@ -154,9 +154,9 @@ it *also* loads other configuration files via its ``imports`` key:
https://symfony.com/schema/dic/services/services-1.0.xsd">

<imports>
<import resource="parameters.yml" />
<import resource="security.yml" />
<import resource="services.yml" />
<import resource="parameters.yml"/>
<import resource="security.yml"/>
<import resource="services.yml"/>
</imports>

<!-- ... -->
Expand Down Expand Up @@ -206,7 +206,7 @@ can also load XML files or PHP files.
https://symfony.com/schema/dic/twig/twig-1.0.xsd">

<imports>
<import resource="parameters.res" type="yml" />
<import resource="parameters.res" type="yml"/>
<!-- ... -->
</imports>
</container>
Expand Down Expand Up @@ -342,7 +342,7 @@ configure DoctrineBundle and other parts of Symfony:
driver="pdo_mysql"

user="%database_user%"
password="%database_password%" />
password="%database_password%"/>
</doctrine:config>
</container>

Expand Down
22 changes: 11 additions & 11 deletions configuration/configuration_organization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ needed for the ``app/config/dev/config.yml`` file:
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<imports>
<import resource="../common/config.xml" />
<import resource="parameters.xml" />
<import resource="security.xml" />
<import resource="../common/config.xml"/>
<import resource="parameters.xml"/>
<import resource="security.xml"/>
</imports>

<!-- ... -->
Expand Down Expand Up @@ -242,10 +242,10 @@ format (``.yml``, ``.xml``, ``.php``, ``.ini``):
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<imports>
<import resource="parameters.yml" />
<import resource="services.xml" />
<import resource="security.yml" />
<import resource="legacy.php" />
<import resource="parameters.yml"/>
<import resource="services.xml"/>
<import resource="security.yml"/>
<import resource="legacy.php"/>
</imports>

<!-- ... -->
Expand Down Expand Up @@ -306,8 +306,8 @@ any other configuration file:
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<imports>
<import resource="parameters.yml" />
<import resource="/etc/sites/mysite.com/parameters.yml" />
<import resource="parameters.yml"/>
<import resource="/etc/sites/mysite.com/parameters.yml"/>
</imports>

<!-- ... -->
Expand Down Expand Up @@ -349,8 +349,8 @@ doesn't exist:
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

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

<!-- ... -->
Expand Down
12 changes: 6 additions & 6 deletions configuration/environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ accomplished easily and transparently:
http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd">

<imports>
<import resource="config.xml" />
<import resource="config.xml"/>
</imports>

<!-- ... -->
Expand Down Expand Up @@ -123,10 +123,10 @@ configuration file:
http://symfony.com/schema/dic/webprofiler/webprofiler-1.0.xsd">

<imports>
<import resource="config.xml" />
<import resource="config.xml"/>
</imports>

<webprofiler:config toolbar="true" />
<webprofiler:config toolbar="true"/>

</container>

Expand Down Expand Up @@ -229,7 +229,7 @@ this code and changing the environment string.
http://symfony.com/schema/dic/doctrine
http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd">

<doctrine:dbal logging="%kernel.debug%" />
<doctrine:dbal logging="%kernel.debug%"/>

</container>

Expand Down Expand Up @@ -319,11 +319,11 @@ The best way to accomplish this is via a new environment called, for example,
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<imports>
<import resource="config_prod.xml" />
<import resource="config_prod.xml"/>
</imports>

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

</container>
Expand Down
Loading