| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 20 | public function register() |
|
| 25 | { |
||
| 26 | $this->app->afterResolving('blade.compiler', function (BladeCompiler $bladeCompiler) { |
||
| 27 | $bladeCompiler->directive('vue', function ($expression) { |
||
| 28 | 2 | return Basic::start($expression); |
|
| 29 | 4 | }); |
|
| 30 | |||
| 31 | $bladeCompiler->directive('endvue', function () { |
||
| 32 | 2 | return Basic::end(); |
|
| 33 | 4 | }); |
|
| 34 | |||
| 35 | $bladeCompiler->directive('inlinevue', function ($expression) { |
||
| 36 | 2 | return Inline::start($expression); |
|
| 37 | 4 | }); |
|
| 38 | |||
| 39 | $bladeCompiler->directive('endinlinevue', function () { |
||
| 40 | 2 | return Inline::end(); |
|
| 41 | 4 | }); |
|
| 45 |