Passed
Push — master ( 15fb0b...7beac6 )
by Matthijs
01:41
created
src/Providers/HideyoServiceProvider.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
      */
18 18
     public function boot()
19 19
     {
20
-	    $this->publishes([
21
-	        __DIR__.'/../database/migrations/' => database_path('migrations')
22
-	    ], 'migrations');
20
+        $this->publishes([
21
+            __DIR__.'/../database/migrations/' => database_path('migrations')
22
+        ], 'migrations');
23 23
 
24
-	    $this->publishes([
25
-	        __DIR__.'/../database/seeds/' => database_path('seeds')
26
-	    ], 'seeds');
24
+        $this->publishes([
25
+            __DIR__.'/../database/seeds/' => database_path('seeds')
26
+        ], 'seeds');
27 27
 
28 28
     }
29 29
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function register()
36 36
     {
37
-        $this->app->singleton('hideyo', function () {
37
+        $this->app->singleton('hideyo', function() {
38 38
             return true;
39 39
         });
40 40
     }
Please login to merge, or discard this patch.
src/Providers/HtmlServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
      */
10 10
     protected function registerFormBuilder()
11 11
     {
12
-        $this->app->singleton('form', function ($app) {
12
+        $this->app->singleton('form', function($app) {
13 13
             $form = new FormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->token());
14 14
             return $form->setSessionStore($app['session.store']);
15 15
         });
Please login to merge, or discard this patch.
src/Providers/RouteServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
     protected function mapBackendRoutes()
52 52
     {
53 53
         Route::group([
54
-            'middleware' => ['hideyobackend','auth.hideyo.backend'],
54
+            'middleware' => ['hideyobackend', 'auth.hideyo.backend'],
55 55
             'prefix' => 'admin', 
56 56
             'namespace' => 'App\Http\Controllers\Backend'
57
-        ], function ($router) {
57
+        ], function($router) {
58 58
             require base_path('routes/backend.php');
59 59
         });
60 60
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             'middleware' => ['hideyobackend'],
73 73
             'prefix' => 'admin', 
74 74
             'namespace' => 'App\Http\Controllers\Backend'
75
-        ], function ($router) {
75
+        ], function($router) {
76 76
             require base_path('routes/auth_backend.php');
77 77
         });
78 78
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         Route::group([
90 90
             'middleware' => ['web', 'detect.shop'],
91 91
             'namespace' => $this->frontendNamespace,
92
-        ], function ($router) {
92
+        ], function($router) {
93 93
             require base_path('routes/frontend.php');
94 94
         });
95 95
     }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             'middleware' => 'api',
108 108
             'namespace' => $this->apiNamespace,
109 109
             'prefix' => 'api',
110
-        ], function ($router) {
110
+        ], function($router) {
111 111
             require base_path('routes/api.php');
112 112
         });
113 113
     }    
Please login to merge, or discard this patch.
src/Providers/FormBuilder.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $html = array();
58 58
         if (is_array($selected)) {
59 59
             foreach ($selected as $key => $value) {
60
-                      $selected[$value] = $value;
60
+                        $selected[$value] = $value;
61 61
             }
62 62
         }
63 63
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function submit($value = null, $options = [])
49 49
     {
50
-        $options['class'] = 'btn btn-cons btn-success' . (isset($options['class']) ? ' ' . $options['class'] : '');
50
+        $options['class'] = 'btn btn-cons btn-success'.(isset($options['class']) ? ' '.$options['class'] : '');
51 51
         return parent::submit($value, $options);
52 52
     }
53 53
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         //dd($list, $selected);
65 65
         foreach ($list as $value => $display) {
66
-            $sel = isset($selected[$value])?' selected="selected"':'';
66
+            $sel = isset($selected[$value]) ? ' selected="selected"' : '';
67 67
             $html[] = '<option value="'.$value.'"'.$sel.'>'.e($display).'</option>';
68 68
         }
69 69
      
