Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\View\Compilers\Concerns;
4
 
5
trait CompilesComments
6
{
7
    /**
8
     * Compile Blade comments into an empty string.
9
     *
10
     * @param  string  $value
11
     * @return string
12
     */
13
    protected function compileComments($value)
14
    {
15
        $pattern = sprintf('/%s--(.*?)--%s/s', $this->contentTags[0], $this->contentTags[1]);
16
 
17
        return preg_replace($pattern, '', $value);
18
    }
19
}