protected function parseIncludes(array $includes)
    {
        $return = [
            'includes' => [],
            'modes' => []
        ];

        foreach ($includes as $include) {
            $explode = explode(':', $include);

            if (!isset($explode[1])) {
                $explode[1] = $this->defaults['mode'];
            }

            $return['includes'][] = $explode[0];
            $return['modes'][$explode[0]] = $explode[1];
        }

        return $return;
    }
protected function parseIncludes(array $includes)
    {
        $return = [
            'includes' => [],
            'modes' => []
        ];

        foreach ($includes as $include) {
            $explode = explode(':', $include);

            if (!isset($explode[1])) {
                $explode[1] = $this->defaults['mode'];
            }

            $return['includes'][] = $explode[0];
            $return['modes'][$explode[0]] = $explode[1];
        }

        return $return;
    }
protected function parseIncludes ( array $ includes ) { $ return = [ 'includes' => [ ] , 'modes' => [ ] ] ; foreach ( $ includes as $ include ) { $ explode = explode ( ':' , $ include ) ; if ( ! isset ( $ explode [ 1 ] ) ) { $ explode [ 1 ] = $ this -> defaults [ 'mode' ] ; } $ return [ 'includes' ] [ ] = $ explode [ 0 ] ; $ return [ 'modes' ] [ $ explode [ 0 ] ] = $ explode [ 1 ] ; } return $ return ; }
Parse include strings into resource and modes
@param  array  $includes
@return array The parsed resources and their respective modes
Parse include strings into resource and modes