Skip to content

Commit 98bd7ba

Browse files
committed
Remove trailing whitespace
1 parent 9fee9ee commit 98bd7ba

25 files changed

+70
-70
lines changed

book/controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ Symfony will automatically return a 500 HTTP response code.
556556
throw new \Exception('Something went wrong!');
557557
558558
In every case, an error page is shown to the end user and a full debug
559-
error page is shown to the developer (i.e. when you're using ``app_dev.php`` -
559+
error page is shown to the developer (i.e. when you're using ``app_dev.php`` -
560560
see :ref:`page-creation-environments`).
561561

562562
You'll want to customize the error page your user sees. To do that, see the

book/from_flat_php_to_symfony2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ the layout:
244244

245245
<?php include 'layout.php' ?>
246246

247-
You now have a setup that will allow you to reuse the layout.
247+
You now have a setup that will allow you to reuse the layout.
248248
Unfortunately, to accomplish this, you're forced to use a few ugly
249249
PHP functions (``ob_start()``, ``ob_get_clean()``) in the template. Symfony
250250
uses a Templating component that allows this to be accomplished cleanly

book/http_cache.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,8 @@ won't be asked to return the updated response until the cache finally becomes
538538
stale.
539539

540540
The validation model addresses this issue. Under this model, the cache continues
541-
to store responses. The difference is that, for each request, the cache asks the
542-
application if the cached response is still valid or if it needs to be regenerated.
541+
to store responses. The difference is that, for each request, the cache asks the
542+
application if the cached response is still valid or if it needs to be regenerated.
543543
If the cache *is* still valid, your application should return a 304 status code
544544
and no content. This tells the cache that it's ok to return the cached response.
545545

book/service_container.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ the service container gives you a much more appealing option:
611611
services:
612612
my_mailer:
613613
# ...
614-
614+
615615
newsletter_manager:
616616
class: Acme\HelloBundle\Newsletter\NewsletterManager
617617
arguments: ["@my_mailer"]
@@ -696,7 +696,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
696696
services:
697697
my_mailer:
698698
# ...
699-
699+
700700
newsletter_manager:
701701
class: Acme\HelloBundle\Newsletter\NewsletterManager
702702
calls:
@@ -731,7 +731,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
731731
use Symfony\Component\DependencyInjection\Reference;
732732
733733
$container->setDefinition('my_mailer', ...);
734-
734+
735735
$container->setDefinition('newsletter_manager', new Definition(
736736
'Acme\HelloBundle\Newsletter\NewsletterManager'
737737
))->addMethodCall('setMailer', array(
@@ -777,7 +777,7 @@ it exists and do nothing if it doesn't:
777777
<service id="my_mailer">
778778
<!-- ... -->
779779
</service>
780-
780+
781781
<service id="newsletter_manager" class="Acme\HelloBundle\Newsletter\NewsletterManager">
782782
<argument type="service" id="my_mailer" on-invalid="ignore" />
783783
</service>
@@ -792,7 +792,7 @@ it exists and do nothing if it doesn't:
792792
use Symfony\Component\DependencyInjection\ContainerInterface;
793793
794794
$container->setDefinition('my_mailer', ...);
795-
795+
796796
$container->setDefinition('newsletter_manager', new Definition(
797797
'Acme\HelloBundle\Newsletter\NewsletterManager',
798798
array(

components/class_loader/cache_class_loader.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
single: ClassLoader; Cache
55
single: ClassLoader; XcacheClassLoader
66
single: XCache; XcacheClassLoader
7-
7+
88
Cache a Class Loader
99
====================
1010

@@ -33,16 +33,16 @@ ApcClassLoader
3333
``findFile()`` method using `APC`_::
3434

3535
require_once '/path/to/src/Symfony/Component/ClassLoader/ApcClassLoader.php';
36-
36+
3737
// instance of a class that implements a findFile() method, like the ClassLoader
3838
$loader = ...;
39-
39+
4040
// sha1(__FILE__) generates an APC namespace prefix
4141
$cachedLoader = new ApcClassLoader(sha1(__FILE__), $loader);
42-
42+
4343
// register the cached class loader
4444
$cachedLoader->register();
45-
45+
4646
// deactivate the original, non-cached loader if it was registered previously
4747
$loader->unregister();
4848

@@ -56,16 +56,16 @@ XcacheClassLoader
5656
it is straightforward::
5757

5858
require_once '/path/to/src/Symfony/Component/ClassLoader/XcacheClassLoader.php';
59-
59+
6060
// instance of a class that implements a findFile() method, like the ClassLoader
6161
$loader = ...;
62-
62+
6363
// sha1(__FILE__) generates an XCache namespace prefix
6464
$cachedLoader = new XcacheClassLoader(sha1(__FILE__), $loader);
65-
65+
6666
// register the cached class loader
6767
$cachedLoader->register();
68-
68+
6969
// deactivate the original, non-cached loader if it was registered previously
7070
$loader->unregister();
7171

components/class_loader/debug_class_loader.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. index::
22
single: ClassLoader; DebugClassLoader
3-
3+
44
Debugging a Class Loader
55
========================
66

@@ -16,5 +16,5 @@ Using the ``DebugClassLoader`` is as easy as calling its static
1616
:method:`Symfony\\Component\\ClassLoader\\DebugClassLoader::enable` method::
1717

1818
use Symfony\Component\ClassLoader\DebugClassLoader;
19-
19+
2020
DebugClassLoader::enable();

components/class_loader/map_class_loader.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. index::
22
single: ClassLoader; MapClassLoader
3-
3+
44
MapClassLoader
55
==============
66

@@ -26,14 +26,14 @@ Using it is as easy as passing your mapping to its constructor when creating
2626
an instance of the ``MapClassLoader`` class::
2727

2828
require_once '/path/to/src/Symfony/Component/ClassLoader/MapClassLoader';
29-
29+
3030
$mapping = array(
3131
'Foo' => '/path/to/Foo',
3232
'Bar' => '/path/to/Bar',
3333
);
34-
34+
3535
$loader = new MapClassLoader($mapping);
36-
36+
3737
$loader->register();
3838

3939
.. _PSR-0: http://www.php-fig.org/psr/psr-0/

components/css_selector.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ web-browser.
7676

7777
* link-state selectors: ``:link``, ``:visited``, ``:target``
7878
* selectors based on user action: ``:hover``, ``:focus``, ``:active``
79-
* UI-state selectors: ``:invalid``, ``:indeterminate`` (however, ``:enabled``,
79+
* UI-state selectors: ``:invalid``, ``:indeterminate`` (however, ``:enabled``,
8080
``:disabled``, ``:checked`` and ``:unchecked`` are available)
8181

8282
Pseudo-elements (``:before``, ``:after``, ``:first-line``,

components/dependency_injection/advanced.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ using the ``get()`` method::
1717

1818
In some cases, a service *only* exists to be injected into another service
1919
and is *not* intended to be fetched directly from the container as shown
20-
above.
20+
above.
2121

2222
.. _inlined-private-services:
2323

components/security/authentication.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ in) is correct, you can use::
257257

258258
// fetch the Acme\Entity\LegacyUser
259259
$user = ...;
260-
260+
261261
// the submitted password, e.g. from the login form
262262
$plainPassword = ...;
263263

0 commit comments

Comments
 (0)