src/Collection/ArrayCollection.php
protected function itemsArray($items): array
    {
        if (is_array($items)) {
            return $items;
        } elseif ($items instanceof self) {
            return $items->all();
        } elseif ($items instanceof Arrayable) {
            return $items->toArray();
        }

        return (array) $items;
    }
protected function itemsArray($items): array
    {
        if (is_array($items)) {
            return $items;
        } elseif ($items instanceof self) {
            return $items->all();
        } elseif ($items instanceof Arrayable) {
            return $items->toArray();
        }

        return (array) $items;
    }
protected function itemsArray ( $ items ) : array { if ( is_array ( $ items ) ) { return $ items ; } elseif ( $ items instanceof self ) { return $ items -> all ( ) ; } elseif ( $ items instanceof Arrayable ) { return $ items -> toArray ( ) ; } return ( array ) $ items ; }
Retrieves items as an array

@codeCoverageIgnore

@param mixed $items The items

@return array
Retrieves items as an array