Passed
Branch master (bda0ff)
by Matthijs
02:31
created
src/database/migrations/2014_10_13_215718_coupon_table.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,6 +102,6 @@
 block discarded – undo
102 102
      */
103 103
     public function down()
104 104
     {
105
-     //
105
+        //
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('coupon', function (Blueprint $table) {
16
+        Schema::create('coupon', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->boolean('active')->default(false);
19 19
             $table->decimal('value', 12, 4)->nullable();
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
             $table->date('published_at')->nullable();
30 30
             $table->date('unpublished_at')->nullable();
31 31
             $table->timestamps();
32
-            $table->unique(array('title','shop_id'), 'unique_coupon_title');
33
-            $table->unique(array('code','shop_id'), 'unique_coupon_code');
32
+            $table->unique(array('title', 'shop_id'), 'unique_coupon_title');
33
+            $table->unique(array('code', 'shop_id'), 'unique_coupon_code');
34 34
         });
35 35
 
36 36
         // Creates the users table
37
-        Schema::create('coupon_group', function ($table) {
37
+        Schema::create('coupon_group', function($table) {
38 38
             $table->increments('id');
39 39
             $table->boolean('active')->default(false);
40 40
             $table->string('title');
@@ -45,52 +45,52 @@  discard block
 block discarded – undo
45 45
             $table->string('slug');
46 46
             $table->integer('modified_by_user_id')->unsigned()->nullable();
47 47
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
48
-            $table->unique(array('title','shop_id'), 'unique_coupon_group_title');
48
+            $table->unique(array('title', 'shop_id'), 'unique_coupon_group_title');
49 49
             $table->timestamps();
50 50
         });
51 51
 
52
-        Schema::table('coupon', function (Blueprint $table) {
52
+        Schema::table('coupon', function(Blueprint $table) {
53 53
             $table->integer('coupon_group_id')->unsigned()->nullable();
54 54
             $table->foreign('coupon_group_id')->references('id')->on('coupon_group')->onDelete('set null');
55 55
         });
56 56
 
57
-        Schema::create('coupon_product', function (Blueprint $table) {
57
+        Schema::create('coupon_product', function(Blueprint $table) {
58 58
             $table->increments('id');
59 59
             $table->unsignedInteger('coupon_id');
60 60
             $table->foreign('coupon_id')->references('id')->on('coupon')->onDelete('cascade');
61 61
             $table->unsignedInteger('product_id');
62 62
             $table->foreign('product_id')->references('id')->on('product')->onDelete('cascade');
63
-            $table->unique(array('coupon_id','product_id'), 'unique_product_id');
63
+            $table->unique(array('coupon_id', 'product_id'), 'unique_product_id');
64 64
             $table->timestamps();
65 65
         });
66 66
 
67
-        Schema::create('coupon_product_category', function (Blueprint $table) {
67
+        Schema::create('coupon_product_category', function(Blueprint $table) {
68 68
             $table->increments('id');
69 69
             $table->unsignedInteger('coupon_id');
70 70
             $table->foreign('coupon_id')->references('id')->on('coupon')->onDelete('cascade');
71 71
             $table->unsignedInteger('product_category_id');
72 72
             $table->foreign('product_category_id')->references('id')->on('product_category')->onDelete('cascade');
73
-            $table->unique(array('coupon_id','product_category_id'), 'unique_product_category_id');
73
+            $table->unique(array('coupon_id', 'product_category_id'), 'unique_product_category_id');
74 74
             $table->timestamps();
75 75
         });
76 76
 
77
-        Schema::create('coupon_sending_method', function (Blueprint $table) {
77
+        Schema::create('coupon_sending_method', function(Blueprint $table) {
78 78
             $table->increments('id');
79 79
             $table->unsignedInteger('coupon_id');
80 80
             $table->foreign('coupon_id')->references('id')->on('coupon')->onDelete('cascade');
81 81
             $table->unsignedInteger('sending_method_id');
82 82
             $table->foreign('sending_method_id')->references('id')->on('sending_method')->onDelete('cascade');
83
-            $table->unique(array('coupon_id','sending_method_id'), 'unique_sending_method_id');
83
+            $table->unique(array('coupon_id', 'sending_method_id'), 'unique_sending_method_id');
84 84
             $table->timestamps();
85 85
         });
86 86
 
87
-        Schema::create('coupon_payment_method', function (Blueprint $table) {
87
+        Schema::create('coupon_payment_method', function(Blueprint $table) {
88 88
             $table->increments('id');
89 89
             $table->unsignedInteger('coupon_id');
90 90
             $table->foreign('coupon_id')->references('id')->on('coupon')->onDelete('cascade');
91 91
             $table->unsignedInteger('payment_method_id');
92 92
             $table->foreign('payment_method_id')->references('id')->on('payment_method')->onDelete('cascade');
93
-            $table->unique(array('coupon_id','payment_method_id'), 'unique_payment_method_id');
93
+            $table->unique(array('coupon_id', 'payment_method_id'), 'unique_payment_method_id');
94 94
             $table->timestamps();
95 95
         });
96 96
     }
Please login to merge, or discard this patch.
src/database/migrations/2014_10_12_121533_sending_method_table.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('sending_method', function (Blueprint $table) {
16
+        Schema::create('sending_method', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->boolean('active')->default(false);
19 19
             $table->integer('shop_id')->unsigned();
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
35 35
             $table->timestamps();
36 36
 
37
-            $table->unique(array('title','shop_id'), 'unique_sending_method_title');
37
+            $table->unique(array('title', 'shop_id'), 'unique_sending_method_title');
38 38
         });
39 39
 
40 40
 
41
-        Schema::create('sending_payment_method_related', function (Blueprint $table) {
41
+        Schema::create('sending_payment_method_related', function(Blueprint $table) {
42 42
             $table->increments('id');
43 43
             $table->integer('sending_method_id')->unsigned();
44 44
             $table->foreign('sending_method_id', 'spmr_sending_method_id_fk')->references('id')->on('sending_method')->onDelete('cascade');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             $table->foreign('modified_by_user_id', 'spmr_modified_by_user_id_fk')->references('id')->on('user')->onDelete('set null');         
49 49
             $table->timestamps();
50 50
 
51
-            $table->unique(array('sending_method_id','payment_method_id'), 'unique_sending_payment_method_related');
51
+            $table->unique(array('sending_method_id', 'payment_method_id'), 'unique_sending_payment_method_related');
52 52
         });
53 53
 
54 54
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             $table->integer('sending_method_id')->unsigned();
81 81
             $table->foreign('sending_method_id')->references('id')->on('sending_method')->onDelete('cascade');
82 82
             $table->timestamps();
83
-            $table->unique(array('sending_method_id','name'));
83
+            $table->unique(array('sending_method_id', 'name'));
84 84
 
85 85
         });
86 86
 
Please login to merge, or discard this patch.
src/database/migrations/2015_12_01_101220_highlight.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
      */
38 38
     public function down()
39 39
     {
40
-     //
40
+        //
41 41
     }
42 42
 }
Please login to merge, or discard this 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('highlight', function (Blueprint $table) {
16
+        Schema::create('highlight', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('title')->nullable();
19 19
             $table->string('tag');
Please login to merge, or discard this patch.
src/database/migrations/2014_09_17_122030_settings_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('general_setting', function (Blueprint $table) {
15
+        Schema::create('general_setting', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('name');
18 18
             $table->string('value')->nullable();
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
             $table->foreign('shop_id')->references('id')->on('shop')->onDelete('cascade');
22 22
             $table->integer('modified_by_user_id')->unsigned()->nullable();
23 23
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
24
-            $table->unique(array('name','shop_id'), 'unique_general_setting_title');
24
+            $table->unique(array('name', 'shop_id'), 'unique_general_setting_title');
25 25
             $table->timestamps();
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
src/database/migrations/2014_10_09_094256_product_attribute_table.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,6 +76,6 @@
 block discarded – undo
76 76
      */
77 77
     public function down()
78 78
     {
79
-     //
79
+        //
80 80
     }
81 81
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('product_attribute', function (Blueprint $table) {
16
+        Schema::create('product_attribute', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->boolean('default_on')->default(false);
19 19
             $table->integer('product_id')->unsigned();
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             $table->timestamps();
37 37
         });
38 38
 
39
-        Schema::create('product_attribute_combination', function (Blueprint $table) {
39
+        Schema::create('product_attribute_combination', function(Blueprint $table) {
40 40
             $table->increments('id');
41 41
             $table->integer('product_attribute_id')->unsigned();
42 42
             $table->foreign('product_attribute_id', 'pac_product_attribute_id_fk')->references('id')->on('product_attribute')->onDelete('cascade');
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             $table->timestamps();
48 48
         });
49 49
 
50
-        Schema::create('product_attribute_image', function (Blueprint $table) {
50
+        Schema::create('product_attribute_image', function(Blueprint $table) {
51 51
             $table->increments('id');
52 52
             $table->integer('product_attribute_id')->unsigned();
53 53
             $table->foreign('product_attribute_id', 'pai_product_attribute_id_fk')->references('id')->on('product_attribute')->onDelete('cascade');
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
             $table->timestamps();
59 59
         });
60 60
 
61
-        Schema::table('product', function (Blueprint $table) {
61
+        Schema::table('product', function(Blueprint $table) {
62 62
             $table->integer('leading_atrribute_group_id')->unsigned()->nullable();
63 63
             $table->foreign('leading_atrribute_group_id', 'p_leading_atrribute_group_id_fk')->references('id')->on('attribute_group')->onDelete('set null');
64 64
         });
65 65
 
66 66
 
67
-        Schema::table('product_waiting_list', function (Blueprint $table) {
67
+        Schema::table('product_waiting_list', function(Blueprint $table) {
68 68
             $table->foreign('product_attribute_id', 'pwl_product_attribute_id_fk')->references('id')->on('product_attribute')->onDelete('set null');
69 69
         });    
70 70
     }
Please login to merge, or discard this patch.
src/database/migrations/2014_09_18_062057_extra_field_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('extra_field', function (Blueprint $table) {
16
+        Schema::create('extra_field', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->boolean('all_products')->default(false);
19 19
             $table->boolean('filterable')->default(false);
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             $table->timestamps();
26 26
         });
27 27
 
28
-        Schema::create('extra_field_default_value', function (Blueprint $table) {
28
+        Schema::create('extra_field_default_value', function(Blueprint $table) {
29 29
             $table->increments('id');
30 30
             $table->string('value');
31 31
             $table->integer('extra_field_id')->unsigned();
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             $table->integer('modified_by_user_id')->unsigned()->nullable();
34 34
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
35 35
             $table->timestamps();
36
-            $table->unique(array('extra_field_id','value'), 'unique_extra_field_default_value');
36
+            $table->unique(array('extra_field_id', 'value'), 'unique_extra_field_default_value');
37 37
         });
38 38
     }
39 39
 
Please login to merge, or discard this patch.
database/migrations/2015_09_09_192405_extra_fields_payment_method_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::table('payment_method', function (Blueprint $table) {
16
+        Schema::table('payment_method', function(Blueprint $table) {
17 17
             $table->integer('order_confirmed_order_status_id')->unsigned()->nullable();
18 18
             $table->foreign('order_confirmed_order_status_id')->references('id')->on('order_status')->onDelete('set null');
19 19
             $table->integer('payment_completed_order_status_id')->unsigned()->nullable();
Please login to merge, or discard this patch.
src/database/migrations/2014_09_16_065600_shop_table.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
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('shop', function (Blueprint $table) {
15
+        Schema::create('shop', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->boolean('active')->default(false);
18 18
             $table->boolean('wholesale')->default(false);
Please login to merge, or discard this patch.
src/database/migrations/2014_10_06_114621_product_table.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,6 +205,6 @@
 block discarded – undo
205 205
      */
206 206
     public function down()
207 207
     {
208
-     //
208
+        //
209 209
     }
210 210
 }
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public function up()
15 15
     {
16 16
         // Creates the users table
17
-        Schema::create('product', function ($table) {
17
+        Schema::create('product', function($table) {
18 18
             $table->increments('id');
19 19
             $table->boolean('active')->default(false);
20 20
             $table->enum('type', array('single', 'group', 'variation'))->default('single');
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             $table->integer('rank')->default(0);
44 44
             $table->string('slug');
45 45
 
46
-            $table->integer('product_category_id')->unsigned()->nullable();            ;
46
+            $table->integer('product_category_id')->unsigned()->nullable(); ;
47 47
             $table->foreign('product_category_id')->references('id')->on('product_category')->onDelete('set null');
48 48
             $table->integer('tax_rate_id')->unsigned()->nullable();
49 49
             $table->foreign('tax_rate_id')->references('id')->on('tax_rate')->onDelete('set null');
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
             
56 56
             $table->integer('modified_by_user_id')->unsigned()->nullable();
57 57
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
58
-            $table->unique(array('title','shop_id'), 'unique_product_title');
58
+            $table->unique(array('title', 'shop_id'), 'unique_product_title');
59 59
             $table->timestamps();
60 60
         });
61 61
 
62 62
 
63
-        Schema::create('product_image', function (Blueprint $table) {
63
+        Schema::create('product_image', function(Blueprint $table) {
64 64
             $table->increments('id');
65 65
             $table->integer('product_id')->unsigned();
66 66
             $table->foreign('product_id')->references('id')->on('product')->onDelete('cascade');
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         });
79 79
 
80 80
 
81
-        Schema::create('product_image_attribute', function (Blueprint $table) {
81
+        Schema::create('product_image_attribute', function(Blueprint $table) {
82 82
             $table->increments('id');
83 83
             $table->integer('attribute_id')->unsigned();
84 84
             $table->foreign('attribute_id')->references('id')->on('attribute')->onDelete('cascade');
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $table->timestamps();
90 90
         });
91 91
 
92
-        Schema::create('product_amount_option', function (Blueprint $table) {
92
+        Schema::create('product_amount_option', function(Blueprint $table) {
93 93
             $table->increments('id');
94 94
             $table->boolean('default_on')->default(false);
95 95
             $table->integer('product_id')->unsigned();
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         });
106 106
 
107 107
 
108
-        Schema::create('product_amount_series', function (Blueprint $table) {
108
+        Schema::create('product_amount_series', function(Blueprint $table) {
109 109
             $table->increments('id');
110 110
             $table->boolean('active')->default(false);
111 111
             $table->integer('product_id')->unsigned();
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         });
120 120
 
121 121
 
122
-        Schema::create('product_waiting_list', function (Blueprint $table) {
122
+        Schema::create('product_waiting_list', function(Blueprint $table) {
123 123
             $table->increments('id');
124 124
             $table->integer('product_id')->unsigned();
125 125
             $table->foreign('product_id')->references('id')->on('product')->onDelete('cascade');
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         });
131 131
 
132 132
 
133
-        Schema::create('product_related_product', function (Blueprint $table) {
133
+        Schema::create('product_related_product', function(Blueprint $table) {
134 134
             $table->increments('id');
135 135
             $table->integer('product_id')->unsigned();
136 136
             $table->foreign('product_id')->references('id')->on('product')->onDelete('cascade');
@@ -140,27 +140,27 @@  discard block
 block discarded – undo
140 140
         });
141 141
 
142 142
 
143
-        Schema::create('product_sub_product_category', function (Blueprint $table) {
143
+        Schema::create('product_sub_product_category', function(Blueprint $table) {
144 144
             $table->increments('id');
145 145
             $table->unsignedInteger('product_id');
146 146
             $table->foreign('product_id', 'pspc_product_id_fk')->references('id')->on('product')->onDelete('cascade');
147 147
             $table->unsignedInteger('product_category_id');
148 148
             $table->foreign('product_category_id', 'pspc_product_category_id_fk')->references('id')->on('product_category')->onDelete('cascade');
149
-            $table->unique(array('product_id','product_category_id'), 'unique_product_category');
149
+            $table->unique(array('product_id', 'product_category_id'), 'unique_product_category');
150 150
             $table->timestamps();
151 151
         });
152 152
 
153
-        Schema::create('product_extra_field_value', function (Blueprint $table) {
153
+        Schema::create('product_extra_field_value', function(Blueprint $table) {
154 154
             $table->increments('id');
155 155
             $table->string('value')->nullable();
156 156
             
157
-            $table->integer('product_id')->unsigned()->nullable();            ;
157
+            $table->integer('product_id')->unsigned()->nullable(); ;
158 158
             $table->foreign('product_id', 'pefv_product_id_fk')->references('id')->on('product')->onDelete('cascade');
159 159
             
160 160
             $table->integer('extra_field_id')->unsigned()->nullable();
161 161
             $table->foreign('extra_field_id', 'pefv_extra_field_id_fk')->references('id')->on('extra_field')->onDelete('cascade');
162 162
             
163
-            $table->integer('extra_field_default_value_id')->unsigned()->nullable();            ;
163
+            $table->integer('extra_field_default_value_id')->unsigned()->nullable(); ;
164 164
             $table->foreign('extra_field_default_value_id', 'pefv_extra_field_default_value_id_fk')->references('id')->on('extra_field_default_value')->onDelete('set null');
165 165
             
166 166
             $table->integer('shop_id')->unsigned();
@@ -170,10 +170,10 @@  discard block
 block discarded – undo
170 170
             $table->foreign('modified_by_user_id', 'pefv_modified_by_user_id_fk')->references('id')->on('user')->onDelete('set null');
171 171
             
172 172
             $table->timestamps();
173
-            $table->unique(array('product_id','extra_field_id'), 'unique_product_extra_field_value');
173
+            $table->unique(array('product_id', 'extra_field_id'), 'unique_product_extra_field_value');
174 174
         });   
175 175
 
176
-        Schema::create('product_tag_group', function (Blueprint $table) {
176
+        Schema::create('product_tag_group', function(Blueprint $table) {
177 177
             $table->increments('id');
178 178
             $table->boolean('active')->default(false);
179 179
             $table->string('tag')->nullable();
@@ -182,12 +182,12 @@  discard block
 block discarded – undo
182 182
             $table->foreign('shop_id')->references('id')->on('shop')->onDelete('cascade');
183 183
             $table->integer('modified_by_user_id')->unsigned()->nullable();
184 184
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
185
-            $table->unique(array('tag','shop_id'), 'unique_product_tag_group_tag');
185
+            $table->unique(array('tag', 'shop_id'), 'unique_product_tag_group_tag');
186 186
             $table->timestamps();
187 187
         });
188 188
 
189 189
 
190
-        Schema::create('product_tag_group_related_product', function (Blueprint $table) {
190
+        Schema::create('product_tag_group_related_product', function(Blueprint $table) {
191 191
             $table->increments('id');
192 192
             $table->integer('product_tag_group_id')->unsigned();
193 193
             $table->foreign('product_tag_group_id', 'ptgrp_product_tag_group_id_fk')->references('id')->on('product_tag_group')->onDelete('cascade');
Please login to merge, or discard this patch.