Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
50 | public function getFilters(): array |
||
51 | { |
||
52 | return [ |
||
53 | 'id' => $this->workflow->getId(), |
||
54 | 'name' => $this->workflow->getName(), |
||
55 | "group" => $this->workflow->getGroup(), |
||
56 | 'content' => base64_encode($this->workflow->getXml()->saveXML()), |
||
57 | 'comment' => $this->workflow->getComment() |
||
58 | ]; |
||
77 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: