@@ -128,7 +128,7 @@ |
||
| 128 | 128 | /** |
| 129 | 129 | * Verify the status. |
| 130 | 130 | * |
| 131 | - * @param $status |
|
| 131 | + * @param string $status |
|
| 132 | 132 | * |
| 133 | 133 | * @return bool |
| 134 | 134 | */ |
@@ -27,14 +27,14 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @var array |
| 29 | 29 | */ |
| 30 | - protected $guarded = []; |
|
| 30 | + protected $guarded = [ ]; |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Date mutators. |
| 34 | 34 | * |
| 35 | 35 | * @var array |
| 36 | 36 | */ |
| 37 | - protected $dates = ['date_purchased', 'delivery_date', 'deleted_at']; |
|
| 37 | + protected $dates = [ 'date_purchased', 'delivery_date', 'deleted_at' ]; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Default date format. |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | if ($this->delivery_date->isFuture()) { |
| 90 | 90 | return self::UPCOMING; |
| 91 | 91 | } |
| 92 | - if ( ! $this->isPendingStorage()) { |
|
| 92 | + if (!$this->isPendingStorage()) { |
|
| 93 | 93 | return self::COMPLETED; |
| 94 | 94 | } |
| 95 | 95 | |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | { |
| 207 | 207 | $notification = $this->notifications()->create([ |
| 208 | 208 | 'icon' => 'flight_land', |
| 209 | - 'link' => '/purchases/' . $this->id, |
|
| 209 | + 'link' => '/purchases/'.$this->id, |
|
| 210 | 210 | 'message' => "Purchase of {$this->quantity} {$this->make->name} has arrived from {$this->supplier->name}, {$this->supplier->location}.", |
| 211 | 211 | ]); |
| 212 | 212 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * |
| 42 | 42 | * @param Rack $rack |
| 43 | 43 | * |
| 44 | - * @return \League\Fractal\Resource\Collection |
|
| 44 | + * @return \League\Fractal\Resource\Item |
|
| 45 | 45 | */ |
| 46 | 46 | public function includeWarehouse(Rack $rack) |
| 47 | 47 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * |
| 13 | 13 | * @var array |
| 14 | 14 | */ |
| 15 | - protected $availableIncludes = ['warehouse', 'guitars']; |
|
| 15 | + protected $availableIncludes = [ 'warehouse', 'guitars' ]; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * Turn this item object into a generic array. |
@@ -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 = ['racks']; |
|
| 15 | + protected $availableIncludes = [ 'racks' ]; |
|
| 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. |