Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 8 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | View Code Duplication | protected function parseBinderMessage($multipartMessage) |
|
22 | { |
||
23 | $id = $multipartMessage[1]; |
||
24 | $type = $multipartMessage[2]; |
||
25 | $message = array_slice($multipartMessage, 3); |
||
26 | |||
27 | return [ $id, $type, $message ]; |
||
28 | } |
||
29 | |||
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.