Inline::start()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Jhoff\BladeVue\Directives;
4
5
class Inline
6
{
7
    /**
8
     * Php code required to render the ending component html tag
9
     *
10
     * @return string
11
     */
12 3
    public static function end() : string
13
    {
14 3
        return '</div><?php echo \Jhoff\BladeVue\Components\Inline::end(); ?>';
15
    }
16
17
    /**
18
     * Php code required to parse the expression and render the starting component html tag
19
     *
20
     * @param string $expression
21
     * @return string
22
     */
23 3
    public static function start(string $expression) : string
24
    {
25 3
        return "<?php echo \Jhoff\BladeVue\Components\Inline::start($expression); ?><div>";
26
    }
27
}
28