Completed
Branch develop (8d86f5)
by
unknown
19:44
created
webklex/php-imap/vendor/illuminate/collections/Traits/EnumeratesValues.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -186,13 +186,13 @@  discard block
 block discarded – undo
186 186
     public function containsStrict($key, $value = null)
187 187
     {
188 188
         if (func_num_args() === 2) {
189
-            return $this->contains(function ($item) use ($key, $value) {
189
+            return $this->contains(function($item) use ($key, $value) {
190 190
                 return data_get($item, $key) === $value;
191 191
             });
192 192
         }
193 193
 
194 194
         if ($this->useAsCallable($key)) {
195
-            return ! is_null($this->first($key));
195
+            return !is_null($this->first($key));
196 196
         }
197 197
 
198 198
         foreach ($this as $item) {
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     {
227 227
         (new Collection(func_get_args()))
228 228
             ->push($this->all())
229
-            ->each(function ($item) {
229
+            ->each(function($item) {
230 230
                 VarDumper::dump($item);
231 231
             });
232 232
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      */
259 259
     public function eachSpread(callable $callback)
260 260
     {
261
-        return $this->each(function ($chunk, $key) use ($callback) {
261
+        return $this->each(function($chunk, $key) use ($callback) {
262 262
             $chunk[] = $key;
263 263
 
264 264
             return $callback(...$chunk);
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
             $callback = $this->valueRetriever($key);
280 280
 
281 281
             foreach ($this as $k => $v) {
282
-                if (! $callback($v, $k)) {
282
+                if (!$callback($v, $k)) {
283 283
                     return false;
284 284
                 }
285 285
             }
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      */
311 311
     public function isNotEmpty()
312 312
     {
313
-        return ! $this->isEmpty();
313
+        return !$this->isEmpty();
314 314
     }
315 315
 
316 316
     /**
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
      */
322 322
     public function mapSpread(callable $callback)
323 323
     {
324
-        return $this->map(function ($chunk, $key) use ($callback) {
324
+        return $this->map(function($chunk, $key) use ($callback) {
325 325
             $chunk[] = $key;
326 326
 
327 327
             return $callback(...$chunk);
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
      */
363 363
     public function mapInto($class)
364 364
     {
365
-        return $this->map(function ($value, $key) use ($class) {
365
+        return $this->map(function($value, $key) use ($class) {
366 366
             return new $class($value, $key);
367 367
         });
368 368
     }
@@ -377,11 +377,11 @@  discard block
 block discarded – undo
377 377
     {
378 378
         $callback = $this->valueRetriever($callback);
379 379
 
380
-        return $this->map(function ($value) use ($callback) {
380
+        return $this->map(function($value) use ($callback) {
381 381
             return $callback($value);
382
-        })->filter(function ($value) {
383
-            return ! is_null($value);
384
-        })->reduce(function ($result, $value) {
382
+        })->filter(function($value) {
383
+            return !is_null($value);
384
+        })->reduce(function($result, $value) {
385 385
             return is_null($result) || $value < $result ? $value : $result;
386 386
         });
387 387
     }
@@ -396,9 +396,9 @@  discard block
 block discarded – undo
396 396
     {
397 397
         $callback = $this->valueRetriever($callback);
398 398
 
399
-        return $this->filter(function ($value) {
400
-            return ! is_null($value);
401
-        })->reduce(function ($result, $item) use ($callback) {
399
+        return $this->filter(function($value) {
400
+            return !is_null($value);
401
+        })->reduce(function($result, $item) use ($callback) {
402 402
             $value = $callback($item);
403 403
 
404 404
             return is_null($result) || $value > $result ? $value : $result;
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
             ? $this->identity()
460 460
             : $this->valueRetriever($callback);
461 461
 
462
-        return $this->reduce(function ($result, $item) use ($callback) {
462
+        return $this->reduce(function($result, $item) use ($callback) {
463 463
             return $result + $callback($item);
464 464
         }, 0);
465 465
     }
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
      */
475 475
     public function when($value, callable $callback = null, callable $default = null)
476 476
     {
477
-        if (! $callback) {
477
+        if (!$callback) {
478 478
             return new HigherOrderWhenProxy($this, $value);
479 479
         }
480 480
 
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
      */
522 522
     public function unless($value, callable $callback, callable $default = null)
523 523
     {
524
-        return $this->when(! $value, $callback, $default);
524
+        return $this->when(!$value, $callback, $default);
525 525
     }
526 526
 
527 527
     /**
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
     {
608 608
         $values = $this->getArrayableItems($values);
609 609
 
610
-        return $this->filter(function ($item) use ($key, $values, $strict) {
610
+        return $this->filter(function($item) use ($key, $values, $strict) {
611 611
             return in_array(data_get($item, $key), $values, $strict);
612 612
         });
613 613
     }
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
      */
646 646
     public function whereNotBetween($key, $values)
647 647
     {
648
-        return $this->filter(function ($item) use ($key, $values) {
648
+        return $this->filter(function($item) use ($key, $values) {
649 649
             return data_get($item, $key) < reset($values) || data_get($item, $key) > end($values);
650 650
         });
651 651
     }
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
     {
663 663
         $values = $this->getArrayableItems($values);
664 664
 
665
-        return $this->reject(function ($item) use ($key, $values, $strict) {
665
+        return $this->reject(function($item) use ($key, $values, $strict) {
666 666
             return in_array(data_get($item, $key), $values, $strict);
667 667
         });
668 668
     }
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
      */
688 688
     public function whereInstanceOf($type)
689 689
     {
690
-        return $this->filter(function ($value) use ($type) {
690
+        return $this->filter(function($value) use ($type) {
691 691
             if (is_array($type)) {
692 692
                 foreach ($type as $classType) {
693 693
                     if ($value instanceof $classType) {
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
     public function pipeThrough($pipes)
734 734
     {
735 735
         return static::make($pipes)->reduce(
736
-            function ($carry, $pipe) {
736
+            function($carry, $pipe) {
737 737
                 return $pipe($carry);
738 738
             },
739 739
             $this,
@@ -803,7 +803,7 @@  discard block
 block discarded – undo
803 803
         foreach ($this as $key => $value) {
804 804
             $result = call_user_func_array($callback, array_merge($result, [$value, $key]));
805 805
 
806
-            if (! is_array($result)) {
806
+            if (!is_array($result)) {
807 807
                 throw new UnexpectedValueException(sprintf(
808 808
                     "%s::reduceMany expects reducer to return an array, but got a '%s' instead.",
809 809
                     class_basename(static::class), gettype($result)
@@ -836,9 +836,9 @@  discard block
 block discarded – undo
836 836
     {
837 837
         $useAsCallable = $this->useAsCallable($callback);
838 838
 
839
-        return $this->filter(function ($value, $key) use ($callback, $useAsCallable) {
839
+        return $this->filter(function($value, $key) use ($callback, $useAsCallable) {
840 840
             return $useAsCallable
841
-                ? ! $callback($value, $key)
841
+                ? !$callback($value, $key)
842 842
                 : $value != $callback;
843 843
         });
844 844
     }
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
      */
872 872
     public function toArray()
873 873
     {
874
-        return $this->map(function ($value) {
874
+        return $this->map(function($value) {
875 875
             return $value instanceof Arrayable ? $value->toArray() : $value;
876 876
         })->all();
877 877
     }
@@ -884,7 +884,7 @@  discard block
 block discarded – undo
884 884
     #[\ReturnTypeWillChange]
885 885
     public function jsonSerialize()
886 886
     {
887
-        return array_map(function ($value) {
887
+        return array_map(function($value) {
888 888
             if ($value instanceof JsonSerializable) {
889 889
                 return $value->jsonSerialize();
890 890
             } elseif ($value instanceof Jsonable) {
@@ -965,7 +965,7 @@  discard block
 block discarded – undo
965 965
      */
966 966
     public function __get($key)
967 967
     {
968
-        if (! in_array($key, static::$proxies)) {
968
+        if (!in_array($key, static::$proxies)) {
969 969
             throw new Exception("Property [{$key}] does not exist on this collection instance.");
970 970
         }
971 971
 
@@ -1021,10 +1021,10 @@  discard block
 block discarded – undo
1021 1021
             $operator = '=';
1022 1022
         }
1023 1023
 
1024
-        return function ($item) use ($key, $operator, $value) {
1024
+        return function($item) use ($key, $operator, $value) {
1025 1025
             $retrieved = data_get($item, $key);
1026 1026
 
1027
-            $strings = array_filter([$retrieved, $value], function ($value) {
1027
+            $strings = array_filter([$retrieved, $value], function($value) {
1028 1028
                 return is_string($value) || (is_object($value) && method_exists($value, '__toString'));
1029 1029
             });
1030 1030
 
@@ -1056,7 +1056,7 @@  discard block
 block discarded – undo
1056 1056
      */
1057 1057
     protected function useAsCallable($value)
1058 1058
     {
1059
-        return ! is_string($value) && is_callable($value);
1059
+        return !is_string($value) && is_callable($value);
1060 1060
     }
1061 1061
 
1062 1062
     /**
@@ -1071,7 +1071,7 @@  discard block
 block discarded – undo
1071 1071
             return $value;
1072 1072
         }
1073 1073
 
1074
-        return function ($item) use ($value) {
1074
+        return function($item) use ($value) {
1075 1075
             return data_get($item, $value);
1076 1076
         };
1077 1077
     }
@@ -1084,7 +1084,7 @@  discard block
 block discarded – undo
1084 1084
      */
1085 1085
     protected function equality($value)
1086 1086
     {
1087
-        return function ($item) use ($value) {
1087
+        return function($item) use ($value) {
1088 1088
             return $item === $value;
1089 1089
         };
1090 1090
     }
@@ -1097,8 +1097,8 @@  discard block
 block discarded – undo
1097 1097
      */
1098 1098
     protected function negate(Closure $callback)
1099 1099
     {
1100
-        return function (...$params) use ($callback) {
1101
-            return ! $callback(...$params);
1100
+        return function(...$params) use ($callback) {
1101
+            return !$callback(...$params);
1102 1102
         };
1103 1103
     }
1104 1104
 
@@ -1109,7 +1109,7 @@  discard block
 block discarded – undo
1109 1109
      */
1110 1110
     protected function identity()
1111 1111
     {
1112
-        return function ($value) {
1112
+        return function($value) {
1113 1113
             return $value;
1114 1114
         };
1115 1115
     }
Please login to merge, or discard this patch.
webklex/php-imap/vendor/illuminate/support/ConfigurationUrlParser.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
         $url = Arr::pull($config, 'url');
37 37
 
38
-        if (! $url) {
38
+        if (!$url) {
39 39
             return $config;
40 40
         }
41 41
 
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
             'port' => $url['port'] ?? null,
68 68
             'username' => $url['user'] ?? null,
69 69
             'password' => $url['pass'] ?? null,
70
-        ], function ($value) {
71
-            return ! is_null($value);
70
+        ], function($value) {
71
+            return !is_null($value);
72 72
         });
73 73
     }
74 74
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $alias = $url['scheme'] ?? null;
84 84
 
85
-        if (! $alias) {
85
+        if (!$alias) {
86 86
             return;
87 87
         }
88 88
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     {
113 113
         $queryString = $url['query'] ?? null;
114 114
 
115
-        if (! $queryString) {
115
+        if (!$queryString) {
116 116
             return [];
117 117
         }
118 118
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             return array_map([$this, 'parseStringsToNativeTypes'], $value);
157 157
         }
158 158
 
159
-        if (! is_string($value)) {
159
+        if (!is_string($value)) {
160 160
             return $value;
161 161
         }
162 162
 
Please login to merge, or discard this patch.
htdocs/includes/webklex/php-imap/vendor/illuminate/support/Manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         // If the given driver has not been created before, we will create the instances
77 77
         // here and cache it so we can return it next time very quickly. If there is
78 78
         // already a driver created by this name, we'll just return that instance.
79
-        if (! isset($this->drivers[$driver])) {
79
+        if (!isset($this->drivers[$driver])) {
80 80
             $this->drivers[$driver] = $this->createDriver($driver);
81 81
         }
82 82
 
Please login to merge, or discard this patch.
htdocs/includes/webklex/php-imap/vendor/illuminate/support/helpers.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Illuminate\Support\HigherOrderTapProxy;
8 8
 use Illuminate\Support\Optional;
9 9
 
10
-if (! function_exists('append_config')) {
10
+if (!function_exists('append_config')) {
11 11
     /**
12 12
      * Assign high numeric IDs to a config item to force appending.
13 13
      *
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     }
31 31
 }
32 32
 
33
-if (! function_exists('blank')) {
33
+if (!function_exists('blank')) {
34 34
     /**
35 35
      * Determine if the given value is "blank".
36 36
      *
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
 }
61 61
 
62
-if (! function_exists('class_basename')) {
62
+if (!function_exists('class_basename')) {
63 63
     /**
64 64
      * Get the class "basename" of the given object / class.
65 65
      *
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     }
75 75
 }
76 76
 
77
-if (! function_exists('class_uses_recursive')) {
77
+if (!function_exists('class_uses_recursive')) {
78 78
     /**
79 79
      * Returns all traits used by a class, its parent classes and trait of their traits.
80 80
      *
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     }
98 98
 }
99 99
 
100
-if (! function_exists('e')) {
100
+if (!function_exists('e')) {
101 101
     /**
102 102
      * Encode HTML special characters in a string.
103 103
      *
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     }
120 120
 }
121 121
 
122
-if (! function_exists('env')) {
122
+if (!function_exists('env')) {
123 123
     /**
124 124
      * Gets the value of an environment variable.
125 125
      *
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     }
134 134
 }
135 135
 
136
-if (! function_exists('filled')) {
136
+if (!function_exists('filled')) {
137 137
     /**
138 138
      * Determine if a value is "filled".
139 139
      *
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
      */
143 143
     function filled($value)
144 144
     {
145
-        return ! blank($value);
145
+        return !blank($value);
146 146
     }
147 147
 }
148 148
 
149
-if (! function_exists('object_get')) {
149
+if (!function_exists('object_get')) {
150 150
     /**
151 151
      * Get an item from an object using "dot" notation.
152 152
      *
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         }
163 163
 
164 164
         foreach (explode('.', $key) as $segment) {
165
-            if (! is_object($object) || ! isset($object->{$segment})) {
165
+            if (!is_object($object) || !isset($object->{$segment})) {
166 166
                 return value($default);
167 167
             }
168 168
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     }
174 174
 }
175 175
 
176
-if (! function_exists('optional')) {
176
+if (!function_exists('optional')) {
177 177
     /**
178 178
      * Provide access to optional objects.
179 179
      *
@@ -185,13 +185,13 @@  discard block
 block discarded – undo
185 185
     {
186 186
         if (is_null($callback)) {
187 187
             return new Optional($value);
188
-        } elseif (! is_null($value)) {
188
+        } elseif (!is_null($value)) {
189 189
             return $callback($value);
190 190
         }
191 191
     }
192 192
 }
193 193
 
194
-if (! function_exists('preg_replace_array')) {
194
+if (!function_exists('preg_replace_array')) {
195 195
     /**
196 196
      * Replace a given pattern with each value in the array in sequentially.
197 197
      *
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     function preg_replace_array($pattern, array $replacements, $subject)
204 204
     {
205
-        return preg_replace_callback($pattern, function () use (&$replacements) {
205
+        return preg_replace_callback($pattern, function() use (&$replacements) {
206 206
             foreach ($replacements as $key => $value) {
207 207
                 return array_shift($replacements);
208 208
             }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     }
211 211
 }
212 212
 
213
-if (! function_exists('retry')) {
213
+if (!function_exists('retry')) {
214 214
     /**
215 215
      * Retry an operation a given number of times.
216 216
      *
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         try {
234 234
             return $callback($attempts);
235 235
         } catch (Exception $e) {
236
-            if ($times < 1 || ($when && ! $when($e))) {
236
+            if ($times < 1 || ($when && !$when($e))) {
237 237
                 throw $e;
238 238
             }
239 239
 
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     }
247 247
 }
248 248
 
249
-if (! function_exists('tap')) {
249
+if (!function_exists('tap')) {
250 250
     /**
251 251
      * Call the given Closure with the given value then return the value.
252 252
      *
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
     }
267 267
 }
268 268
 
269
-if (! function_exists('throw_if')) {
269
+if (!function_exists('throw_if')) {
270 270
     /**
271 271
      * Throw the given exception if the given condition is true.
272 272
      *
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
     }
292 292
 }
293 293
 
294
-if (! function_exists('throw_unless')) {
294
+if (!function_exists('throw_unless')) {
295 295
     /**
296 296
      * Throw the given exception unless the given condition is true.
297 297
      *
@@ -304,13 +304,13 @@  discard block
 block discarded – undo
304 304
      */
305 305
     function throw_unless($condition, $exception = 'RuntimeException', ...$parameters)
306 306
     {
307
-        throw_if(! $condition, $exception, ...$parameters);
307
+        throw_if(!$condition, $exception, ...$parameters);
308 308
 
309 309
         return $condition;
310 310
     }
311 311
 }
312 312
 
313
-if (! function_exists('trait_uses_recursive')) {
313
+if (!function_exists('trait_uses_recursive')) {
314 314
     /**
315 315
      * Returns all traits used by a trait and its traits.
316 316
      *
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
     }
330 330
 }
331 331
 
332
-if (! function_exists('transform')) {
332
+if (!function_exists('transform')) {
333 333
     /**
334 334
      * Transform the given value if it is present.
335 335
      *
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     }
353 353
 }
354 354
 
355
-if (! function_exists('windows_os')) {
355
+if (!function_exists('windows_os')) {
356 356
     /**
357 357
      * Determine whether the current environment is Windows based.
358 358
      *
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
     }
365 365
 }
366 366
 
367
-if (! function_exists('with')) {
367
+if (!function_exists('with')) {
368 368
     /**
369 369
      * Return the given value, optionally passed through the given callback.
370 370
      *
Please login to merge, or discard this patch.
htdocs/includes/webklex/php-imap/vendor/illuminate/support/Js.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
             return $data->toJson($flags | static::REQUIRED_FLAGS);
95 95
         }
96 96
 
97
-        if ($data instanceof Arrayable && ! ($data instanceof JsonSerializable)) {
97
+        if ($data instanceof Arrayable && !($data instanceof JsonSerializable)) {
98 98
             $data = $data->toArray();
99 99
         }
100 100
 
Please login to merge, or discard this patch.
htdocs/includes/webklex/php-imap/vendor/illuminate/support/Stringable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
         $segments = preg_split($pattern, $this->value, $limit, $flags);
225 225
 
226
-        return ! empty($segments) ? collect($segments) : collect();
226
+        return !empty($segments) ? collect($segments) : collect();
227 227
     }
228 228
 
229 229
     /**
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      */
286 286
     public function isNotEmpty()
287 287
     {
288
-        return ! $this->isEmpty();
288
+        return !$this->isEmpty();
289 289
     }
290 290
 
291 291
     /**
Please login to merge, or discard this patch.
webklex/php-imap/vendor/illuminate/support/MultipleInstanceManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
             throw new InvalidArgumentException("Instance [{$name}] is not defined.");
104 104
         }
105 105
 
106
-        if (! array_key_exists('driver', $config)) {
106
+        if (!array_key_exists('driver', $config)) {
107 107
             throw new RuntimeException("Instance [{$name}] does not specify a driver.");
108 108
         }
109 109
 
Please login to merge, or discard this patch.
htdocs/includes/webklex/php-imap/vendor/illuminate/support/HtmlString.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     public function isNotEmpty()
53 53
     {
54
-        return ! $this->isEmpty();
54
+        return !$this->isEmpty();
55 55
     }
56 56
 
57 57
     /**
Please login to merge, or discard this patch.
webklex/php-imap/vendor/illuminate/support/Testing/Fakes/QueueFake.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             [$job, $callback] = [$this->firstClosureParameterType($job), $job];
75 75
         }
76 76
 
77
-        $this->assertPushed($job, function ($job, $pushedQueue) use ($callback, $queue) {
77
+        $this->assertPushed($job, function($job, $pushedQueue) use ($callback, $queue) {
78 78
             if ($pushedQueue !== $queue) {
79 79
                 return false;
80 80
             }
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
      */
136 136
     protected function assertPushedWithChainOfObjects($job, $expectedChain, $callback)
137 137
     {
138
-        $chain = collect($expectedChain)->map(function ($job) {
138
+        $chain = collect($expectedChain)->map(function($job) {
139 139
             return serialize($job);
140 140
         })->all();
141 141
 
142 142
         PHPUnit::assertTrue(
143
-            $this->pushed($job, $callback)->filter(function ($job) use ($chain) {
143
+            $this->pushed($job, $callback)->filter(function($job) use ($chain) {
144 144
                 return $job->chained == $chain;
145 145
             })->isNotEmpty(),
146 146
             'The expected chain was not pushed.'
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
      */
158 158
     protected function assertPushedWithChainOfClasses($job, $expectedChain, $callback)
159 159
     {
160
-        $matching = $this->pushed($job, $callback)->map->chained->map(function ($chain) {
161
-            return collect($chain)->map(function ($job) {
160
+        $matching = $this->pushed($job, $callback)->map->chained->map(function($chain) {
161
+            return collect($chain)->map(function($job) {
162 162
                 return get_class(unserialize($job));
163 163
             });
164
-        })->filter(function ($chain) use ($expectedChain) {
164
+        })->filter(function($chain) use ($expectedChain) {
165 165
             return $chain->all() === $expectedChain;
166 166
         });
167 167
 
@@ -178,8 +178,8 @@  discard block
 block discarded – undo
178 178
      */
179 179
     protected function isChainOfObjects($chain)
180 180
     {
181
-        return ! collect($chain)->contains(function ($job) {
182
-            return ! is_object($job);
181
+        return !collect($chain)->contains(function($job) {
182
+            return !is_object($job);
183 183
         });
184 184
     }
185 185
 
@@ -221,15 +221,15 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public function pushed($job, $callback = null)
223 223
     {
224
-        if (! $this->hasPushed($job)) {
224
+        if (!$this->hasPushed($job)) {
225 225
             return collect();
226 226
         }
227 227
 
228
-        $callback = $callback ?: function () {
228
+        $callback = $callback ?: function() {
229 229
             return true;
230 230
         };
231 231
 
232
-        return collect($this->jobs[$job])->filter(function ($data) use ($callback) {
232
+        return collect($this->jobs[$job])->filter(function($data) use ($callback) {
233 233
             return $callback($data['job'], $data['queue']);
234 234
         })->pluck('job');
235 235
     }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     public function hasPushed($job)
244 244
     {
245
-        return isset($this->jobs[$job]) && ! empty($this->jobs[$job]);
245
+        return isset($this->jobs[$job]) && !empty($this->jobs[$job]);
246 246
     }
247 247
 
248 248
     /**
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     public function size($queue = null)
266 266
     {
267
-        return collect($this->jobs)->flatten(1)->filter(function ($job) use ($queue) {
267
+        return collect($this->jobs)->flatten(1)->filter(function($job) use ($queue) {
268 268
             return $job['queue'] === $queue;
269 269
         })->count();
270 270
     }
Please login to merge, or discard this patch.