protected function prepareInputFilesForParsing(array $input = [])
    {
        $parse = [];
        foreach ($input as $in) {
            $less = realpath(WWW_ROOT . $in);
            // If we have plugin notation (Plugin.less/file.less)
            // ensure to properly load the files
            list($plugin, $basefile) = $this->_View->pluginSplit($in, false);
            if (!empty($plugin)) {
                $less = realpath(Plugin::path($plugin) . 'webroot' . DS . $basefile);

                if ($less !== false) {
                    $parse[$less] = $this->assetBaseUrl($plugin, $basefile);
                    continue;
                }
            }
            if ($less !== false) {
                $parse[$less] = '';
                continue;
            }
            // Plugins without plugin notation (/plugin/less/file.less)
            list($plugin, $basefile) = $this->assetSplit($in);
            if ($file = $this->pluginAssetFile([$plugin, $basefile])) {
                $parse[$file] = $this->assetBaseUrl($plugin, $basefile);
                continue;
            }

            // Will probably throw a not found error
            $parse[$in] = '';
        }

        return $parse;
    }
protected function prepareInputFilesForParsing(array $input = [])
    {
        $parse = [];
        foreach ($input as $in) {
            $less = realpath(WWW_ROOT . $in);
            // If we have plugin notation (Plugin.less/file.less)
            // ensure to properly load the files
            list($plugin, $basefile) = $this->_View->pluginSplit($in, false);
            if (!empty($plugin)) {
                $less = realpath(Plugin::path($plugin) . 'webroot' . DS . $basefile);

                if ($less !== false) {
                    $parse[$less] = $this->assetBaseUrl($plugin, $basefile);
                    continue;
                }
            }
            if ($less !== false) {
                $parse[$less] = '';
                continue;
            }
            // Plugins without plugin notation (/plugin/less/file.less)
            list($plugin, $basefile) = $this->assetSplit($in);
            if ($file = $this->pluginAssetFile([$plugin, $basefile])) {
                $parse[$file] = $this->assetBaseUrl($plugin, $basefile);
                continue;
            }

            // Will probably throw a not found error
            $parse[$in] = '';
        }

        return $parse;
    }
protected function prepareInputFilesForParsing ( array $ input = [ ] ) { $ parse = [ ] ; foreach ( $ input as $ in ) { $ less = realpath ( WWW_ROOT . $ in ) ; // If we have plugin notation (Plugin.less/file.less) // ensure to properly load the files list ( $ plugin , $ basefile ) = $ this -> _View -> pluginSplit ( $ in , false ) ; if ( ! empty ( $ plugin ) ) { $ less = realpath ( Plugin :: path ( $ plugin ) . 'webroot' . DS . $ basefile ) ; if ( $ less !== false ) { $ parse [ $ less ] = $ this -> assetBaseUrl ( $ plugin , $ basefile ) ; continue ; } } if ( $ less !== false ) { $ parse [ $ less ] = '' ; continue ; } // Plugins without plugin notation (/plugin/less/file.less) list ( $ plugin , $ basefile ) = $ this -> assetSplit ( $ in ) ; if ( $ file = $ this -> pluginAssetFile ( [ $ plugin , $ basefile ] ) ) { $ parse [ $ file ] = $ this -> assetBaseUrl ( $ plugin , $ basefile ) ; continue ; } // Will probably throw a not found error $ parse [ $ in ] = '' ; } return $ parse ; }
Prepares input files as Less.php parser wants them.

@param  array  $input An array with all the input files.
@return array
Prepares input files as Less . php parser wants them .