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