Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.351 |
Changes | 0 |
1 | <?php |
||
33 | 1 | protected function getParams() |
|
34 | { |
||
35 | 1 | $articleParams = []; |
|
36 | 1 | foreach ($this->paramIdToValue as $id => $value) { |
|
37 | $articleParams[] = [ |
||
38 | 'id' => $id, |
||
39 | 'name' => Parameter::getName($id), |
||
40 | 'value' => $value |
||
41 | ]; |
||
42 | } |
||
43 | |||
44 | $params = [ |
||
45 | 'article_definition' => [ |
||
46 | 1 | 'parameter' => $articleParams |
|
47 | ] |
||
48 | ]; |
||
49 | |||
50 | 1 | return $params; |
|
51 | } |
||
53 |