@@ -79,7 +79,7 @@  | 
                                                    ||
| 79 | 79 | return false;  | 
                                                        
| 80 | 80 | }  | 
                                                        
| 81 | 81 | |
| 82 | - return ! $this->stream->hasLoggedBefore($event->user->id, $event->ip, $event->browser);  | 
                                                        |
| 82 | + return !$this->stream->hasLoggedBefore($event->user->id, $event->ip, $event->browser);  | 
                                                        |
| 83 | 83 | }  | 
                                                        
| 84 | 84 | |
| 85 | 85 | /**  | 
                                                        
@@ -74,6 +74,6 @@  | 
                                                    ||
| 74 | 74 | */  | 
                                                        
| 75 | 75 | protected function commands()  | 
                                                        
| 76 | 76 |      { | 
                                                        
| 77 | - $this->load(__DIR__.'/Commands');  | 
                                                        |
| 77 | + $this->load(__DIR__ . '/Commands');  | 
                                                        |
| 78 | 78 | }  | 
                                                        
| 79 | 79 | }  | 
                                                        
@@ -58,7 +58,7 @@  | 
                                                    ||
| 58 | 58 | |
| 59 | 59 | $this->events->dispatch(new StreamSaving($activity));  | 
                                                        
| 60 | 60 | |
| 61 | - $result = $this->stream->create($activity->toArray());  | 
                                                        |
| 61 | + $result = $this->stream->create($activity->toArray());  | 
                                                        |
| 62 | 62 | |
| 63 | 63 | $this->events->dispatch(new StreamSaved($result));  | 
                                                        
| 64 | 64 | |
@@ -26,7 +26,7 @@  | 
                                                    ||
| 26 | 26 |      { | 
                                                        
| 27 | 27 | $data = array_except(  | 
                                                        
| 28 | 28 | $this->resource->toArray(),  | 
                                                        
| 29 | - ['slug', 'user_id', 'headline', 'employees', 'founded', 'country_id', 'vat_id', 'deleted_at', 'is_private', 'benefits','gallery']  | 
                                                        |
| 29 | + ['slug', 'user_id', 'headline', 'employees', 'founded', 'country_id', 'vat_id', 'deleted_at', 'is_private', 'benefits', 'gallery']  | 
                                                        |
| 30 | 30 | );  | 
                                                        
| 31 | 31 | |
| 32 | 32 | return array_merge($data, [  | 
                                                        
@@ -118,7 +118,7 @@  | 
                                                    ||
| 118 | 118 | return $this  | 
                                                        
| 119 | 119 | ->model  | 
                                                        
| 120 | 120 |              ->where('github', $url) | 
                                                        
| 121 | -            ->orWhere(fn ($query) => $query->where('provider', 'Github')->where('provider_id', $githubId)) | 
                                                        |
| 121 | +            ->orWhere(fn($query) => $query->where('provider', 'Github')->where('provider_id', $githubId)) | 
                                                        |
| 122 | 122 | ->update(['is_sponsor' => $flag]);  | 
                                                        
| 123 | 123 | }  | 
                                                        
| 124 | 124 | |
@@ -27,7 +27,7 @@  | 
                                                    ||
| 27 | 27 | return true;  | 
                                                        
| 28 | 28 | }  | 
                                                        
| 29 | 29 | |
| 30 | -        return count(array_filter(preg_split('/\s+/', $value), fn ($word) => strlen($word) > 1)) >= $this->minWords; | 
                                                        |
| 30 | +        return count(array_filter(preg_split('/\s+/', $value), fn($word) => strlen($word) > 1)) >= $this->minWords; | 
                                                        |
| 31 | 31 | }  | 
                                                        
| 32 | 32 | |
| 33 | 33 | /**  | 
                                                        
@@ -30,7 +30,7 @@  | 
                                                    ||
| 30 | 30 | static $excluded;  | 
                                                        
| 31 | 31 | |
| 32 | 32 |          if (auth()->check() && $excluded === null) { | 
                                                        
| 33 | - $excluded = array_pluck(array_where($this->userDefined->followers(auth()->user()), fn ($item) => $item['is_blocked'] === true), 'user_id');  | 
                                                        |
| 33 | + $excluded = array_pluck(array_where($this->userDefined->followers(auth()->user()), fn($item) => $item['is_blocked'] === true), 'user_id');  | 
                                                        |
| 34 | 34 | }  | 
                                                        
| 35 | 35 | |
| 36 | 36 | return $excluded;  | 
                                                        
@@ -147,7 +147,7 @@ discard block  | 
                                                    ||
| 147 | 147 | }  | 
                                                        
| 148 | 148 | |
| 149 | 149 |              return $this->filter(function (User $user) use ($others) { | 
                                                        
| 150 | -                return ! $others->contains('id', $user->id); | 
                                                        |
| 150 | +                return !$others->contains('id', $user->id); | 
                                                        |
| 151 | 151 | });  | 
                                                        
| 152 | 152 | });  | 
                                                        
| 153 | 153 | |
@@ -209,7 +209,7 @@ discard block  | 
                                                    ||
| 209 | 209 | /** @var \Coyote\Post|\Coyote\Pm|\Coyote\Microblog|\Coyote\Firm $parent */  | 
                                                        
| 210 | 210 | $parent = $this->getParent();  | 
                                                        
| 211 | 211 | |
| 212 | -            $assets = collect($assets)->map(fn ($attributes) => Asset::find($attributes['id']))->keyBy('id'); | 
                                                        |
| 212 | +            $assets = collect($assets)->map(fn($attributes) => Asset::find($attributes['id']))->keyBy('id'); | 
                                                        |
| 213 | 213 | |
| 214 | 214 |              $ids = $assets->pluck('id')->toArray(); | 
                                                        
| 215 | 215 |              $current = $parent->assets->keyBy('id'); | 
                                                        
@@ -19,7 +19,7 @@  | 
                                                    ||
| 19 | 19 | 'thumbnail' => $this->when(  | 
                                                        
| 20 | 20 | // thumbnail only for images  | 
                                                        
| 21 | 21 | $this->resource->isImage() && class_exists($filter, true),  | 
                                                        
| 22 | - fn () => $url->thumbnail(new $filter)  | 
                                                        |
| 22 | + fn() => $url->thumbnail(new $filter)  | 
                                                        |
| 23 | 23 | )  | 
                                                        
| 24 | 24 | ]  | 
                                                        
| 25 | 25 | );  |