Skip to content

Commit 8035145

Browse files
committed
minor #11175 remove space before self closing xml tag (OskarStark)
This PR was merged into the 4.2 branch. Discussion ---------- remove space before self closing xml tag @wouterj this one is following your [comment](#11142 (comment)) Commits ------- db87ab5 remove space before self closing xml tag
2 parents 79e00fe + db87ab5 commit 8035145

File tree

76 files changed

+286
-286
lines changed

Some content is hidden

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

76 files changed

+286
-286
lines changed

best_practices/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ view layer:
134134
{{ form_start(form) }}
135135
{{ form_widget(form) }}
136136

137-
<input type="submit" class="btn" value="Create" />
137+
<input type="submit" class="btn" value="Create"/>
138138
{{ form_end(form) }}
139139

140140
Validation

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%/somefile.yaml" />
25+
<import resource="%kernel.project_dir%/somefile.yaml"/>
2626
</imports>
2727
</container>
2828

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_CLASS" value="App\Kernel" />
183-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="/foobar/" />
182+
<server name="KERNEL_CLASS" value="App\Kernel"/>
183+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="/foobar/"/>
184184
</php>
185185
</phpunit>
186186
@@ -342,7 +342,7 @@ following listener in your PHPUnit configuration:
342342
<!-- phpunit.xml.dist -->
343343
<!-- ... -->
344344
<listeners>
345-
<listener class="\Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
345+
<listener class="\Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
346346
</listeners>
347347
348348
.. note::
@@ -676,7 +676,7 @@ Add the following configuration to the ``phpunit.xml.dist`` file
676676
<!-- ... -->
677677
678678
<listeners>
679-
<listener class="Symfony\Bridge\PhpUnit\CoverageListener" />
679+
<listener class="Symfony\Bridge\PhpUnit\CoverageListener"/>
680680
</listeners>
681681
</phpunit>
682682

components/serializer.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ defines a ``Person`` entity with a ``firstName`` property:
589589
https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
590590
>
591591
<class name="App\Entity\Person">
592-
<attribute name="firstName" serialized-name="customer_name" />
592+
<attribute name="firstName" serialized-name="customer_name"/>
593593
</class>
594594
</serializer>
595595
@@ -795,7 +795,7 @@ the key ``#comment`` for encoding XML comments::
795795
// will return:
796796
// <?xml version="1.0"?>
797797
// <response>
798-
// <foo bar="value" />
798+
// <foo bar="value"/>
799799
// <qux><!-- A comment --!><qux>
800800
// </response>
801801

@@ -1370,8 +1370,8 @@ and ``BitBucketCodeRepository`` classes:
13701370
>
13711371
<class name="App\CodeRepository">
13721372
<discriminator-map type-property="type">
1373-
<mapping type="github" class="App\GitHubCodeRepository" />
1374-
<mapping type="bitbucket" class="App\BitBucketCodeRepository" />
1373+
<mapping type="github" class="App\GitHubCodeRepository"/>
1374+
<mapping type="bitbucket" class="App\BitBucketCodeRepository"/>
13751375
</discriminator-map>
13761376
</class>
13771377
</serializer>

components/var_dumper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ the :ref:`dump_destination option <configuration-debug-dump_destination>` of the
140140
https://symfony.com/schema/dic/services/services-1.0.xsd
141141
http://symfony.com/schema/dic/debug https://symfony.com/schema/dic/debug/debug-1.0.xsd">
142142
143-
<debug:config dump-destination="tcp://%env(VAR_DUMPER_SERVER)%" />
143+
<debug:config dump-destination="tcp://%env(VAR_DUMPER_SERVER)%"/>
144144
</container>
145145
146146
.. code-block:: php

configuration.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ instance, the framework bundle is configured in ``config/packages/framework.yaml
4747
http://symfony.com/schema/dic/framework https://symfony.com/schema/dic/framework/framework-1.0.xsd"
4848
>
4949
<framework:config secret="%env(APP_SECRET)%">
50-
<!--<framework:csrf-protection enabled="true“ />-->
51-
<!--<framework:esi enabled="true" />-->
52-
<!--<framework:fragments enabled="true" />-->
50+
<!--<framework:csrf-protection enabled="true“/>-->
51+
<!--<framework:esi enabled="true"/>-->
52+
<!--<framework:fragments enabled="true"/>-->
5353
5454
<!-- Enables session support. Note that the session will ONLY be started if you read or write from it.
5555
Remove or comment this section to explicitly disable session support. -->
56-
<framework:session />
56+
<framework:session/>
5757
58-
<framework:php-errors log="true" />
58+
<framework:php-errors log="true"/>
5959
</framework:config>
6060
</container>
6161

configuration/configuration_organization.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ format (``.yaml``, ``.xml``, ``.php``, ``.ini``):
103103
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
104104
105105
<imports>
106-
<import resource="my_config_file.yaml" />
107-
<import resource="legacy.php" />
106+
<import resource="my_config_file.yaml"/>
107+
<import resource="legacy.php"/>
108108
</imports>
109109
110110
<!-- ... -->
@@ -157,7 +157,7 @@ when importing it from any other configuration file:
157157
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
158158
159159
<imports>
160-
<import resource="/etc/sites/mysite.com/parameters.yaml" ignore-errors="true" />
160+
<import resource="/etc/sites/mysite.com/parameters.yaml" ignore-errors="true"/>
161161
</imports>
162162
163163
<!-- ... -->

configuration/environments.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ the environment variable is passed to the kernel::
158158
http://symfony.com/schema/dic/twig
159159
https://symfony.com/schema/dic/twig/twig-1.0.xsd">
160160
161-
<twig:config debug="%kernel.debug%" />
161+
<twig:config debug="%kernel.debug%"/>
162162
163163
</container>
164164
@@ -231,7 +231,7 @@ configuration file:
231231
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
232232
233233
<framework:config>
234-
<framework:profiler only-exceptions="false" />
234+
<framework:profiler only-exceptions="false"/>
235235
</framework:config>
236236
237237
</container>

configuration/external_parameters.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ turn the value of the ``HTTP_PORT`` env var into an integer:
164164
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
165165
166166
<framework:config>
167-
<framework:router http-port="%env(int:HTTP_PORT)%" />
167+
<framework:router http-port="%env(int:HTTP_PORT)%"/>
168168
</framework:config>
169169
</container>
170170
@@ -208,7 +208,7 @@ Symfony provides the following env var processors:
208208
<parameter key="env(SECRET)">some_secret</parameter>
209209
</parameters>
210210
211-
<framework:config secret="%env(string:SECRET)%" />
211+
<framework:config secret="%env(string:SECRET)%"/>
212212
</container>
213213
214214
.. code-block:: php
@@ -248,7 +248,7 @@ Symfony provides the following env var processors:
248248
<parameter key="env(HTTP_METHOD_OVERRIDE)">true</parameter>
249249
</parameters>
250250
251-
<framework:config http-methode-override="%env(bool:HTTP_METHOD_OVERRIDE)%" />
251+
<framework:config http-methode-override="%env(bool:HTTP_METHOD_OVERRIDE)%"/>
252252
</container>
253253
254254
.. code-block:: php
@@ -294,7 +294,7 @@ Symfony provides the following env var processors:
294294
</parameters>
295295
296296
<security:config>
297-
<rule path="^/health-check$" methods="%env(const:HEALTH_CHECK_METHOD)%" />
297+
<rule path="^/health-check$" methods="%env(const:HEALTH_CHECK_METHOD)%"/>
298298
</security:config>
299299
</container>
300300
@@ -344,7 +344,7 @@ Symfony provides the following env var processors:
344344
<parameter key="env(TRUSTED_HOSTS)">["10.0.0.1", "10.0.0.2"]</parameter>
345345
</parameters>
346346
347-
<framework:config trusted-hosts="%env(json:TRUSTED_HOSTS)%" />
347+
<framework:config trusted-hosts="%env(json:TRUSTED_HOSTS)%"/>
348348
</container>
349349
350350
.. code-block:: php
@@ -384,7 +384,7 @@ Symfony provides the following env var processors:
384384
<parameter key="env(SENTRY_DSN)">http://%env(HOST)%/project</parameter>
385385
</parameters>
386386
387-
<sentry:config dsn="%env(resolve:SENTRY_DSN)%" />
387+
<sentry:config dsn="%env(resolve:SENTRY_DSN)%"/>
388388
</container>
389389
390390
.. code-block:: php
@@ -435,7 +435,7 @@ Symfony provides the following env var processors:
435435
<parameter key="env(AUTH_FILE)">../config/auth.json</parameter>
436436
</parameters>
437437
438-
<google auth="%env(file:AUTH_FILE)%" />
438+
<google auth="%env(file:AUTH_FILE)%"/>
439439
</container>
440440
441441
.. code-block:: php

configuration/micro_kernel_trait.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ because the configuration started to get bigger:
224224
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
225225
226226
<framework:config secret="S0ME_SECRET">
227-
<framework:profiler only-exceptions="false" />
227+
<framework:profiler only-exceptions="false"/>
228228
</framework:config>
229229
</container>
230230

configuration/using_parameters_in_dic.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ Now, examine the results to see this closely:
5353
<container xmlns="http://symfony.com/schema/dic/services"
5454
xmlns:my-bundle="http://example.org/schema/dic/my_bundle">
5555
56-
<my-bundle:config logging="true" />
56+
<my-bundle:config logging="true"/>
5757
<!-- true, as expected -->
5858
59-
<my-bundle:config logging="%kernel.debug%" />
59+
<my-bundle:config logging="%kernel.debug%"/>
6060
<!-- true/false (depends on 2nd parameter of Kernel),
6161
as expected, because %kernel.debug% inside configuration
6262
gets evaluated before being passed to the extension -->
6363
64-
<my-bundle:config />
64+
<my-bundle:config/>
6565
<!-- passes the string "%kernel.debug%".
6666
Which is always considered as true.
6767
The Configurator does not know anything about

console/commands_as_services.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Or set the ``command`` attribute on the ``console.command`` tag in your service
104104
105105
<services>
106106
<service id="App\Command\SunshineCommand">
107-
<tag name="console.command" command="app:sunshine" />
107+
<tag name="console.command" command="app:sunshine"/>
108108
</service>
109109
</services>
110110
</container>

controller/argument_value_resolver.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type-hinted method arguments:
8888
https://symfony.com/schema/dic/services/services-1.0.xsd">
8989
9090
<sensio-framework-extra:config>
91-
<request converters="true" auto-convert="false" />
91+
<request converters="true" auto-convert="false"/>
9292
</sensio-framework-extra:config>
9393
</container>
9494
@@ -194,11 +194,11 @@ and adding a priority.
194194
195195
<services>
196196
<!-- ... be sure autowiring is enabled -->
197-
<defaults autowire="true" />
197+
<defaults autowire="true"/>
198198
<!-- ... -->
199199
200200
<service id="App\ArgumentResolver\UserValueResolver">
201-
<tag name="controller.argument_value_resolver" priority="50" />
201+
<tag name="controller.argument_value_resolver" priority="50"/>
202202
</service>
203203
</services>
204204

controller/error_pages.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ automatically when installing Twig support):
171171
xsi:schemaLocation="http://symfony.com/schema/routing
172172
https://symfony.com/schema/routing/routing-1.0.xsd">
173173
174-
<import resource="@TwigBundle/Resources/config/routing/errors.xml" prefix="/_error" />
174+
<import resource="@TwigBundle/Resources/config/routing/errors.xml" prefix="/_error"/>
175175
</routes>
176176
177177
.. code-block:: php
@@ -293,7 +293,7 @@ In that case, you might want to override one or both of the ``showAction()`` and
293293
294294
<services>
295295
<!-- ... be sure autowiring is enabled -->
296-
<defaults autowire="true" />
296+
<defaults autowire="true"/>
297297
<!-- ... -->
298298
299299
<service id="App\Controller\CustomExceptionController" public="true">

