@@ -40,14 +40,14 @@  | 
                                                    ||
| 40 | 40 | */  | 
                                                        
| 41 | 41 | public function broadcastOn()  | 
                                                        
| 42 | 42 |      { | 
                                                        
| 43 | -        return new PrivateChannel('comments-'.$this->data['category'].'-'.$this->data['item_id']); | 
                                                        |
| 43 | +        return new PrivateChannel('comments-' . $this->data[ 'category' ] . '-' . $this->data[ 'item_id' ]); | 
                                                        |
| 44 | 44 | }  | 
                                                        
| 45 | 45 | |
| 46 | 46 | public function broadcastWith()  | 
                                                        
| 47 | 47 |      { | 
                                                        
| 48 | 48 | return [  | 
                                                        
| 49 | 49 | 'user' => $this->user,  | 
                                                        
| 50 | - 'coming_in' => (bool) $this->data['presence'],  | 
                                                        |
| 50 | + 'coming_in' => (bool)$this->data[ 'presence' ],  | 
                                                        |
| 51 | 51 | ];  | 
                                                        
| 52 | 52 | }  | 
                                                        
| 53 | 53 | |
@@ -40,14 +40,14 @@  | 
                                                    ||
| 40 | 40 | */  | 
                                                        
| 41 | 41 | public function broadcastOn()  | 
                                                        
| 42 | 42 |      { | 
                                                        
| 43 | -        return new PrivateChannel('comments-'.$this->data['category'].'-'.$this->data['item_id']); | 
                                                        |
| 43 | +        return new PrivateChannel('comments-' . $this->data[ 'category' ] . '-' . $this->data[ 'item_id' ]); | 
                                                        |
| 44 | 44 | }  | 
                                                        
| 45 | 45 | |
| 46 | 46 | public function broadcastWith()  | 
                                                        
| 47 | 47 |      { | 
                                                        
| 48 | 48 | return [  | 
                                                        
| 49 | 49 | 'user' => $this->user,  | 
                                                        
| 50 | - 'status' => $this->name.' is typing',  | 
                                                        |
| 50 | + 'status' => $this->name . ' is typing',  | 
                                                        |
| 51 | 51 | ];  | 
                                                        
| 52 | 52 | }  | 
                                                        
| 53 | 53 | |
@@ -38,7 +38,7 @@  | 
                                                    ||
| 38 | 38 | $requiredName = Str::lower(Arr::last($namePieces));  | 
                                                        
| 39 | 39 | $requiredName = Str::plural($requiredName);  | 
                                                        
| 40 | 40 | |
| 41 | -        return new PrivateChannel('comments-'.$requiredName.'-'.$this->comment->commentable_id); | 
                                                        |
| 41 | +        return new PrivateChannel('comments-' . $requiredName . '-' . $this->comment->commentable_id); | 
                                                        |
| 42 | 42 | }  | 
                                                        
| 43 | 43 | |
| 44 | 44 | public function broadcastWith()  | 
                                                        
@@ -9,7 +9,7 @@  | 
                                                    ||
| 9 | 9 |      public static $hexColorRegex = 'regex:/^#([a-fA-F0-9]{6})$/i'; | 
                                                        
| 10 | 10 | |
| 11 | 11 | public static $freeMessagesCount = 10;  | 
                                                        
| 12 | - public static $reviewTypes = ['feedback', 'report'];  | 
                                                        |
| 12 | + public static $reviewTypes = [ 'feedback', 'report' ];  | 
                                                        |
