Completed
Branch readme_tests (1966ff)
by Jordan
05:00 queued 02:30
created
tests/Integration/BladeTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
tests/Unit/ComponentTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,8 +109,8 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Element.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/DirectiveServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/VueDirective.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.