Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 8 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
34 | View Code Duplication | protected function parseConnectorMessage($multipartMessage) |
|
35 | { |
||
36 | $id = $multipartMessage[1]; |
||
37 | $type = $multipartMessage[2]; |
||
38 | $message = array_slice($multipartMessage, 3); |
||
39 | |||
40 | return [ $id, $type, $message ]; |
||
41 | } |
||
42 | |||
63 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.