@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | // Let's merge dumpable definitions with standard definitions. |
| 96 | 96 | $convertedDefinitions = array_map([$this->converter, 'convert'], $this->definitions); |
| 97 | - $allDefinitions = $convertedDefinitions + $this->dumpableDefinitions; |
|
| 97 | + $allDefinitions = $convertedDefinitions+$this->dumpableDefinitions; |
|
| 98 | 98 | |
| 99 | 99 | foreach ($allDefinitions as $identifier => $definition) { |
| 100 | 100 | $inlineEntry = $definition->toPhpCode('$container', ['$container']); |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | { |
| 114 | 114 | $pos = strrpos($className, '\\'); |
| 115 | 115 | if ($pos !== false) { |
| 116 | - $shortClassName = substr($className, $pos + 1); |
|
| 116 | + $shortClassName = substr($className, $pos+1); |
|
| 117 | 117 | $namespaceLine = 'namespace '.substr($className, 0, $pos).';'; |
| 118 | 118 | } else { |
| 119 | 119 | $shortClassName = $className; |
@@ -23,10 +23,10 @@ |
||
| 23 | 23 | |
| 24 | 24 | $numbers = ''; |
| 25 | 25 | while (true) { |
| 26 | - $lastCharacter = substr($variable, strlen($variable) - 1); |
|
| 26 | + $lastCharacter = substr($variable, strlen($variable)-1); |
|
| 27 | 27 | if ($lastCharacter >= '0' && $lastCharacter <= '9') { |
| 28 | 28 | $numbers = $lastCharacter.$numbers; |
| 29 | - $variable = substr($variable, 0, strlen($variable) - 1); |
|
| 29 | + $variable = substr($variable, 0, strlen($variable)-1); |
|
| 30 | 30 | } else { |
| 31 | 31 | break; |
| 32 | 32 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace TheCodingMachine\Yaco\ServiceProvider; |
| 5 | 5 | |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | return $this->converter->convert($decoratedServiceName, $callable); |
| 135 | 135 | } |
| 136 | 136 | if (is_array($callable) && is_string($callable[0])) { |
| 137 | - $params = [ $containerDefinition ]; |
|
| 137 | + $params = [$containerDefinition]; |
|
| 138 | 138 | if ($callbackWrapperDefinition) { |
| 139 | 139 | $params[] = $callbackWrapperDefinition; |
| 140 | 140 | } |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | $pos = strpos($callable, '::'); |
| 144 | 144 | $className = substr($callable, 0, $pos); |
| 145 | 145 | $methodName = substr($callable, $pos+2); |
| 146 | - $params = [ $containerDefinition ]; |
|
| 146 | + $params = [$containerDefinition]; |
|
| 147 | 147 | if ($callbackWrapperDefinition) { |
| 148 | 148 | $params[] = $callbackWrapperDefinition; |
| 149 | 149 | } |