@@ -49,11 +49,11 @@ discard block |
||
| 49 | 49 | ); |
| 50 | 50 | |
| 51 | 51 | // Register blade directives |
| 52 | - Blade::directive('t', function ($expression) { |
|
| 52 | + Blade::directive('t', function($expression) { |
|
| 53 | 53 | return "<?php echo e(t({$expression})); ?>"; |
| 54 | 54 | }); |
| 55 | 55 | |
| 56 | - $this->app['events']->listen(RouteMatched::class, function () { |
|
| 56 | + $this->app['events']->listen(RouteMatched::class, function() { |
|
| 57 | 57 | $scope = $this->app['config']->get('app.scope'); |
| 58 | 58 | if ($scope && $scope != 'global') { |
| 59 | 59 | $this->app['multilang']->setScope($scope); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $configPath = __DIR__ . '/../config/config.php'; |
| 75 | 75 | $this->mergeConfigFrom($configPath, 'debugbar'); |
| 76 | 76 | |
| 77 | - $this->app->singleton('multilang', function ($app) { |
|
| 77 | + $this->app->singleton('multilang', function($app) { |
|
| 78 | 78 | $environment = $app->environment(); |
| 79 | 79 | $config = $app['config']->get('multilang'); |
| 80 | 80 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | ); |
| 87 | 87 | |
| 88 | 88 | if ($multilang->autoSaveIsAllowed()) { |
| 89 | - $app->terminating(function () use ($multilang) { |
|
| 89 | + $app->terminating(function() use ($multilang) { |
|
| 90 | 90 | $scope = $this->app['config']->get('app.scope'); |
| 91 | 91 | if ($scope && $scope != 'global') { |
| 92 | 92 | $multilang->setScope($scope); |
@@ -101,25 +101,25 @@ discard block |
||
| 101 | 101 | $this->app->alias('multilang', 'Longman\LaravelMultiLang\MultiLang'); |
| 102 | 102 | |
| 103 | 103 | $this->app['command.multilang.migration'] = $this->app->singleton( |
| 104 | - function () { |
|
| 104 | + function() { |
|
| 105 | 105 | return new MigrationCommand(); |
| 106 | 106 | } |
| 107 | 107 | ); |
| 108 | 108 | |
| 109 | 109 | $this->app['command.multilang.texts'] = $this->app->singleton( |
| 110 | - function () { |
|
| 110 | + function() { |
|
| 111 | 111 | return new TextsCommand(); |
| 112 | 112 | } |
| 113 | 113 | ); |
| 114 | 114 | |
| 115 | 115 | $this->app['command.multilang.import'] = $this->app->singleton( |
| 116 | - function () { |
|
| 116 | + function() { |
|
| 117 | 117 | return new ImportCommand(); |
| 118 | 118 | } |
| 119 | 119 | ); |
| 120 | 120 | |
| 121 | 121 | $this->app['command.multilang.export'] = $this->app->singleton( |
| 122 | - function () { |
|
| 122 | + function() { |
|
| 123 | 123 | return new ExportCommand(); |
| 124 | 124 | } |
| 125 | 125 | ); |