Skip to content

Commit d149921

Browse files
committed
remove space before self closing xml tag
to be consistent throughout the docs
1 parent 858b1a7 commit d149921

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

0 commit comments

Comments
 (0)