@@ -12,7 +12,7 @@ |
||
12 | 12 | * |
13 | 13 | * @var array |
14 | 14 | */ |
15 | - protected $availableIncludes = ['permissions']; |
|
15 | + protected $availableIncludes = [ 'permissions' ]; |
|
16 | 16 | |
17 | 17 | public function transform(Role $role) |
18 | 18 | { |
@@ -12,14 +12,14 @@ |
||
12 | 12 | * |
13 | 13 | * @var array |
14 | 14 | */ |
15 | - protected $availableIncludes = ['roles', 'permissions']; |
|
15 | + protected $availableIncludes = [ 'roles', 'permissions' ]; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * List of resources to automatically include. |
19 | 19 | * |
20 | 20 | * @var array |
21 | 21 | */ |
22 | - protected $defaultIncludes = []; |
|
22 | + protected $defaultIncludes = [ ]; |
|
23 | 23 | |
24 | 24 | public function transform(User $user) |
25 | 25 | { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | public function register(RegisterRequest $request) |
13 | 13 | { |
14 | 14 | $user = new User($request->all()); |
15 | - if (! $user->save()) { |
|
15 | + if (!$user->save()) { |
|
16 | 16 | throw new HttpException(500); |
17 | 17 | } |
18 | 18 |
@@ -15,11 +15,11 @@ |
||
15 | 15 | */ |
16 | 16 | public function logout() |
17 | 17 | { |
18 | - if (! $logout = Auth::user()->token()->revoke()) { |
|
18 | + if (!$logout = Auth::user()->token()->revoke()) { |
|
19 | 19 | throw new HttpException(500); |
20 | 20 | } |
21 | 21 | |
22 | 22 | return response() |
23 | - ->json(['message' => 'Successfully logged out']); |
|
23 | + ->json([ 'message' => 'Successfully logged out' ]); |
|
24 | 24 | } |
25 | 25 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | $limit = Input::get('limit', 10); |
24 | 24 | |
25 | - $queryParams = array_diff_key($_GET, array_flip(['page'])); |
|
25 | + $queryParams = array_diff_key($_GET, array_flip([ 'page' ])); |
|
26 | 26 | $usersPaginator = User::paginate($limit) |
27 | 27 | ->appends($queryParams) |
28 | 28 | ->appends([ |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | $fractal->parseIncludes(Input::get('include', '')); |
43 | 43 | |
44 | - if (! $user = User::find($id)) { |
|
44 | + if (!$user = User::find($id)) { |
|
45 | 45 | throw new NotFoundHttpException(); |
46 | 46 | } |
47 | 47 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | public function resetPassword(ResetPasswordRequest $request) |
13 | 13 | { |
14 | 14 | $response = $this->broker()->reset( |
15 | - $this->credentials($request), function ($user, $password) { |
|
15 | + $this->credentials($request), function($user, $password) { |
|
16 | 16 | $this->reset($user, $password); |
17 | 17 | } |
18 | 18 | ); |
@@ -16,6 +16,6 @@ |
||
16 | 16 | */ |
17 | 17 | public function setPasswordAttribute($pass) |
18 | 18 | { |
19 | - $this->attributes['password'] = Hash::make($pass); |
|
19 | + $this->attributes[ 'password' ] = Hash::make($pass); |
|
20 | 20 | } |
21 | 21 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function via($notifiable) |
31 | 31 | { |
32 | - return ['mail']; |
|
32 | + return [ 'mail' ]; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | public function run() |
11 | 11 | { |
12 | - if (App::environment(['local', 'staging'])) { |
|
12 | + if (App::environment([ 'local', 'staging' ])) { |
|
13 | 13 | $this->call(AuthTableSeeder::class); |
14 | 14 | } |
15 | 15 |