Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
39 | protected function buildArguments(array $arguments) : string |
||
40 | { |
||
41 | $argumentsString = []; |
||
42 | foreach ($arguments as $argumentName => $argumentType) { |
||
43 | // Group name with type |
||
44 | $argumentsString[] = ($argumentType !== null ? $argumentType . ' ' : '') . '$' . $argumentName; |
||
45 | } |
||
46 | |||
47 | return implode(', ', $argumentsString); |
||
48 | } |
||
49 | } |
||
50 |