Completed
Push — master ( 9bf9b2...51a0ea )
by Scott
03:10
created
models/Option.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
     /**
17 17
      * @var array Guarded fields
18 18
      */
19
-    protected $guarded = ['*'];
19
+    protected $guarded = [ '*' ];
20 20
 
21 21
     /**
22 22
      * @var array Fillable fields
23 23
      */
24
-    protected $fillable = [];
24
+    protected $fillable = [ ];
25 25
 
26 26
     /**
27 27
      * @var array Relations
Please login to merge, or discard this patch.
models/Inventory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
     /**
17 17
      * @var array Guarded fields
18 18
      */
19
-    protected $guarded = ['*'];
19
+    protected $guarded = [ '*' ];
20 20
 
21 21
     /**
22 22
      * @var array Fillable fields
23 23
      */
24
-    protected $fillable = [];
24
+    protected $fillable = [ ];
25 25
 
26 26
     /**
27 27
      * @var array Relations
Please login to merge, or discard this patch.
updates/1.0/create_options_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_options', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_options', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->integer('product_id')->unsigned()->index();
Please login to merge, or discard this patch.
updates/1.0/create_inventories_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_inventories', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_inventories', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->integer('product_id')->unsigned()->index();
Please login to merge, or discard this patch.
updates/1.0/create_option_values_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_option_values', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_option_values', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->string('name')->default('');
Please login to merge, or discard this patch.
formwidgets/OptionsInventories.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,16 +27,16 @@
 block discarded – undo
27 27
      */
28 28
     public function prepareVars()
29 29
     {
30
-        $this->vars['name'] = $this->formField->getName();
31
-        $this->vars['value'] = $this->getLoadValue();
32
-        $this->vars['model'] = $this->model;
30
+        $this->vars[ 'name' ] = $this->formField->getName();
31
+        $this->vars[ 'value' ] = $this->getLoadValue();
32
+        $this->vars[ 'model' ] = $this->model;
33 33
 
34 34
         if ($this->model->exists) {
35
-            $this->vars['options'] = $this->model->options()->get()->toArray();
36
-            $this->vars['inventories'] = $this->model->inventories()->get()->toArray();
35
+            $this->vars[ 'options' ] = $this->model->options()->get()->toArray();
36
+            $this->vars[ 'inventories' ] = $this->model->inventories()->get()->toArray();
37 37
         } else {
38
-            $this->vars['options'] = [];
39
-            $this->vars['inventories'] = [];
38
+            $this->vars[ 'options' ] = [ ];
39
+            $this->vars[ 'inventories' ] = [ ];
40 40
         }
41 41
     }
42 42
 
Please login to merge, or discard this patch.