Test Setup Failed
Push — master ( bbae22...33a2d7 )
by Hesham
39:07
created
vendor/illuminate/http/JsonResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             $this->data = json_encode($data, $this->encodingOptions);
72 72
         }
73 73
 
74
-        if (! $this->hasValidJson(json_last_error())) {
74
+        if (!$this->hasValidJson(json_last_error())) {
75 75
             throw new InvalidArgumentException(json_last_error_msg());
76 76
         }
77 77
 
Please login to merge, or discard this patch.
vendor/illuminate/http/Testing/FileFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function create($name, $kilobytes = 0)
17 17
     {
18
-        return tap(new File($name, tmpfile()), function ($file) use ($kilobytes) {
18
+        return tap(new File($name, tmpfile()), function($file) use ($kilobytes) {
19 19
             $file->sizeToReport = $kilobytes * 1024;
20 20
         });
21 21
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     protected function generateImage($width, $height, $type)
47 47
     {
48
-        return tap(tmpfile(), function ($temp) use ($width, $height, $type) {
48
+        return tap(tmpfile(), function($temp) use ($width, $height, $type) {
49 49
             ob_start();
50 50
 
51 51
             $image = imagecreatetruecolor($width, $height);
Please login to merge, or discard this patch.
vendor/illuminate/http/Resources/Json/JsonResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      */
76 76
     public static function collection($resource)
77 77
     {
78
-        return tap(new AnonymousResourceCollection($resource, static::class), function ($collection) {
78
+        return tap(new AnonymousResourceCollection($resource, static::class), function($collection) {
79 79
             if (property_exists(static::class, 'preserveKeys')) {
80 80
                 $collection->preserveKeys = (new static([]))->preserveKeys === true;
81 81
             }
Please login to merge, or discard this patch.
vendor/illuminate/http/Resources/Json/PaginatedResourceResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
                 )
25 25
             ),
26 26
             $this->calculateStatus()
27
-        ), function ($response) use ($request) {
27
+        ), function($response) use ($request) {
28 28
             $response->original = $this->resource->resource->pluck('resource');
29 29
 
30 30
             $this->resource->withResponse($request, $response);
Please login to merge, or discard this patch.
vendor/illuminate/http/Resources/Json/ResourceResponse.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                 $this->resource->additional
42 42
             ),
43 43
             $this->calculateStatus()
44
-        ), function ($response) use ($request) {
44
+        ), function($response) use ($request) {
45 45
             $response->original = $this->resource->resource;
46 46
 
47 47
             $this->resource->withResponse($request, $response);
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     protected function haveDefaultWrapperAndDataIsUnwrapped($data)
81 81
     {
82
-        return $this->wrapper() && ! array_key_exists($this->wrapper(), $data);
82
+        return $this->wrapper() && !array_key_exists($this->wrapper(), $data);
83 83
     }
84 84
 
85 85
     /**
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected function haveAdditionalInformationAndDataIsUnwrapped($data, $with, $additional)
94 94
     {
95
-        return (! empty($with) || ! empty($additional)) &&
96
-               (! $this->wrapper() ||
97
-                ! array_key_exists($this->wrapper(), $data));
95
+        return (!empty($with) || !empty($additional)) &&
96
+               (!$this->wrapper() ||
97
+                !array_key_exists($this->wrapper(), $data));
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
vendor/illuminate/http/Resources/CollectsResources.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
         $collects = $this->collects();
23 23
 
24
-        $this->collection = $collects && ! $resource->first() instanceof $collects
24
+        $this->collection = $collects && !$resource->first() instanceof $collects
25 25
             ? $resource->mapInto($collects)
26 26
             : $resource->toBase();
27 27
 
Please login to merge, or discard this patch.
vendor/illuminate/http/Resources/ConditionallyLoadsAttributes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
             $default = new MissingValue;
159 159
         }
160 160
 
161
-        if (! $this->resource->relationLoaded($relationship)) {
161
+        if (!$this->resource->relationLoaded($relationship)) {
162 162
             return value($default);
163 163
         }
164 164
 
Please login to merge, or discard this patch.
vendor/illuminate/pipeline/Pipeline.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function thenReturn()
113 113
     {
114
-        return $this->then(function ($passable) {
114
+        return $this->then(function($passable) {
115 115
             return $passable;
116 116
         });
117 117
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function prepareDestination(Closure $destination)
126 126
     {
127
-        return function ($passable) use ($destination) {
127
+        return function($passable) use ($destination) {
128 128
             return $destination($passable);
129 129
         };
130 130
     }
@@ -136,14 +136,14 @@  discard block
 block discarded – undo
136 136
      */
137 137
     protected function carry()
138 138
     {
139
-        return function ($stack, $pipe) {
140
-            return function ($passable) use ($stack, $pipe) {
139
+        return function($stack, $pipe) {
140
+            return function($passable) use ($stack, $pipe) {
141 141
                 if (is_callable($pipe)) {
142 142
                     // If the pipe is an instance of a Closure, we will just call it directly but
143 143
                     // otherwise we'll resolve the pipes out of the container and call it with
144 144
                     // the appropriate method and arguments, returning the results back out.
145 145
                     return $pipe($passable, $stack);
146
-                } elseif (! is_object($pipe)) {
146
+                } elseif (!is_object($pipe)) {
147 147
                     [$name, $parameters] = $this->parsePipeString($pipe);
148 148
 
149 149
                     // If the pipe is a string we will parse the string and resolve the class out
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     protected function getContainer()
198 198
     {
199
-        if (! $this->container) {
199
+        if (!$this->container) {
200 200
             throw new RuntimeException('A container instance has not been passed to the Pipeline.');
201 201
         }
202 202
 
Please login to merge, or discard this patch.
vendor/illuminate/filesystem/FilesystemServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     protected function registerNativeFilesystem()
27 27
     {
28
-        $this->app->singleton('files', function () {
28
+        $this->app->singleton('files', function() {
29 29
             return new Filesystem;
30 30
         });
31 31
     }
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $this->registerManager();
41 41
 
42
-        $this->app->singleton('filesystem.disk', function () {
42
+        $this->app->singleton('filesystem.disk', function() {
43 43
             return $this->app['filesystem']->disk($this->getDefaultDriver());
44 44
         });
45 45
 
46
-        $this->app->singleton('filesystem.cloud', function () {
46
+        $this->app->singleton('filesystem.cloud', function() {
47 47
             return $this->app['filesystem']->disk($this->getCloudDriver());
48 48
         });
49 49
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     protected function registerManager()
57 57
     {
58
-        $this->app->singleton('filesystem', function () {
58
+        $this->app->singleton('filesystem', function() {
59 59
             return new FilesystemManager($this->app);
60 60
         });
61 61
     }
Please login to merge, or discard this patch.