controller/service.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ a service like: ``App\Controller\HelloController::index``:
5757
xsi:schemaLocation="http://symfony.com/schema/routing
5858
https://symfony.com/schema/routing/routing-1.0.xsd">
5959
60-
<route id="hello" path="/hello" controller="App\Controller\HelloController::index" methods="GET" />
60+
<route id="hello" path="/hello" controller="App\Controller\HelloController::index" methods="GET"/>
6161
6262
</routes>
6363

controller/soap_web_service.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,17 @@ An example WSDL is below.
120120
121121
<types>
122122
<xsd:schema targetNamespace="urn:hellowsdl">
123-
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
124-
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
123+
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
124+
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
125125
</xsd:schema>
126126
</types>
127127
128128
<message name="helloRequest">
129-
<part name="name" type="xsd:string" />
129+
<part name="name" type="xsd:string"/>
130130
</message>
131131
132132
<message name="helloResponse">
133-
<part name="return" type="xsd:string" />
133+
<part name="return" type="xsd:string"/>
134134
</message>
135135
136136
<portType name="hellowsdlPortType">
@@ -160,7 +160,7 @@ An example WSDL is below.
160160
161161
<service name="hellowsdl">
162162
<port name="hellowsdlPort" binding="tns:hellowsdlBinding">
163-
<soap:address location="http://example.com/index.php/soap" />
163+
<soap:address location="http://example.com/index.php/soap"/>
164164
</port>
165165
</service>
166166
</definitions>

