Passed
Push — master ( 9a214a...f69e09 )
by Alejandro
02:55 queued 11s
created

Compiler::getAttributesFromAttributeString()   A

Complexity

Conditions 4
Paths 2

Size

Total Lines 27
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 4
eloc 15
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 27
rs 9.7666
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
}