Passed
Branch master (050893)
by Ilya
03:56
created
Category
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/Providers/LaraflashServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function boot()
22 22
     {
23
-        $this->loadViewsFrom(__DIR__ . '/../../resources/views/components/skins', 'laraflash_skin');
23
+        $this->loadViewsFrom(__DIR__.'/../../resources/views/components/skins', 'laraflash_skin');
24 24
 
25 25
         $this->publishes([
26 26
             __DIR__.'/../../resources/views' => resource_path('views/vendor/laraflash'),
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
         $this->app->bind(FlashMessageContract::class, FlashMessage::class);
43 43
         $this->app->bind(FlashMessagesBagResolverContract::class, FlashMessagesBagResolver::class);
44 44
 
45
-        $this->app->singleton('laraflash.bag', function () {
45
+        $this->app->singleton('laraflash.bag', function() {
46 46
             return $this->app->make(FlashMessagesBagResolverContract::class, [
47 47
                 'session' => $this->app->make(Session::class),
48 48
                 'sessionKey' => 'flash_messages_bag',
49 49
             ])->bag();
50 50
         });
51 51
 
52
-        $this->app->resolving('laraflash.bag', function (FlashMessagesBagContract $bag) {
52
+        $this->app->resolving('laraflash.bag', function(FlashMessagesBagContract $bag) {
53 53
             $bag->prepare();
54 54
         });
55 55
 
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.