| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 17 | protected function fixWhitespace($val) |
||
| 18 | { |
||
| 19 | switch ($this->whiteSpace) { |
||
| 20 | case 'preserve': |
||
| 21 | return $val; |
||
| 22 | case 'replace': |
||
| 23 | $val = str_replace("\r\n", "\n", $val); |
||
| 24 | return preg_replace('/\s/', ' ', $val); |
||
| 25 | case 'collapse': |
||
| 26 | return trim(preg_replace('/\s+/', ' ', $val)); |
||
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 41 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.