Passed
Push — master ( 289d13...53622d )
by Ilya
01:39 queued 10s
created
src/FlashMessagesBag.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function ready(): array
79 79
     {
80
-        return array_filter($this->messages, function (FlashMessage $message) {
80
+        return array_filter($this->messages, function(FlashMessage $message) {
81 81
             return $message->toArray()['delay'] === 0;
82 82
         });
83 83
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function render(): string
121 121
     {
122
-        return implode(config('laraflash.separator'), array_map(function (FlashMessage $message) {
122
+        return implode(config('laraflash.separator'), array_map(function(FlashMessage $message) {
123 123
             return $message->render();
124 124
         }, $this->ready()));
125 125
     }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function toArray(): array
155 155
     {
156
-        return array_values(array_map(function (FlashMessage $message) {
156
+        return array_values(array_map(function(FlashMessage $message) {
157 157
             return $message->toArray();
158 158
         }, $this->ready()));
159 159
     }
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function offsetSet($offset, $value)
194 194
     {
195
-        if (! $value instanceof FlashMessage) {
195
+        if (!$value instanceof FlashMessage) {
196 196
             throw new InvalidArgumentException;
197 197
         }
198 198
 
Please login to merge, or discard this patch.
src/FlashMessagesBagResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         $bag = $session->get($sessionKey);
27 27
 
28
-        if (is_null($bag) || ! is_object($bag) || ! $bag instanceof FlashMessagesBag) {
28
+        if (is_null($bag) || !is_object($bag) || !$bag instanceof FlashMessagesBag) {
29 29
             $bag = app(FlashMessagesBag::class);
30 30
 
31 31
             $session->put($sessionKey, $bag);
Please login to merge, or discard this patch.
src/FlashMessage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      */
219 219
     public function toArray(): array
220 220
     {
221
-        return array_reduce(self::MUTABLE_PROPERTIES, function (array $accumulator, string $property) {
221
+        return array_reduce(self::MUTABLE_PROPERTIES, function(array $accumulator, string $property) {
222 222
             $accumulator[$property] = $this->{$property};
223 223
 
224 224
             return $accumulator;
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      */
247 247
     public function offsetGet($offset)
248 248
     {
249
-        if (! $this->isMutableProperty($offset)) {
249
+        if (!$this->isMutableProperty($offset)) {
250 250
             throw new InvalidArgumentException;
251 251
         }
252 252
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      */
264 264
     public function offsetSet($offset, $value)
265 265
     {
266
-        if (! $this->isMutableProperty($offset)) {
266
+        if (!$this->isMutableProperty($offset)) {
267 267
             throw new InvalidArgumentException;
268 268
         }
269 269
 
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 use Coderello\Laraflash\Contracts\FlashMessagesBag;
4 4
 
5
-if (! function_exists('laraflash')) {
5
+if (!function_exists('laraflash')) {
6 6
     /**
7 7
      * @return FlashMessagesBag
8 8
      */
Please login to merge, or discard this patch.
src/Providers/LaraflashServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 
43 43
         $this->app->bind(FlashMessageContract::class, FlashMessage::class);
44 44
 
45
-        $this->app->resolving(FlashMessageContract::class, function (FlashMessageContract $message) {
45
+        $this->app->resolving(FlashMessageContract::class, function(FlashMessageContract $message) {
46 46
             foreach ((array) config('laraflash.defaults') as $key => $value) {
47
-                if (! is_null($value)) {
47
+                if (!is_null($value)) {
48 48
                     $message[$key] = $value;
49 49
                 }
50 50
             }
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
 
53 53
         $this->app->bind(FlashMessagesBagResolverContract::class, FlashMessagesBagResolver::class);
54 54
 
55
-        $this->app->singleton('laraflash.bag', function () {
55
+        $this->app->singleton('laraflash.bag', function() {
56 56
             return $this->app->make(FlashMessagesBagResolverContract::class, [
57 57
                 'session' => $this->app->make(Session::class),
58 58
                 'sessionKey' => 'flash_messages_bag',
59 59
             ])->bag();
60 60
         });
61 61
 
62
-        $this->app->resolving('laraflash.bag', function (FlashMessagesBagContract $bag) {
62
+        $this->app->resolving('laraflash.bag', function(FlashMessagesBagContract $bag) {
63 63
             $bag->prepare();
64 64
         });
65 65
 
Please login to merge, or discard this patch.