@@ -21,7 +21,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'mongicommerce'); |
| 104 | 104 | |
| 105 | 105 | // Register the main class to use with the facade |
| 106 | - $this->app->singleton('mongicommerce', function () { |
|
| 106 | + $this->app->singleton('mongicommerce', function() { |
|
| 107 | 107 | return new Mongicommerce; |
| 108 | 108 | }); |
| 109 | 109 | } |