Passed
Pull Request — master (#2)
by Alejandro
02:16
created

Compiler::setFilesystem()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Netflie\Componentes;
4
5
class Compiler extends \Illuminate\View\Compilers\BladeCompiler
6
{
7
    /**
8
     * Compile the component tags.
9
     *
10
     * @param  string  $value
11
     * @return string
12
     */
13
    protected function compileComponentTags($value)
14
    {
15
        if (! $this->compilesComponentTags) {
16
            return $value;
17
        }
18
19
        return (new ComponentTagCompiler(
20
            $this->classComponentAliases, $this
21
        ))->compile($value);
22
    }
23
}