| @@ -52,8 +52,8 @@ discard block | ||
| 52 | 52 | protected function mapWebRoutes() | 
| 53 | 53 |      { | 
| 54 | 54 |          Route::middleware('web') | 
| 55 | - ->namespace($this->namespace) | |
| 56 | -             ->group(base_path('routes/web.php')); | |
| 55 | + ->namespace($this->namespace) | |
| 56 | +                ->group(base_path('routes/web.php')); | |
| 57 | 57 | } | 
| 58 | 58 | |
| 59 | 59 | /** | 
| @@ -66,8 +66,8 @@ discard block | ||
| 66 | 66 | protected function mapApiRoutes() | 
| 67 | 67 |      { | 
| 68 | 68 |          Route::prefix('api') | 
| 69 | -             ->middleware('api') | |
| 70 | - ->namespace($this->namespace) | |
| 71 | -             ->group(base_path('routes/api.php')); | |
| 69 | +                ->middleware('api') | |
| 70 | + ->namespace($this->namespace) | |
| 71 | +                ->group(base_path('routes/api.php')); | |
| 72 | 72 | } | 
| 73 | 73 | } | 
| @@ -33,7 +33,7 @@ discard block | ||
| 33 | 33 | */ | 
| 34 | 34 | public function about() | 
| 35 | 35 |      { | 
| 36 | -    	return view('home.about'); | |
| 36 | +        return view('home.about'); | |
| 37 | 37 | } | 
| 38 | 38 | |
| 39 | 39 | /** | 
| @@ -43,6 +43,6 @@ discard block | ||
| 43 | 43 | */ | 
| 44 | 44 | public function help() | 
| 45 | 45 |      { | 
| 46 | -    	return view('home.help'); | |
| 46 | +        return view('home.help'); | |
| 47 | 47 | } | 
| 48 | 48 | } | 
| @@ -63,9 +63,9 @@ | ||
| 63 | 63 | protected function create(array $data) | 
| 64 | 64 |      { | 
| 65 | 65 | return User::create([ | 
| 66 | - 'name' => $data['name'], | |
| 67 | - 'email' => $data['email'], | |
| 68 | - 'password' => bcrypt($data['password']), | |
| 66 | + 'name' => $data[ 'name' ], | |
| 67 | + 'email' => $data[ 'email' ], | |
| 68 | + 'password' => bcrypt($data[ 'password' ]), | |
| 69 | 69 | ]); | 
| 70 | 70 | } | 
| 71 | 71 | } | 
| @@ -34,6 +34,6 @@ | ||
| 34 | 34 | */ | 
| 35 | 35 | public function __construct() | 
| 36 | 36 |      { | 
| 37 | -        $this->middleware('guest', ['except' => 'logout']); | |
| 37 | +        $this->middleware('guest', [ 'except' => 'logout' ]); | |
| 38 | 38 | } | 
| 39 | 39 | } | 
| @@ -57,7 +57,7 @@ | ||
| 57 | 57 | protected function unauthenticated($request, AuthenticationException $exception) | 
| 58 | 58 |      { | 
| 59 | 59 |          if ($request->expectsJson()) { | 
| 60 | - return response()->json(['error' => 'Unauthenticated.'], 401); | |
| 60 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); | |
| 61 | 61 | } | 
| 62 | 62 | |
| 63 | 63 |          return redirect()->guest(route('login')); | 
| @@ -29,7 +29,7 @@ | ||
| 29 | 29 | */ | 
| 30 | 30 | public function via($notifiable) | 
| 31 | 31 |      { | 
| 32 | - return ['nexmo']; | |
| 32 | + return [ 'nexmo' ]; | |
| 33 | 33 | } | 
| 34 | 34 | |
| 35 | 35 | /** | 
| @@ -29,7 +29,7 @@ | ||
| 29 | 29 | }); | 
| 30 | 30 | |
| 31 | 31 |          Validator::replacer('phone', function($message, $attribute, $rule, $parameters) { | 
| 32 | -            return str_replace(':attribute',$attribute, ':attribute is invalid phone number'); | |
| 32 | +            return str_replace(':attribute', $attribute, ':attribute is invalid phone number'); | |
| 33 | 33 | }); | 
| 34 | 34 | } | 
| 35 | 35 | |
| @@ -19,8 +19,8 @@ discard block | ||
| 19 | 19 |              ->addColumn('action', 'user.action') | 
| 20 | 20 |              ->editColumn('role', function(User $user) { | 
| 21 | 21 | $role_en = array(0 => "Registered", 1 => "User", 2 => "Manager", 3 => "Admin"); | 
| 22 | -                    return $role_en[$user->role].' ('.$user->role.')';}) | |
| 23 | -            ->setRowClass(function ($user) { | |
| 22 | +                    return $role_en[ $user->role ].' ('.$user->role.')'; }) | |
| 23 | +            ->setRowClass(function($user) { | |
| 24 | 24 | return $user->trashed() ? 'alert-danger' : ""; | 
| 25 | 25 | }); | 
| 26 | 26 | } | 
| @@ -50,7 +50,7 @@ discard block | ||
| 50 | 50 | //->addAction(['width' => '160px']) | 
| 51 | 51 | ->parameters([ | 
| 52 | 52 | 'dom' => 'Bfrtip', | 
| 53 | - 'order' => [[0, 'asc']], | |
| 53 | + 'order' => [ [ 0, 'asc' ] ], | |
| 54 | 54 | 'buttons' => [ | 
| 55 | 55 | 'create', | 
| 56 | 56 | 'export', | 
| @@ -87,6 +87,6 @@ discard block | ||
| 87 | 87 | */ | 
| 88 | 88 | protected function filename() | 
| 89 | 89 |      { | 
| 90 | - return 'users_' . time(); | |
| 90 | + return 'users_'.time(); | |
| 91 | 91 | } | 
| 92 | 92 | } | 
| @@ -90,7 +90,7 @@ discard block | ||
| 90 | 90 | $user = User::findOrFail($id); | 
| 91 | 91 | $user->password = ""; | 
| 92 | 92 | |
| 93 | -        return view('user.show', ['user' => $user]); | |
| 93 | +        return view('user.show', [ 'user' => $user ]); | |
| 94 | 94 | } | 
| 95 | 95 | |
| 96 | 96 | /** | 
| @@ -105,7 +105,7 @@ discard block | ||
| 105 | 105 | $user = User::findOrFail($id); | 
| 106 | 106 | $user->password = ""; | 
| 107 | 107 | |
| 108 | -        return view('user.edit', ['user' => $user]); | |
| 108 | +        return view('user.edit', [ 'user' => $user ]); | |
| 109 | 109 | } | 
| 110 | 110 | |
| 111 | 111 | /** | 
| @@ -179,6 +179,6 @@ discard block | ||
| 179 | 179 | $user = User::findOrFail($id); | 
| 180 | 180 | $user->password = ""; | 
| 181 | 181 | |
| 182 | -        return view('user.remove', ['user' => $user]); | |
| 182 | +        return view('user.remove', [ 'user' => $user ]); | |
| 183 | 183 | } | 
| 184 | 184 | } |