Passed
Branch master (bda0ff)
by Matthijs
02:31
created
src/Providers/HideyoServiceProvider.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('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/ShopServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function register()
17 17
     {
18
-        $this->app->bind('ShopService', function ($app) {
18
+        $this->app->bind('ShopService', function($app) {
19 19
             return new ShopService(
20 20
                 // Injecting user interface to be used as user repository
21 21
                 $app->make('Hideyo\Ecommerce\Framework\Services\Shop\Entity\ShopRepositoryInterface'));
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 1 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/ProductTableSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 
25 25
         $storageImagePath = "/files/product/";
26
-        $publicImagePath = public_path() .config('hideyo.public_path'). "/product/";
26
+        $publicImagePath = public_path().config('hideyo.public_path')."/product/";
27 27
 
28 28
 
29 29
         $productCategory = ProductCategory::where('title', '=', 'Pants')->first();
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $product2->product_category_id = $productCategory->id;
135 135
         $product2->tax_rate_id = $taxRate->id;
136 136
 
137
-        if (! $product2->save()) {
137
+        if (!$product2->save()) {
138 138
             Log::info('Unable to create product '.$product2->title, (array)$product2->errors());
139 139
         } else {
140 140
             Log::info('Created product "'.$product2->title.'" <'.$product2->title.'>');
Please login to merge, or discard this patch.
src/database/migrations/2016_02_25_113401_redirect_404_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('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 1 patch
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.