Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
53 | 7 | public function get() |
|
54 | { |
||
55 | 7 | if (in_array($this->id, [Status::SUCCESS, Status::FAILED]) && $this->name) { |
|
56 | 1 | return [$this->id => ['name' => $this->name]]; |
|
57 | } |
||
58 | 6 | $values = $this->getExistedValues($this->fieldList); |
|
59 | |||
60 | 6 | if ($this->id) { |
|
61 | 1 | return [$this->id => $values]; |
|
62 | } |
||
63 | |||
64 | 5 | return $values; |
|
65 | } |
||
66 | } |