src/Utility/Field.php
protected static function arrangePanels(array $fields) : array
    {
        $result = [];

        foreach ($fields as $row) {
            $panelName = array_shift($row);
            $result[$panelName][] = $row;
        }

        return $result;
    }
protected static function arrangePanels(array $fields) : array
    {
        $result = [];

        foreach ($fields as $row) {
            $panelName = array_shift($row);
            $result[$panelName][] = $row;
        }

        return $result;
    }
protected static function arrangePanels ( array $ fields ) : array { $ result = [ ] ; foreach ( $ fields as $ row ) { $ panelName = array_shift ( $ row ) ; $ result [ $ panelName ] [ ] = $ row ; } return $ result ; }
Method that arranges csv fields into panels.

@param mixed[] $fields csv fields
@return mixed[]
Method that arranges csv fields into panels .