@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Jhoff\BladeVue\Testing\Integration; |
4 | 4 | |
5 | -use Jhoff\BladeVue\VueDirective; |
|
6 | 5 | use Jhoff\BladeVue\Testing\TestCase; |
7 | 6 | |
8 | 7 | class BladeTest extends TestCase |
@@ -109,8 +109,8 @@ |
||
109 | 109 | { |
110 | 110 | $tag = Component::start( |
111 | 111 | 'foobar', [ |
112 | - 'foo' => [1,2,3], |
|
113 | - 'bar' => (object)['foo' => 'bar'], |
|
112 | + 'foo' => [1, 2, 3], |
|
113 | + 'bar' => (object) ['foo' => 'bar'], |
|
114 | 114 | 'baz' => ['baz' => 'qux'] |
115 | 115 | ] |
116 | 116 | ); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | { |
48 | 48 | $attributes = $this->renderAttributes(); |
49 | 49 | |
50 | - return "<{$this->name}" . ( $attributes ? ' ' . $attributes : '' ) . '>'; |
|
50 | + return "<{$this->name}".($attributes ? ' '.$attributes : '').'>'; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -73,8 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | protected function buildAttribute(string $key, $value) : string |
75 | 75 | { |
76 | - return is_null($value) ? $key : |
|
77 | - sprintf('%s="%s"', $key, $value); |
|
76 | + return is_null($value) ? $key : sprintf('%s="%s"', $key, $value); |
|
78 | 77 | } |
79 | 78 | |
80 | 79 | /** |
@@ -22,11 +22,11 @@ |
||
22 | 22 | */ |
23 | 23 | public function register() |
24 | 24 | { |
25 | - Blade::directive('vue', function ($expression) { |
|
25 | + Blade::directive('vue', function($expression) { |
|
26 | 26 | return VueDirective::start($expression); |
27 | 27 | }); |
28 | 28 | |
29 | - Blade::directive('endvue', function () { |
|
29 | + Blade::directive('endvue', function() { |
|
30 | 30 | return VueDirective::end(); |
31 | 31 | }); |
32 | 32 | } |
@@ -22,6 +22,6 @@ |
||
22 | 22 | */ |
23 | 23 | public static function start(string $expression) : string |
24 | 24 | { |
25 | - return "<?php echo \Jhoff\BladeVue\Component::start($expression); ?>"; |
|
25 | + return "<?php echo \Jhoff\BladeVue\Component::start($expression); ?>"; |
|
26 | 26 | } |
27 | 27 | } |