| Conditions | 7 | 
| Paths | 1 | 
| Total Lines | 26 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php namespace Spatie\CollectionMacros\Macros;  | 
            ||
| 16 | public function transpose()  | 
            ||
| 17 |     { | 
            ||
| 18 |         return function (): Collection { | 
            ||
| 19 |             if ($this->isEmpty()) { | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 20 | return new static();  | 
            ||
| 21 | }  | 
            ||
| 22 | |||
| 23 | $firstItem = $this->first();  | 
            ||
| 24 | |||
| 25 | $expectedLength = is_array($firstItem) || $firstItem instanceof Countable ? count($firstItem) : 0;  | 
            ||
| 26 | |||
| 27 |             array_walk($this->items, function ($row) use ($expectedLength) { | 
            ||
| 28 |                 if ((is_array($row) || $row instanceof Countable) && count($row) !== $expectedLength) { | 
            ||
| 29 |                     throw new LengthException("Element's length must be equal."); | 
            ||
| 30 | }  | 
            ||
| 31 | });  | 
            ||
| 32 | |||
| 33 |             $items = array_map(function (...$items) { | 
            ||
| 34 | return new static($items);  | 
            ||
| 35 |             }, ...array_map(function ($items) { | 
            ||
| 36 | return $this->getArrayableItems($items);  | 
            ||
| 37 | }, array_values($this->items)));  | 
            ||
| 38 | |||
| 39 | return new static($items);  | 
            ||
| 40 | };  | 
            ||
| 41 | }  | 
            ||
| 42 | }  | 
            ||
| 43 | 
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.