@@ -34,6 +34,6 @@ |
||
34 | 34 | */ |
35 | 35 | public function getAvatarAttribute() |
36 | 36 | { |
37 | - return 'http://www.gravatar.com/avatar/'.md5($this->attributes['email']); |
|
37 | + return 'http://www.gravatar.com/avatar/'.md5($this->attributes[ 'email' ]); |
|
38 | 38 | } |
39 | 39 | } |
@@ -22,6 +22,6 @@ |
||
22 | 22 | */ |
23 | 23 | public function __construct() |
24 | 24 | { |
25 | - $this->middleware('guest', ['except' => 'logout']); |
|
25 | + $this->middleware('guest', [ 'except' => 'logout' ]); |
|
26 | 26 | } |
27 | 27 | } |
@@ -41,9 +41,9 @@ |
||
41 | 41 | 'password' => 'required|confirmed|min:6', |
42 | 42 | ]); |
43 | 43 | |
44 | - if (! Hash::check($request->current_password, Auth::user()->password)) { |
|
44 | + if (!Hash::check($request->current_password, Auth::user()->password)) { |
|
45 | 45 | return response()->json( |
46 | - ['current_password' => ['The current password you provided is incorrect.']], 422 |
|
46 | + [ 'current_password' => [ 'The current password you provided is incorrect.' ] ], 422 |
|
47 | 47 | ); |
48 | 48 | } |
49 | 49 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function map(Router $router) |
39 | 39 | { |
40 | - $router->group(['namespace' => $this->namespace], function ($router) { |
|
40 | + $router->group([ 'namespace' => $this->namespace ], function($router) { |
|
41 | 41 | require app_path('Http/routes.php'); |
42 | 42 | }); |
43 | 43 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * |
13 | 13 | * @var array |
14 | 14 | */ |
15 | - protected $availableIncludes = ['guitars']; |
|
15 | + protected $availableIncludes = [ 'guitars' ]; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Turn this item object into a generic array. |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * |
13 | 13 | * @var array |
14 | 14 | */ |
15 | - protected $availableIncludes = ['racks', 'models', 'purchases', 'guitars']; |
|
15 | + protected $availableIncludes = [ 'racks', 'models', 'purchases', 'guitars' ]; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Turn this item object into a generic array. |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * |
13 | 13 | * @var array |
14 | 14 | */ |
15 | - protected $availableIncludes = ['sales']; |
|
15 | + protected $availableIncludes = [ 'sales' ]; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Turn this item object into a generic array. |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * |
19 | 19 | * @var array |
20 | 20 | */ |
21 | - protected $guarded = []; |
|
21 | + protected $guarded = [ ]; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Models of this make. |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @var array |
20 | 20 | */ |
21 | - protected $guarded = []; |
|
21 | + protected $guarded = [ ]; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Sold guitars. |
@@ -100,6 +100,6 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public function isSold() |
102 | 102 | { |
103 | - return ! is_null($this->sale); |
|
103 | + return !is_null($this->sale); |
|
104 | 104 | } |
105 | 105 | } |