From 7c39f810fa0b9c6fa0badeb6c1c367b92280e90c Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Sun, 30 Sep 2012 17:55:19 +0100 Subject: [PATCH] Fixing some line lengths in config examples to avoid horizontal scrolling --- components/config/caching.rst | 3 ++- components/config/definition.rst | 5 ++++- components/config/resources.rst | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/components/config/caching.rst b/components/config/caching.rst index 42a195fc1cf..e5f93f1d850 100644 --- a/components/config/caching.rst +++ b/components/config/caching.rst @@ -37,7 +37,8 @@ the cache can tell if it is still fresh or that its contents should be regenerat $resources = array(); foreach ($yamlUserFiles as $yamlUserFile) { - // see the previous article "Loading resources" to see where $delegatingLoader comes from + // see the previous article "Loading resources" to + // see where $delegatingLoader comes from $delegatingLoader->load($yamlUserFile); $resources[] = new FileResource($yamlUserFile); } diff --git a/components/config/definition.rst b/components/config/definition.rst index fdafcf29aab..cc1b6be0e61 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -439,5 +439,8 @@ Otherwise the result is a clean array of configuration values:: $processor = new Processor(); $configuration = new DatabaseConfiguration; - $processedConfiguration = $processor->processConfiguration($configuration, $configs); + $processedConfiguration = $processor->processConfiguration( + $configuration, + $configs) + ; diff --git a/components/config/resources.rst b/components/config/resources.rst index c502882362a..b669e5da9d2 100644 --- a/components/config/resources.rst +++ b/components/config/resources.rst @@ -50,7 +50,10 @@ class, which allows for recursively importing other resources:: public function supports($resource, $type = null) { - return is_string($resource) && 'yml' === pathinfo($resource, PATHINFO_EXTENSION); + return is_string($resource) && 'yml' === pathinfo( + $resource, + PATHINFO_EXTENSION + ); } }