Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function format($target) |
||
20 | { |
||
21 | $formattedParameters = array_map(function($value) { |
||
22 | return ' ' . $this->aggregate->format($value); |
||
23 | }, $target->getParameterValues()); |
||
24 | |||
25 | array_unshift($formattedParameters, '['); |
||
26 | array_push($formattedParameters, ']'); |
||
27 | |||
28 | $paramDescription = implode(PHP_EOL, $formattedParameters); |
||
29 | |||
30 | return strtr(':jobName :jobGroup with parameters :parametersDescription', [ |
||
31 | ':jobName' => $target->getName(), |
||
32 | ':jobGroup' => (string) $target, |
||
33 | ':parametersDescription' => $paramDescription, |
||
34 | ]); |
||
35 | } |
||
36 | } |