Please login to merge, or discard this patch.
src/Providers/CartServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function register()
36 36
     {
37
-        $this->app->singleton('cart', function ($app) {
37
+        $this->app->singleton('cart', function($app) {
38 38
 
39 39
             $storage = $app['session'];
40 40
             $events = $app['events'];
Please login to merge, or discard this patch.
src/database/seeds/SendingMethodTableSeeder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $sendingMethod->save();
25 25
 
26 26
         $sendingMethod2 = new SendingMethod;
27
-       	$sendingMethod2->active = 1;
27
+            $sendingMethod2->active = 1;
28 28
         $sendingMethod2->title = 'Netherlands';
29 29
         $sendingMethod2->tax_rate_id = $taxRate->id; 
30 30
         $sendingMethod2->price = '30'; 
Please login to merge, or discard this patch.
src/database/seeds/ProductRelatedProductTableSeeder.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -14,31 +14,31 @@
 block discarded – undo
14 14
         DB::table($productRelatedProduct->getTable())->delete();
15 15
 
16 16
         for ($x = 1; $x <= 10; $x++) {
17
-	        $productRelatedProduct = new ProductRelatedProduct;
18
-	        $productRelatedProduct->product_id = $x;
19
-	        $productRelatedProduct->related_product_id = $x + 1;
20
-	        $productRelatedProduct->save();
21
-	    }
17
+            $productRelatedProduct = new ProductRelatedProduct;
18
+            $productRelatedProduct->product_id = $x;
19
+            $productRelatedProduct->related_product_id = $x + 1;
20
+            $productRelatedProduct->save();
21
+        }
22 22
 
23 23
         for ($x = 2; $x <= 10; $x++) {
24
-	        $productRelatedProduct = new ProductRelatedProduct;
25
-	        $productRelatedProduct->product_id = $x;
26
-	        $productRelatedProduct->related_product_id = $x + 1;
27
-	        $productRelatedProduct->save();
28
-	    }
24
+            $productRelatedProduct = new ProductRelatedProduct;
25
+            $productRelatedProduct->product_id = $x;
26
+            $productRelatedProduct->related_product_id = $x + 1;
27
+            $productRelatedProduct->save();
28
+        }
29 29
 
30 30
         for ($x = 3; $x <= 10; $x++) {
31
-	        $productRelatedProduct = new ProductRelatedProduct;
32
-	        $productRelatedProduct->product_id = $x;
33
-	        $productRelatedProduct->related_product_id = $x + 1;
34
-	        $productRelatedProduct->save();
35
-	    }
31
+            $productRelatedProduct = new ProductRelatedProduct;
32
+            $productRelatedProduct->product_id = $x;
33
+            $productRelatedProduct->related_product_id = $x + 1;
34
+            $productRelatedProduct->save();
35
+        }
36 36
 
37 37
         for ($x = 4; $x <= 10; $x++) {
38
-	        $productRelatedProduct = new ProductRelatedProduct;
39
-	        $productRelatedProduct->product_id = $x;
40
-	        $productRelatedProduct->related_product_id = $x + 1;
41
-	        $productRelatedProduct->save();
42
-	    }
38
+            $productRelatedProduct = new ProductRelatedProduct;
39
+            $productRelatedProduct->product_id = $x;
40
+            $productRelatedProduct->related_product_id = $x + 1;
41
+            $productRelatedProduct->save();
42
+        }
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
src/database/migrations/2016_02_25_113401_redirect_404_table.php 2 patches
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.
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('redirect', function (Blueprint $table) {
16
+        Schema::create('redirect', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->boolean('active')->default(false);
19 19
             $table->integer('clicks')->default(0);
Please login to merge, or discard this patch.
src/database/migrations/2015_03_30_212955_faq_items_table.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     {
16 16
 
17 17
         // Creates the users table
18
-        Schema::create('faq_item_group', function ($table) {
18
+        Schema::create('faq_item_group', function($table) {
19 19
             $table->increments('id');
20 20
             $table->boolean('active')->default(false);
21 21
             $table->integer('rank')->default(0);
@@ -28,12 +28,12 @@  discard block
 block discarded – undo
28 28
             $table->foreign('shop_id')->references('id')->on('shop')->onDelete('cascade');
29 29
             $table->integer('modified_by_user_id')->unsigned()->nullable();
30 30
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
31
-            $table->unique(array('title','shop_id'), 'unique_faq_item_group_title');
31
+            $table->unique(array('title', 'shop_id'), 'unique_faq_item_group_title');
32 32
             $table->timestamps();
33 33
         });
34 34
 
35 35
 
36
-        Schema::create('faq_item', function (Blueprint $table) {
36
+        Schema::create('faq_item', function(Blueprint $table) {
37 37
             $table->increments('id');
38 38
             $table->integer('faq_item_group_id')->unsigned()->nullable();
39 39
             $table->foreign('faq_item_group_id')->references('id')->on('faq_item_group')->onDelete('set null');
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null');
50 50
             $table->timestamps();
51 51
 
52
-            $table->unique(array('question','shop_id'), 'unique_faq_item_title');
52
+            $table->unique(array('question', 'shop_id'), 'unique_faq_item_title');
53 53
         });
54 54
     }
55 55
 
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.