Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function parseResponse($responseLine, $responseData) |
||
44 | { |
||
45 | |||
46 | $workflows = parent::parseResponse($responseLine, $responseData); |
||
47 | |||
48 | $name = $this->name; |
||
49 | $matchingWorkflows = $workflows->filter(function(Workflow $workflow) use ($name) { |
||
1 ignored issue
–
show
|
|||
50 | return $workflow->getName() === $name; |
||
51 | }); |
||
52 | |||
53 | return !$matchingWorkflows->isEmpty() ? $matchingWorkflows->first() : false; |
||
54 | } |
||
56 |