| 13 | 13 | |
| 14 | 14 | public static $weekDays = [  | 
                                                        
| 15 | 15 | 'Monday',  | 
                                                        
@@ -58,7 +58,7 @@  | 
                                                    ||
| 58 | 58 |      { | 
                                                        
| 59 | 59 | $comments = $model->comments()  | 
                                                        
| 60 | 60 | ->latest()  | 
                                                        
| 61 | - ->with(['creatable.image'])  | 
                                                        |
| 61 | + ->with([ 'creatable.image' ])  | 
                                                        |
| 62 | 62 | ->paginate(Helper::getLimit($request));  | 
                                                        
| 63 | 63 | |
| 64 | 64 |          CommentsResource::wrap('comments'); | 
                                                        
@@ -21,7 +21,7 @@  | 
                                                    ||
| 21 | 21 | */  | 
                                                        
| 22 | 22 | protected function registerRoutes($primaryRoute, $secondaryRoute)  | 
                                                        
| 23 | 23 |      { | 
                                                        
| 24 | -        Route::group($this->routeConfiguration(), function () use ($primaryRoute, $secondaryRoute) { | 
                                                        |
| 24 | +        Route::group($this->routeConfiguration(), function() use ($primaryRoute, $secondaryRoute) { | 
                                                        |
| 25 | 25 | $this->loadRoutes($primaryRoute);  | 
                                                        
| 26 | 26 |              if (config('faithgen-sdk.source')) { | 
                                                        
| 27 | 27 | $this->loadRoutes($secondaryRoute);  | 
                                                        
@@ -18,8 +18,8 @@  | 
                                                    ||
| 18 | 18 | protected static function boot()  | 
                                                        
| 19 | 19 |      { | 
                                                        
| 20 | 20 | parent::boot();  | 
                                                        
| 21 | -        self::creating(function ($user) { | 
                                                        |
| 22 | - $user->id = str_shuffle((string) Str::uuid());  | 
                                                        |
| 21 | +        self::creating(function($user) { | 
                                                        |
| 22 | + $user->id = str_shuffle((string)Str::uuid());  | 
                                                        |
| 23 | 23 | });  | 
                                                        
| 24 | 24 | }  | 
                                                        
| 25 | 25 | }  | 
                                                        
@@ -42,7 +42,7 @@  | 
                                                    ||
| 42 | 42 |      { | 
                                                        
| 43 | 43 |          if (strcmp($request->password, $request->confirm_password) == 0) { | 
                                                        
| 44 | 44 | $params = $request->validated();  | 
                                                        
| 45 | - unset($params['confirm_password']);  | 
                                                        |
| 45 | + unset($params[ 'confirm_password' ]);  | 
                                                        |
| 46 | 46 | $ministry = new Ministry($params);  | 
                                                        
| 47 | 47 |              try { | 
                                                        
| 48 | 48 | $ministry->save();  | 
                                                        
@@ -4,10 +4,10 @@  | 
                                                    ||
| 4 | 4 | use Illuminate\Support\Facades\Route;  | 
                                                        
| 5 | 5 | |
| 6 | 6 |  Route::prefix('users') | 
                                                        
| 7 | -    ->group(function () { | 
                                                        |
| 8 | -        Route::post('register', [UsersController::class, 'register'])->name('users.register'); | 
                                                        |
| 9 | -        Route::post('update', [UsersController::class, 'update']); | 
                                                        |
| 10 | -        Route::post('login', [UsersController::class, 'login']); | 
                                                        |
| 11 | -        Route::delete('', [UsersController::class, 'deleteUserAccount']); | 
                                                        |
| 12 | -        Route::get('user', [UsersController::class, 'getUser']); | 
                                                        |
| 7 | +    ->group(function() { | 
                                                        |
| 8 | +        Route::post('register', [ UsersController::class, 'register' ])->name('users.register'); | 
                                                        |
| 9 | +        Route::post('update', [ UsersController::class, 'update' ]); | 
                                                        |
| 10 | +        Route::post('login', [ UsersController::class, 'login' ]); | 
                                                        |
| 11 | +        Route::delete('', [ UsersController::class, 'deleteUserAccount' ]); | 
                                                        |
| 12 | +        Route::get('user', [ UsersController::class, 'getUser' ]); | 
                                                        |
| 13 | 13 | });  |