Test Setup Failed
Push — master ( 7578b5...39fc9e )
by Manu
12:31
created
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->increments('id');
18 18
             $table->timestamps();
19 19
         });
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->timestamps();
19 19
         });
Please login to merge, or discard this patch.
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.
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_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.
src/Models/Study.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
  */
16 16
 class Study extends Model implements Transformable
17 17
 {
18
-    use HasLaw,HasDepartments,HasCourses,Nameable,TransformableTrait;
18
+    use HasLaw, HasDepartments, HasCourses, Nameable, TransformableTrait;
19 19
     /**
20 20
      * The attributes that are mass assignable.
21 21
      *
22 22
      * @var array
23 23
      */
24
-    protected $fillable = ['name'];
24
+    protected $fillable = [ 'name' ];
25 25
 }
Please login to merge, or discard this patch.