Passed
Push — master ( 15fb0b...7beac6 )
by Matthijs
01:41
created
src/database/migrations/2016_02_15_135746_extra_field_extra_field_table.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::table('extra_field', function (Blueprint $table) {
16
+        Schema::table('extra_field', function(Blueprint $table) {
17 17
             $table->integer('product_category_id')->unsigned()->nullable();
18 18
             $table->foreign('product_category_id')->references('id')->on('product_category')->onDelete('set null');
19 19
         });
20 20
 
21
-        Schema::create('extra_field_related_product_category', function (Blueprint $table) {
21
+        Schema::create('extra_field_related_product_category', function(Blueprint $table) {
22 22
             $table->increments('id');
23 23
             $table->integer('extra_field_id')->unsigned();
24 24
             $table->foreign('extra_field_id', 'unique_related_extra_field_id')->references('id')->on('extra_field')->onDelete('cascade');
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function down()
36 36
     {
37
-     //
37
+        //
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/database/migrations/2014_09_18_074649_tax_rate_table.php 1 patch
Spacing   +2 added lines, -2 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('tax_rate', function (Blueprint $table) {
16
+        Schema::create('tax_rate', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('title')->nullable();
19 19
             $table->decimal('rate', 12, 4)->nullable();
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
24 24
             $table->timestamps();
25 25
 
26
-            $table->unique(array('rate','shop_id'), 'unique_tax_rate_rate');
26
+            $table->unique(array('rate', 'shop_id'), 'unique_tax_rate_rate');
27 27
         });
28 28
     }
29 29
 
Please login to merge, or discard this patch.
src/database/migrations/2015_03_30_200528_content_table.php 2 patches
Spacing   +6 added lines, -6 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('content', function (Blueprint $table) {
16
+        Schema::create('content', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->boolean('active')->default(false);            
19 19
             $table->string('title')->nullable();
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
             $table->integer('modified_by_user_id')->unsigned()->nullable();
29 29
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
30 30
             $table->timestamps();
31
-            $table->unique(array('title','shop_id'), 'unique_content_title');
31
+            $table->unique(array('title', 'shop_id'), 'unique_content_title');
32 32
         });
33 33
 
34
-        Schema::create('content_image', function (Blueprint $table) {
34
+        Schema::create('content_image', function(Blueprint $table) {
35 35
             $table->increments('id');
36 36
             $table->integer('content_id')->unsigned();
37 37
             $table->foreign('content_id')->references('id')->on('content')->onDelete('cascade');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         });
49 49
 
50 50
         // Creates the users table
51
-        Schema::create('content_group', function ($table) {
51
+        Schema::create('content_group', function($table) {
52 52
             $table->increments('id');
53 53
             $table->boolean('active')->default(false);
54 54
             $table->integer('rank')->default(0);
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
             $table->string('slug');
65 65
             $table->integer('modified_by_user_id')->unsigned()->nullable();
66 66
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
67
-            $table->unique(array('title','shop_id'), 'unique_content_group_title');
67
+            $table->unique(array('title', 'shop_id'), 'unique_content_group_title');
68 68
             $table->timestamps();
69 69
         });
70 70
 
71 71
 
72
-        Schema::table('content', function (Blueprint $table) {
72
+        Schema::table('content', function(Blueprint $table) {
73 73
             $table->integer('content_group_id')->unsigned()->nullable();
74 74
             $table->foreign('content_group_id', 'c_content_group_id_fk')->references('id')->on('content_group')->onDelete('set null');
75 75
         });
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function down()
36 36
     {
37
-     //
37
+        //
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/database/migrations/2014_09_18_074650_product_category_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('product_category', function (Blueprint $table) {
16
+        Schema::create('product_category', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->boolean('active')->default(false);
19 19
             $table->string('title')->nullable();
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             $table->timestamps();
40 40
         });
41 41
 
42
-        Schema::create('product_category_image', function (Blueprint $table) {
42
+        Schema::create('product_category_image', function(Blueprint $table) {
43 43
             $table->increments('id');
44 44
             $table->string('file')->nullable();
45 45
             $table->string('path')->nullable();
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             $table->timestamps();
55 55
         });
56 56
 
57
-        Schema::create('product_category_related_extra_field', function (Blueprint $table) {
57
+        Schema::create('product_category_related_extra_field', function(Blueprint $table) {
58 58
             $table->increments('id');
59 59
             $table->integer('extra_field_id')->unsigned()->nullable();
60 60
             $table->foreign('extra_field_id', 'pcref_extra_field_id_fk')->references('id')->on('extra_field')->onDelete('cascade');
Please login to merge, or discard this patch.
src/database/migrations/2014_09_17_065602_language_table.php 1 patch
Spacing   +3 added lines, -3 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('language', function (Blueprint $table) {
15
+        Schema::create('language', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->text('language')->nullable();
18 18
             $table->integer('modified_by_user_id')->unsigned()->nullable();
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
             $table->timestamps();
23 23
         });
24 24
     
25
-        Schema::table('shop', function (Blueprint $table) {
25
+        Schema::table('shop', function(Blueprint $table) {
26 26
             $table->foreign('language_id')->references('id')->on('language')->onDelete('set null');
27 27
         });
28 28
 
29
-        Schema::table('user', function (Blueprint $table) {
29
+        Schema::table('user', function(Blueprint $table) {
30 30
             $table->foreign('language_id')->references('id')->on('language')->onDelete('set null');
31 31
         });
32 32
     }
Please login to merge, or discard this patch.
src/database/migrations/2015_09_19_174457_payment_method_log_table.php 2 patches
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('order_payment_log', function (Blueprint $table) {
16
+        Schema::create('order_payment_log', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->enum('type', array('mollie'))->nullable();
19 19
             $table->longText('log');
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function down()
36 36
     {
37
-     //
37
+        //
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/database/migrations/2015_09_22_143744_news_table.php 2 patches
Spacing   +6 added lines, -6 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('news', function (Blueprint $table) {
16
+        Schema::create('news', function(Blueprint $table) {
17 17
             $table->increments('id');              
18 18
             $table->string('title')->nullable();
19 19
             $table->text('short_description')->nullable();
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
             $table->integer('modified_by_user_id')->unsigned()->nullable();
29 29
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
30 30
             $table->timestamps();
31
-            $table->unique(array('title','shop_id'), 'unique_news_title');
31
+            $table->unique(array('title', 'shop_id'), 'unique_news_title');
32 32
         });
33 33
 
34 34
 
35
-        Schema::create('news_image', function (Blueprint $table) {
35
+        Schema::create('news_image', function(Blueprint $table) {
36 36
             $table->increments('id');
37 37
             $table->integer('news_id')->unsigned();
38 38
             $table->foreign('news_id')->references('id')->on('news')->onDelete('cascade');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         });
49 49
 
50 50
         // Creates the users table
51
-        Schema::create('news_group', function ($table) {
51
+        Schema::create('news_group', function($table) {
52 52
             $table->increments('id');
53 53
             $table->boolean('active')->default(false);
54 54
             $table->integer('rank')->default(0);
@@ -61,12 +61,12 @@  discard block
 block discarded – undo
61 61
             $table->foreign('shop_id')->references('id')->on('shop')->onDelete('cascade');
62 62
             $table->integer('modified_by_user_id')->unsigned()->nullable();
63 63
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
64
-            $table->unique(array('title','shop_id'), 'unique_news_group_title');
64
+            $table->unique(array('title', 'shop_id'), 'unique_news_group_title');
65 65
             $table->timestamps();
66 66
         });
67 67
 
68 68
 
69
-        Schema::table('news', function (Blueprint $table) {
69
+        Schema::table('news', function(Blueprint $table) {
70 70
             $table->integer('news_group_id')->unsigned()->nullable();
71 71
             $table->foreign('news_group_id')->references('id')->on('news_group')->onDelete('set null');
72 72
         });       
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function down()
36 36
     {
37
-     //
37
+        //
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/database/migrations/2016_05_26_094538_html_block.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('html_block', function (Blueprint $table) {
15
+        Schema::create('html_block', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->boolean('active')->default(false);
18 18
             $table->string('title')->nullable();
Please login to merge, or discard this patch.
src/database/migrations/2014_10_13_215718_coupon_table.php 2 patches
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.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function down()
36 36
     {
37
-     //
37
+        //
38 38
     }
39 39
 }
Please login to merge, or discard this patch.