Compiler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 1
b 0
f 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A compileComponentTags() 0 9 2
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
}