Total Complexity | 7 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Coverage | 63.64% |
Changes | 0 |
1 | <?php |
||
9 | class BladeCompiler |
||
10 | { |
||
11 | /** |
||
12 | * @param $data |
||
13 | * @return mixed |
||
14 | */ |
||
15 | protected static function absorbApplicationEnvironment($data) |
||
16 | { |
||
17 | 5 | $data['__env'] = app(Factory::class); |
|
18 | |||
19 | 5 | return $data; |
|
20 | } |
||
21 | 5 | ||
22 | /** |
||
23 | * @param string $php |
||
24 | * @param array $data |
||
25 | * @throws \Throwable |
||
26 | */ |
||
27 | protected static function compile(string $php, array $data) |
||
40 | } |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return false|string |
||
45 | */ |
||
46 | protected static function getRendered() |
||
47 | { |
||
48 | 5 | return ob_get_clean(); |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return int |
||
53 | 5 | */ |
|
54 | protected static function initializeOutputBuffering() |
||
55 | 5 | { |
|
56 | $obLevel = ob_get_level(); |
||
57 | |||
58 | ob_start(); |
||
59 | |||
60 | return $obLevel; |
||
61 | 5 | } |
|
62 | |||
63 | 5 | /** |
|
64 | * @param $string |
||
65 | 5 | * @param $data |
|
66 | * @return false|string |
||
67 | 5 | * @throws \Throwable |
|
68 | */ |
||
69 | public static function render($string, $data) |
||
74 | } |
||
75 | } |
||
76 |