Skip to content

Commit aabba70

Browse files
committed
Merge pull request #1767 from richardmiller/fixing_line_lenths_config
Fixing some line lengths in config examples to avoid horizontal scrollin...
2 parents d7c50e3 + 7c39f81 commit aabba70

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

components/config/caching.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ the cache can tell if it is still fresh or that its contents should be regenerat
3737
$resources = array();
3838

3939
foreach ($yamlUserFiles as $yamlUserFile) {
40-
// see the previous article "Loading resources" to see where $delegatingLoader comes from
40+
// see the previous article "Loading resources" to
41+
// see where $delegatingLoader comes from
4142
$delegatingLoader->load($yamlUserFile);
4243
$resources[] = new FileResource($yamlUserFile);
4344
}

components/config/definition.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,5 +453,8 @@ Otherwise the result is a clean array of configuration values::
453453

454454
$processor = new Processor();
455455
$configuration = new DatabaseConfiguration;
456-
$processedConfiguration = $processor->processConfiguration($configuration, $configs);
456+
$processedConfiguration = $processor->processConfiguration(
457+
$configuration,
458+
$configs)
459+
;
457460

components/config/resources.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ class, which allows for recursively importing other resources::
5050

5151
public function supports($resource, $type = null)
5252
{
53-
return is_string($resource) && 'yml' === pathinfo($resource, PATHINFO_EXTENSION);
53+
return is_string($resource) && 'yml' === pathinfo(
54+
$resource,
55+
PATHINFO_EXTENSION
56+
);
5457
}
5558
}
5659

0 commit comments

Comments
 (0)