| 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 | 7 | public function parseResponse($responseLine, $responseData) |
|
| 44 | { |
||
| 45 | |||
| 46 | 7 | $workflows = parent::parseResponse($responseLine, $responseData); |
|
| 47 | |||
| 48 | 7 | $name = $this->name; |
|
| 49 | $matchingWorkflows = $workflows->filter(function (Workflow $workflow) use ($name) { |
||
| 50 | 7 | return $workflow->getName() === $name; |
|
| 51 | 7 | }); |
|
| 52 | |||
| 53 | 7 | return !$matchingWorkflows->isEmpty() ? $matchingWorkflows->first() : false; |
|
| 54 | } |
||
| 56 |