public static function textualCacheDirectory($source, $destination = null, $options = null)
    {
        list($success, $errors, $errorDetails) = static::cacheDirectory($source, $destination, $options);

        return
            "$success templates cached.\n".
            "$errors templates failed to be cached.\n".
            implode('', array_map(function ($detail) {
                return $detail['inputFile']."\n".
                    $detail['error']->getMessage()."\n".
                    $detail['error']->getTraceAsString();
            }, $errorDetails));
    }
public static function textualCacheDirectory($source, $destination = null, $options = null)
    {
        list($success, $errors, $errorDetails) = static::cacheDirectory($source, $destination, $options);

        return
            "$success templates cached.\n".
            "$errors templates failed to be cached.\n".
            implode('', array_map(function ($detail) {
                return $detail['inputFile']."\n".
                    $detail['error']->getMessage()."\n".
                    $detail['error']->getTraceAsString();
            }, $errorDetails));
    }
public static function textualCacheDirectory ( $ source , $ destination = null , $ options = null ) { list ( $ success , $ errors , $ errorDetails ) = static :: cacheDirectory ( $ source , $ destination , $ options ) ; return "$success templates cached.\n" . "$errors templates failed to be cached.\n" . implode ( '' , array_map ( function ( $ detail ) { return $ detail [ 'inputFile' ] . "\n" . $ detail [ 'error' ] -> getMessage ( ) . "\n" . $ detail [ 'error' ] -> getTraceAsString ( ) ; } , $ errorDetails ) ) ; }
Same method as cacheDirectory but with textual human-friendly output.

@param string      $source      input directories containing pug files
@param string|null $destination output for compiled PHP files
(if array given, will be used as options array)
@param array|null  $options     optional options

@throws RendererException

@return string
Same method as cacheDirectory but with textual human - friendly output .