@@ -25,6 +25,9 @@ discard block |
||
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $containerVariable |
|
| 30 | + */ |
|
| 28 | 31 | public static function dumpArguments($argumentsValues, $containerVariable, array $usedVariables) { |
| 29 | 32 | $arguments = []; |
| 30 | 33 | $prependedCode = []; |
@@ -41,6 +44,9 @@ discard block |
||
| 41 | 44 | return new InlineEntry($argumentsCode, $prependedCodeString, $usedVariables); |
| 42 | 45 | } |
| 43 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $containerVariable |
|
| 49 | + */ |
|
| 44 | 50 | private static function dumpArray(array $value, $containerVariable, array $usedVariables) { |
| 45 | 51 | $code = array(); |
| 46 | 52 | $prependCode = array(); |
@@ -58,6 +64,9 @@ discard block |
||
| 58 | 64 | return new InlineEntry(sprintf('array(%s)', implode(', ', $code)), implode("\n", $prependCode), $usedVariables); |
| 59 | 65 | } |
| 60 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $containerVariable |
|
| 69 | + */ |
|
| 61 | 70 | private static function dumpDefinition(DumpableInterface $definition, $containerVariable, array $usedVariables) { |
| 62 | 71 | // If the identifier is null, we must inline the definition. |
| 63 | 72 | if ($definition->getIdentifier() === null) { |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | // Let's merge dumpable definitions with standard definitions. |
| 92 | 92 | $convertedDefinitions = array_map([$this->converter, 'convert'], $this->definitions); |
| 93 | - $allDefinitions = $convertedDefinitions + $this->dumpableDefinitions; |
|
| 93 | + $allDefinitions = $convertedDefinitions+$this->dumpableDefinitions; |
|
| 94 | 94 | |
| 95 | 95 | foreach ($allDefinitions as $identifier => $definition) { |
| 96 | 96 | $inlineEntry = $definition->toPhpCode('$container', ['$container']); |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | */ |
| 100 | 100 | public function addMethodArgument($argument) |
| 101 | 101 | { |
| 102 | - $this->methodArguments[] = $argument; |
|
| 102 | + $this->methodArguments[] = $argument; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | |