Skip to content

Commit 855f64a

Browse files
committed
minor #11142 remove space before self closing xml tag (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- remove space before self closing xml tag to be consistent throughout the docs <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- d149921 remove space before self closing xml tag
2 parents 53b2a08 + d149921 commit 855f64a

File tree

140 files changed

+462
-462
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+462
-462
lines changed

best_practices/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ view layer:
143143
{{ form_widget(form) }}
144144

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

149149
Validation

best_practices/web-assets.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ much more concise:
1818

1919
.. code-block:: html+twig
2020

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

2424
{# ... #}
2525

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

6868
{# ... #}

bundles/configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ as integration of other related components:
3333
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
3434
3535
<framework:config>
36-
<framework:form />
36+
<framework:form/>
3737
</framework:config>
3838
</container>
3939
@@ -82,7 +82,7 @@ allow users to configure it with some configuration that looks like this:
8282
https://symfony.com/schema/dic/services/services-1.0.xsd">
8383
8484
<acme-social:config>
85-
<acme-social:twitter client-id="123" client-secret="your_secret" />
85+
<acme-social:twitter client-id="123" client-secret="your_secret"/>
8686
</acme-social:config>
8787
8888
<!-- ... -->

bundles/prepend_extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The above would be the equivalent of writing the following into the
128128
<acme-something:entity-manager-name>non_default</acme-something:entity-manager-name>
129129
</acme-something:config>
130130
131-
<acme-other:config use-acme-goodbye="false" />
131+
<acme-other:config use-acme-goodbye="false"/>
132132
133133
</container>
134134

components/config/definition.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ Or the following XML configuration:
295295

296296
.. code-block:: xml
297297
298-
<connection table="symfony" user="root" password="null" />
299-
<connection table="foo" user="root" password="pa$$" />
298+
<connection table="symfony" user="root" password="null"/>
299+
<connection table="foo" user="root" password="pa$$"/>
300300
301301
The processed configuration is::
302302

@@ -364,9 +364,9 @@ same YAML configuration shown before or the following XML configuration:
364364
.. code-block:: xml
365365
366366
<connection name="sf_connection"
367-
table="symfony" user="root" password="null" />
367+
table="symfony" user="root" password="null"/>
368368
<connection name="default"
369-
table="foo" user="root" password="pa$$" />
369+
table="foo" user="root" password="pa$$"/>
370370
371371
In both cases, the processed configuration maintains the ``sf_connection`` and
372372
``default`` keys::
@@ -490,7 +490,7 @@ and in XML:
490490
.. code-block:: xml
491491
492492
<!-- entries-per-page: This value is only used for the search results page. -->
493-
<config entries-per-page="25" />
493+
<config entries-per-page="25"/>
494494
495495
Optional Sections
496496
-----------------

components/dependency_injection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ config files:
282282
283283
<service id="newsletter_manager" class="NewsletterManager">
284284
<call method="setMailer">
285-
<argument type="service" id="mailer" />
285+
<argument type="service" id="mailer"/>
286286
</call>
287287
</service>
288288
</services>

components/dependency_injection/_imports-parameters-note.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
https://symfony.com/schema/dic/services/services-1.0.xsd">
2323

2424
<imports>
25-
<import resource="%kernel.project_dir%/app/parameters.yml" />
25+
<import resource="%kernel.project_dir%/app/parameters.yml"/>
2626
</imports>
2727
</container>
2828

components/dom_crawler.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,16 @@ Adding the Content
231231

232232
The crawler supports multiple ways of adding the content::
233233

234-
$crawler = new Crawler('<html><body /></html>');
234+
$crawler = new Crawler('<html><body/></html>');
235235

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

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

242-
$crawler->add('<html><body /></html>');
243-
$crawler->add('<root><node /></root>');
242+
$crawler->add('<html><body/></html>');
243+
$crawler->add('<root><node/></root>');
244244

245245
.. note::
246246

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

266266
$domDocument = new \DOMDocument();
267-
$domDocument->loadXml('<root><node /><node /></root>');
267+
$domDocument->loadXml('<root><node/><node/></root>');
268268
$nodeList = $domDocument->getElementsByTagName('node');
269269
$node = $domDocument->getElementsByTagName('node')->item(0);
270270

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

471471
<form>
472-
<input name="multi[]" />
473-
<input name="multi[]" />
474-
<input name="multi[dimensional]" />
472+
<input name="multi[]"/>
473+
<input name="multi[]"/>
474+
<input name="multi[dimensional]"/>
475475
</form>
476476

477477
Pass an array of values::

components/form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ helper functions:
518518
{{ form_start(form) }}
519519
{{ form_widget(form) }}
520520

521-
<input type="submit" />
521+
<input type="submit"/>
522522
{{ form_end(form) }}
523523

524524
.. image:: /_images/form/simple-form.png

components/phpunit_bridge.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ to register a new `test listener`_ called ``SymfonyTestsListener``:
5555
<!-- ... -->
5656
5757
<listeners>
58-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
58+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
5959
</listeners>
6060
</phpunit>
6161
@@ -122,7 +122,7 @@ The summary includes:
122122
<!-- phpunit.xml.dist -->
123123
<!-- ... -->
124124
<listeners>
125-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
125+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
126126
</listeners>
127127
128128
Trigger Deprecation Notices
@@ -179,8 +179,8 @@ message, enclosed with ``/``. For example, with:
179179
<!-- ... -->
180180
181181
<php>
182-
<server name="KERNEL_DIR" value="app/" />
183-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="/foobar/" />
182+
<server name="KERNEL_DIR" value="app/"/>
183+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="/foobar/"/>
184184
</php>
185185
</phpunit>
186186
@@ -317,7 +317,7 @@ following listener in your PHPUnit configuration:
317317
<!-- phpunit.xml.dist -->
318318
<!-- ... -->
319319
<listeners>
320-
<listener class="\Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
320+
<listener class="\Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
321321
</listeners>
322322
323323
.. note::
@@ -650,7 +650,7 @@ Add the following configuration to the ``phpunit.xml.dist`` file
650650
<!-- ... -->
651651
652652
<listeners>
653-
<listener class="Symfony\Bridge\PhpUnit\CoverageListener" />
653+
<listener class="Symfony\Bridge\PhpUnit\CoverageListener"/>
654654
</listeners>
655655
</phpunit>
656656

components/serializer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ Here, we set it to 2 for the ``$child`` property:
829829
http://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
830830
>
831831
<class name="Acme\MyObj">
832-
<attribute name="child" max-depth="2" />
832+
<attribute name="child" max-depth="2"/>
833833
</class>
834834
</serializer>
835835
@@ -924,7 +924,7 @@ The array keys beginning with ``@`` are considered XML attributes::
924924
// is encoded as follows:
925925
// <?xml version="1.0"?>
926926
// <response>
927-
// <foo bar="value" />
927+
// <foo bar="value"/>
928928
// </response>
929929

930930
Use the special ``#`` key to define the data of a node::

configuration.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@ The main configuration file is called ``config.yml``:
5151
https://symfony.com/schema/dic/twig/twig-1.0.xsd">
5252
5353
<imports>
54-
<import resource="parameters.yml" />
55-
<import resource="security.yml" />
56-
<import resource="services.yml" />
54+
<import resource="parameters.yml"/>
55+
<import resource="security.yml"/>
56+
<import resource="services.yml"/>
5757
</imports>
5858
5959
<framework:config secret="%secret%">
60-
<framework:router resource="%kernel.project_dir%/app/config/routing.xml" />
60+
<framework:router resource="%kernel.project_dir%/app/config/routing.xml"/>
6161
<!-- ... -->
6262
</framework:config>
6363
6464
<!-- Twig Configuration -->
65-
<twig:config debug="%kernel.debug%" strict-variables="%kernel.debug%" />
65+
<twig:config debug="%kernel.debug%" strict-variables="%kernel.debug%"/>
6666
6767
<!-- ... -->
6868
</container>
@@ -154,9 +154,9 @@ it *also* loads other configuration files via its ``imports`` key:
154154
https://symfony.com/schema/dic/services/services-1.0.xsd">
155155
156156
<imports>
157-
<import resource="parameters.yml" />
158-
<import resource="security.yml" />
159-
<import resource="services.yml" />
157+
<import resource="parameters.yml"/>
158+
<import resource="security.yml"/>
159+
<import resource="services.yml"/>
160160
</imports>
161161
162162
<!-- ... -->
@@ -206,7 +206,7 @@ can also load XML files or PHP files.
206206
https://symfony.com/schema/dic/twig/twig-1.0.xsd">
207207
208208
<imports>
209-
<import resource="parameters.res" type="yml" />
209+
<import resource="parameters.res" type="yml"/>
210210
<!-- ... -->
211211
</imports>
212212
</container>
@@ -342,7 +342,7 @@ configure DoctrineBundle and other parts of Symfony:
342342
driver="pdo_mysql"
343343
344344
user="%database_user%"
345-
password="%database_password%" />
345+
password="%database_password%"/>
346346
</doctrine:config>
347347
</container>
348348

configuration/configuration_organization.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ needed for the ``app/config/dev/config.yml`` file:
131131
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
132132
133133
<imports>
134-
<import resource="../common/config.xml" />
135-
<import resource="parameters.xml" />
136-
<import resource="security.xml" />
134+
<import resource="../common/config.xml"/>
135+
<import resource="parameters.xml"/>
136+
<import resource="security.xml"/>
137137
</imports>
138138
139139
<!-- ... -->
@@ -242,10 +242,10 @@ format (``.yml``, ``.xml``, ``.php``, ``.ini``):
242242
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
243243
244244
<imports>
245-
<import resource="parameters.yml" />
246-
<import resource="services.xml" />
247-
<import resource="security.yml" />
248-
<import resource="legacy.php" />
245+
<import resource="parameters.yml"/>
246+
<import resource="services.xml"/>
247+
<import resource="security.yml"/>
248+
<import resource="legacy.php"/>
249249
</imports>
250250
251251
<!-- ... -->
@@ -306,8 +306,8 @@ any other configuration file:
306306
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
307307
308308
<imports>
309-
<import resource="parameters.yml" />
310-
<import resource="/etc/sites/mysite.com/parameters.yml" />
309+
<import resource="parameters.yml"/>
310+
<import resource="/etc/sites/mysite.com/parameters.yml"/>
311311
</imports>
312312
313313
<!-- ... -->
@@ -349,8 +349,8 @@ doesn't exist:
349349
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
350350
351351
<imports>
352-
<import resource="parameters.yml" />
353-
<import resource="/etc/sites/mysite.com/parameters.yml" ignore-errors="true" />
352+
<import resource="parameters.yml"/>
353+
<import resource="/etc/sites/mysite.com/parameters.yml" ignore-errors="true"/>
354354
</imports>
355355
356356
<!-- ... -->

configuration/environments.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ accomplished easily and transparently:
7777
http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd">
7878
7979
<imports>
80-
<import resource="config.xml" />
80+
<import resource="config.xml"/>
8181
</imports>
8282
8383
<!-- ... -->
@@ -123,10 +123,10 @@ configuration file:
123123
http://symfony.com/schema/dic/webprofiler/webprofiler-1.0.xsd">
124124
125125
<imports>
126-
<import resource="config.xml" />
126+
<import resource="config.xml"/>
127127
</imports>
128128
129-
<webprofiler:config toolbar="true" />
129+
<webprofiler:config toolbar="true"/>
130130
131131
</container>
132132
@@ -229,7 +229,7 @@ this code and changing the environment string.
229229
http://symfony.com/schema/dic/doctrine
230230
http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd">
231231
232-
<doctrine:dbal logging="%kernel.debug%" />
232+
<doctrine:dbal logging="%kernel.debug%"/>
233233
234234
</container>
235235
@@ -319,11 +319,11 @@ The best way to accomplish this is via a new environment called, for example,
319319
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
320320
321321
<imports>
322-
<import resource="config_prod.xml" />
322+
<import resource="config_prod.xml"/>
323323
</imports>
324324
325325
<framework:config>
326-
<framework:profiler only-exceptions="false" />
326+
<framework:profiler only-exceptions="false"/>
327327
</framework:config>
328328
329329
</container>

0 commit comments

Comments
 (0)