@@ -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 = ['supplier', 'guitars']; |
|
| 15 | + protected $availableIncludes = [ 'supplier', 'guitars' ]; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * Turn this item object into a generic array. |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function register() |
| 16 | 16 | { |
| 17 | - $this->app->bind('fractal', function () { |
|
| 17 | + $this->app->bind('fractal', function() { |
|
| 18 | 18 | |
| 19 | 19 | $manager = new Manager(); |
| 20 | 20 | |
| 21 | 21 | $fractal = new Fractal($manager); |
| 22 | 22 | $fractal->serializeWith(new DataSerializer); |
| 23 | - $fractal->parseIncludes(request('include', [])); |
|
| 23 | + $fractal->parseIncludes(request('include', [ ])); |
|
| 24 | 24 | |
| 25 | 25 | return $fractal; |
| 26 | 26 | }); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | $uri = urldecode( |
| 11 | - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) |
|
| 11 | + parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) |
|
| 12 | 12 | ); |
| 13 | 13 | |
| 14 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the |
@@ -105,6 +105,6 @@ |
||
| 105 | 105 | | |
| 106 | 106 | */ |
| 107 | 107 | |
| 108 | - 'attributes' => [], |
|
| 108 | + 'attributes' => [ ], |
|
| 109 | 109 | |
| 110 | 110 | ]; |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('warehouses', function (Blueprint $table) { |
|
| 15 | + Schema::create('warehouses', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | }); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('purchases', function (Blueprint $table) { |
|
| 15 | + Schema::create('purchases', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('supplier_id')->unsigned(); |
| 18 | 18 | $table->foreign('supplier_id')->references('id')->on('suppliers')->onDelete('cascade'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('shops', function (Blueprint $table) { |
|
| 15 | + Schema::create('shops', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('address'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('models', function (Blueprint $table) { |
|
| 15 | + Schema::create('models', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('make_id')->unsigned(); |
| 18 | 18 | $table->foreign('make_id')->references('id')->on('makes')->onDelete('cascade'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('guitars', function (Blueprint $table) { |
|
| 15 | + Schema::create('guitars', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('purchase_id')->unsigned(); |
| 18 | 18 | $table->foreign('purchase_id')->references('id')->on('purchases')->onDelete('cascade'); |