src/View/Helper/LessHelper.php
protected function _normalizeContent($path, $fileHead)
    {
        $css = file_get_contents($path);
        if (!$this->_configRead('debug')) {
            $css = $this->_compress($css, $fileHead);
        } else {
            list ($first, $second) = explode(PHP_EOL, $css, 2);
            if (preg_match('(\/* cacheid:)', $first)) {
                $css = $second;
            }

            $css = implode('', [$fileHead, $css]);
        }

        return $this->_replaceUrl($css);
    }
protected function _normalizeContent($path, $fileHead)
    {
        $css = file_get_contents($path);
        if (!$this->_configRead('debug')) {
            $css = $this->_compress($css, $fileHead);
        } else {
            list ($first, $second) = explode(PHP_EOL, $css, 2);
            if (preg_match('(\/* cacheid:)', $first)) {
                $css = $second;
            }

            $css = implode('', [$fileHead, $css]);
        }

        return $this->_replaceUrl($css);
    }
protected function _normalizeContent ( $ path , $ fileHead ) { $ css = file_get_contents ( $ path ) ; if ( ! $ this -> _configRead ( 'debug' ) ) { $ css = $ this -> _compress ( $ css , $ fileHead ) ; } else { list ( $ first , $ second ) = explode ( PHP_EOL , $ css , 2 ) ; if ( preg_match ( '(\/* cacheid:)' , $ first ) ) { $ css = $ second ; } $ css = implode ( '' , [ $ fileHead , $ css ] ) ; } return $ this -> _replaceUrl ( $ css ) ; }
Normalize style file.

@param string $path
@param string $fileHead
@return mixed
Normalize style file .