| Total Complexity | 6 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class StreamParser |
||
| 19 | { |
||
| 20 | use Facade; |
||
| 21 | |||
| 22 | private function __construct() |
||
| 23 | { |
||
| 24 | Collection::macro('recursive', function () { |
||
| 25 | 9 | return $this->map(function ($value) { |
|
|
|
|||
| 26 | 9 | if (is_array($value) || is_object($value)) { |
|
| 27 | 9 | return (new Collection($value))->recursive(); |
|
| 28 | } |
||
| 29 | 9 | return $value; |
|
| 30 | 9 | }); |
|
| 31 | 15 | }); |
|
| 32 | 15 | } |
|
| 33 | |||
| 34 | 6 | private function xml(String $source){ |
|
| 36 | } |
||
| 37 | |||
| 38 | 4 | private function json(String $source){ |
|
| 39 | 4 | return (new JSONParser())->from($source); |
|
| 40 | } |
||
| 41 | |||
| 42 | 5 | private function csv(String $source){ |
|
| 44 | } |
||
| 45 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.