controller/upload_file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ Now, register this class as a Doctrine listener:
418418
419419
<services>
420420
<!-- ... be sure autowiring is enabled -->
421-
<defaults autowire="true" />
421+
<defaults autowire="true"/>
422422
<!-- ... -->
423423
424424
<service id="App\EventListener\BrochureUploaderListener">

doctrine/associations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ the ``Product`` entity (and getter & setter methods):
196196
field="category"
197197
target-entity="App\Entity\Category"
198198
inversed-by="products">
199-
<join-column nullable="false" />
199+
<join-column nullable="false"/>
200200
</many-to-one>
201201
</entity>
202202
</doctrine-mapping>
@@ -271,7 +271,7 @@ class that will hold these objects:
271271
<one-to-many
272272
field="products"
273273
target-entity="App\Entity\Product"
274-
mapped-by="category" />
274+
mapped-by="category"/>
275275
276276
<!--
277277
don't forget to init the collection in

doctrine/dbal.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ mapping types, read Doctrine's `Custom Mapping Types`_ section of their document
8989
9090
<doctrine:config>
9191
<doctrine:dbal>
92-
<doctrine:type name="custom_first" class="App\Type\CustomFirst" />
93-
<doctrine:type name="custom_second" class="App\Type\CustomSecond" />
92+
<doctrine:type name="custom_first" class="App\Type\CustomFirst"/>
93+
<doctrine:type name="custom_second" class="App\Type\CustomSecond"/>
9494
</doctrine:dbal>
9595
</doctrine:config>
9696
</container>

0 commit comments

Comments
 (0)