Test Failed
Push — master ( 397144...dd54f9 )
by Gianluca
05:45
created
src/MongicommerceServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function boot()
22 22
     {
23 23
 
24
-        Blade::directive('money', function ($amount){
24
+        Blade::directive('money', function($amount) {
25 25
             #return $fmt->formatCurrency($amount,"EUR");
26 26
             /*return "<?= $fmt->formatCurrency($amount,'EUR'); ?>";*/
27 27
             return "<?= abs($amount) > 1000 ? '€ ' .number_format($amount, 0, ',', '.') : '€ ' . number_format($amount, 2, ',', '.') ?>";
@@ -35,12 +35,12 @@  discard block
 block discarded – undo
35 35
         $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
36 36
         $this->loadRoutesFrom(__DIR__.'/routes.php');
37 37
 
38
-        if(Schema::hasTable('admin_settings')){
38
+        if (Schema::hasTable('admin_settings')) {
39 39
             //inject global information into views
40 40
             View::share('mongicommerce', AdminSetting::first());
41 41
         }
42 42
 
43
-        if(Schema::hasTable('categories')){
43
+        if (Schema::hasTable('categories')) {
44 44
             //inject global information into views
45 45
             View::share('categories', Template::getCategoryTree());
46 46
         }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'mongicommerce');
107 107
 
108 108
         // Register the main class to use with the facade
109
-        $this->app->singleton('mongicommerce', function () {
109
+        $this->app->singleton('mongicommerce', function() {
110 110
             return new Mongicommerce;
111 111
         });
112 112
     }
Please login to merge, or discard this patch.