Completed
Push — master ( af3b76...53c498 )
by Manu
03:21
created
src/Validators/InventoryValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 class InventoryValidator extends LaravelValidator
9 9
 {
10 10
     protected $rules = [
11
-        ValidatorInterface::RULE_CREATE => [],
12
-        ValidatorInterface::RULE_UPDATE => [],
11
+        ValidatorInterface::RULE_CREATE => [ ],
12
+        ValidatorInterface::RULE_UPDATE => [ ],
13 13
     ];
14 14
 }
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-Route::group(['middleware' => 'auth'], function () {
3
+Route::group([ 'middleware' => 'auth' ], function() {
4 4
     Route::resource('inventory', 'InventoryController');
5 5
 });
Please login to merge, or discard this patch.
database/factories/BrandFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 /** @var \Illuminate\Database\Eloquent\Factory $factory */
13 13
 use Scool\Inventory\Models\Inventory;
14 14
 
15
-$factory->define(Inventory::class, function (Faker\Generator $faker) {
15
+$factory->define(Inventory::class, function(Faker\Generator $faker) {
16 16
     return [
17 17
         'name' => $faker->word,
18 18
 
Please login to merge, or discard this patch.
database/factories/InventoryObjectFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 /** @var \Illuminate\Database\Eloquent\Factory $factory */
13 13
 use Scool\Inventory\Models\Inventory;
14 14
 
15
-$factory->define(Inventory::class, function (Faker\Generator $faker) {
15
+$factory->define(Inventory::class, function(Faker\Generator $faker) {
16 16
     return [
17 17
         'id'                       => $faker->randomDigit,
18 18
         'id_public'                => $faker->randomDigit,
Please login to merge, or discard this patch.
database/factories/ProviderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  * @param \Faker\Generator $faker
17 17
  * @return array
18 18
  */
19
-    Inventory::class, function (Faker\Generator $faker) {
19
+    Inventory::class, function(Faker\Generator $faker) {
20 20
         return [
21 21
         'name' => $faker->word,
22 22
 
Please login to merge, or discard this patch.
database/migrations/2016_12_10_232000_create_inventory_objects_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('inventory_objects', function (Blueprint $table) {
16
+        Schema::create('inventory_objects', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('id_public');
19 19
             $table->integer('id_extern');
Please login to merge, or discard this patch.
database/migrations/2016_12_10_232027_create_brands_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('brands', function (Blueprint $table) {
16
+        Schema::create('brands', function(Blueprint $table) {
17 17
             $table->string('name');
18 18
             $table->string('acacha/names');
19 19
             $table->increments('id');
Please login to merge, or discard this patch.
database/migrations/2016_12_10_232019_create_providers_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('providers', function (Blueprint $table) {
16
+        Schema::create('providers', function(Blueprint $table) {
17 17
             $table->string('name');
18 18
             $table->string('acacha/names');
19 19
             $table->increments('id');
Please login to merge, or discard this patch.
src/Http/Controllers/StudiesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 return response()->json($response);
68 68
             }
69 69
 
70
-            return redirect()->back()->with('message', $response['message']);
70
+            return redirect()->back()->with('message', $response[ 'message' ]);
71 71
         } catch (ValidatorException $e) {
72 72
             if ($request->wantsJson()) {
73 73
                 return response()->json([
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                 return response()->json($response);
135 135
             }
136 136
 
137
-            return redirect()->back()->with('message', $response['message']);
137
+            return redirect()->back()->with('message', $response[ 'message' ]);
138 138
         } catch (ValidatorException $e) {
139 139
             if ($request->wantsJson()) {
140 140
                 return response()->json([
Please login to merge, or discard this patch.