Test Failed
Push — master ( bb97ee...8f74b1 )
by Gianluca
06:32
created
src/MongicommerceServiceProvider.php 1 patch
Spacing   +7 added lines, -7 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::getStructureCategories());
46 46
         }
@@ -49,15 +49,15 @@  discard block
 block discarded – undo
49 49
         if ($this->app->runningInConsole()) {
50 50
 
51 51
             $config_file = config_path('mongicommerce.php');
52
-            if(file_exists($config_file)){
52
+            if (file_exists($config_file)) {
53 53
                 File::delete($config_file);
54 54
             }
55 55
 
56
-            if(file_exists(resource_path('/views/mongicommerce'))){
56
+            if (file_exists(resource_path('/views/mongicommerce'))) {
57 57
                 File::deleteDirectory(resource_path('/views/mongicommerce'));
58 58
             }
59 59
 
60
-            if(file_exists(public_path('/mongicommerce/template'))){
60
+            if (file_exists(public_path('/mongicommerce/template'))) {
61 61
                 File::deleteDirectory(public_path('/mongicommerce/template'));
62 62
             }
63 63
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'mongicommerce');
102 102
 
103 103
         // Register the main class to use with the facade
104
-        $this->app->singleton('mongicommerce', function () {
104
+        $this->app->singleton('mongicommerce', function() {
105 105
             return new Mongicommerce;
106 106
         });
107 107
     }
Please login to merge, or discard this patch.