| Total Complexity | 7 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class StreamParser |
||
| 20 | { |
||
| 21 | use Facade; |
||
| 22 | |||
| 23 | private function __construct() |
||
| 24 | { |
||
| 25 | Collection::macro('recursive', function () { |
||
| 26 | 12 | return $this->map(function ($value) { |
|
|
|
|||
| 27 | 12 | if (is_array($value) || is_object($value)) { |
|
| 28 | 12 | return (new Collection($value))->recursive(); |
|
| 29 | } |
||
| 30 | 12 | return $value; |
|
| 31 | 12 | }); |
|
| 32 | 19 | }); |
|
| 33 | 19 | } |
|
| 34 | |||
| 35 | 6 | private function xml(String $source){ |
|
| 37 | } |
||
| 38 | |||
| 39 | 8 | private function json(String $source){ |
|
| 40 | 8 | return (new JSONParser())->from($source); |
|
| 41 | } |
||
| 42 | |||
| 43 | 5 | private function csv(String $source){ |
|
| 45 | } |
||
| 46 | |||
| 47 | 4 | private function chunk(StreamParserInterface $parser) |
|
| 50 | } |
||
| 51 | } |
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.