@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function matchExtension($extension) |
| 32 | 32 | { |
| 33 | - foreach($this->extensions as $ext) { |
|
| 33 | + foreach ($this->extensions as $ext) { |
|
| 34 | 34 | if ($extension === $ext) { |
| 35 | 35 | return true; |
| 36 | 36 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | if (is_array($value)) { |
| 38 | 38 | throw new Exception(sprintf( |
| 39 | 39 | 'Extension .ini cannot use nested array on "%s".', |
| 40 | - $parent . '.' . $child |
|
| 40 | + $parent.'.'.$child |
|
| 41 | 41 | )); |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $value = 'true'; |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - return "\n" . sprintf('%s=%s', $name, $value); |
|
| 123 | + return "\n".sprintf('%s=%s', $name, $value); |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | */ |
| 111 | 111 | protected function finalizeValue($values) |
| 112 | 112 | { |
| 113 | - foreach($values as $name => $value) { |
|
| 113 | + foreach ($values as $name => $value) { |
|
| 114 | 114 | $this->prototype->setName($name); |
| 115 | 115 | $values[$name] = $this->prototype->finalize($value); |
| 116 | 116 | } |
@@ -34,13 +34,13 @@ discard block |
||
| 34 | 34 | public function __construct() |
| 35 | 35 | { |
| 36 | 36 | self::$nodeMapping = array( |
| 37 | - 'variable' => __NAMESPACE__ . '\\VariableDefinition', |
|
| 38 | - 'scalar' => __NAMESPACE__ . '\\ScalarDefinition', |
|
| 39 | - 'integer' => __NAMESPACE__ . '\\IntegerDefinition', |
|
| 40 | - 'float' => __NAMESPACE__ . '\\FloatDefinition', |
|
| 41 | - 'boolean' => __NAMESPACE__ . '\\BooleanDefinition', |
|
| 42 | - 'enum' => __NAMESPACE__ . '\\EnumDefinition', |
|
| 43 | - 'array' => __NAMESPACE__ . '\\ArrayDefinition', |
|
| 37 | + 'variable' => __NAMESPACE__.'\\VariableDefinition', |
|
| 38 | + 'scalar' => __NAMESPACE__.'\\ScalarDefinition', |
|
| 39 | + 'integer' => __NAMESPACE__.'\\IntegerDefinition', |
|
| 40 | + 'float' => __NAMESPACE__.'\\FloatDefinition', |
|
| 41 | + 'boolean' => __NAMESPACE__.'\\BooleanDefinition', |
|
| 42 | + 'enum' => __NAMESPACE__.'\\EnumDefinition', |
|
| 43 | + 'array' => __NAMESPACE__.'\\ArrayDefinition', |
|
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | && false === $parent instanceof NodeDefinitionContainerInterface |
| 90 | 90 | ) { |
| 91 | 91 | throw new InvalidArgumentException(sprintf( |
| 92 | - '"%s" should implement \Borobudur\Config\Definition\Builder\DefinitionInterface ' . |
|
| 92 | + '"%s" should implement \Borobudur\Config\Definition\Builder\DefinitionInterface '. |
|
| 93 | 93 | 'or \Borobudur\Config\Definition\Builder\NodeDefinitionContainerInterface', |
| 94 | 94 | get_class($parent) |
| 95 | 95 | )); |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | public function getDefaultValue() |
| 75 | 75 | { |
| 76 | 76 | $defaults = array(); |
| 77 | - foreach($this->children as $node) { |
|
| 77 | + foreach ($this->children as $node) { |
|
| 78 | 78 | $defaults[$node->getName()] = $node->getDefaultValue(); |
| 79 | 79 | } |
| 80 | 80 | |