src/View/Helper/HtmlHelper.php
public function less($path, array $options = [])
    {
        $cssPath = [];

        if (!Arr::key('force', $options)) {
            $options['force'] = false;
        }

        if (is_array($path)) {
            foreach ($path as $i) {
                if ($result = $this->Less->process($i, $options['force'])) {
                    $cssPath[] = $result;
                }
            }
        }

        if (is_string($path) && $result = $this->Less->process($path, $options['force'])) {
            $cssPath[] = $result;
        }

        return $this->css($cssPath, $options);
    }
public function less($path, array $options = [])
    {
        $cssPath = [];

        if (!Arr::key('force', $options)) {
            $options['force'] = false;
        }

        if (is_array($path)) {
            foreach ($path as $i) {
                if ($result = $this->Less->process($i, $options['force'])) {
                    $cssPath[] = $result;
                }
            }
        }

        if (is_string($path) && $result = $this->Less->process($path, $options['force'])) {
            $cssPath[] = $result;
        }

        return $this->css($cssPath, $options);
    }
public function less ( $ path , array $ options = [ ] ) { $ cssPath = [ ] ; if ( ! Arr :: key ( 'force' , $ options ) ) { $ options [ 'force' ] = false ; } if ( is_array ( $ path ) ) { foreach ( $ path as $ i ) { if ( $ result = $ this -> Less -> process ( $ i , $ options [ 'force' ] ) ) { $ cssPath [ ] = $ result ; } } } if ( is_string ( $ path ) && $ result = $ this -> Less -> process ( $ path , $ options [ 'force' ] ) ) { $ cssPath [ ] = $ result ; } return $ this -> css ( $ cssPath , $ options ) ; }
Creates a CSS stylesheets from less.

@param   string|array $path
@param   array $options
@return  null|string

@throws  \JBZoo\Less\Exception
Creates a CSS stylesheets from less .