| @@ -51,18 +51,18 @@ discard block | ||
| 51 | 51 | ); | 
| 52 | 52 | |
| 53 | 53 | // Register blade directives | 
| 54 | -        Blade::directive('t', function ($expression) { | |
| 54 | +        Blade::directive('t', function($expression) { | |
| 55 | 55 |              return "<?php echo e(t({$expression})); ?>"; | 
| 56 | 56 | }); | 
| 57 | 57 | |
| 58 | -        $this->app['events']->listen(RouteMatched::class, function () { | |
| 58 | +        $this->app['events']->listen(RouteMatched::class, function() { | |
| 59 | 59 |              $scope = $this->app['config']->get('app.scope'); | 
| 60 | 60 |              if ($scope && $scope != 'global') { | 
| 61 | 61 | $this->app['multilang']->setScope($scope); | 
| 62 | 62 | } | 
| 63 | 63 | }); | 
| 64 | 64 | |
| 65 | -        $this->app['events']->listen(LocaleUpdated::class, function ($event) { | |
| 65 | +        $this->app['events']->listen(LocaleUpdated::class, function($event) { | |
| 66 | 66 | $this->app['multilang']->setLocale($event->locale); | 
| 67 | 67 | }); | 
| 68 | 68 | |
| @@ -79,7 +79,7 @@ discard block | ||
| 79 | 79 | $configPath = __DIR__ . '/../config/config.php'; | 
| 80 | 80 | $this->mergeConfigFrom($configPath, 'debugbar'); | 
| 81 | 81 | |
| 82 | -        $this->app->singleton('multilang', function ($app) { | |
| 82 | +        $this->app->singleton('multilang', function($app) { | |
| 83 | 83 | $environment = $app->environment(); | 
| 84 | 84 |              $config = $app['config']->get('multilang'); | 
| 85 | 85 | |
| @@ -91,7 +91,7 @@ discard block | ||
| 91 | 91 | ); | 
| 92 | 92 | |
| 93 | 93 |              if ($multilang->autoSaveIsAllowed()) { | 
| 94 | -                $app->terminating(function () use ($multilang) { | |
| 94 | +                $app->terminating(function() use ($multilang) { | |
| 95 | 95 |                      $scope = $this->app['config']->get('app.scope'); | 
| 96 | 96 |                      if ($scope && $scope != 'global') { | 
| 97 | 97 | $multilang->setScope($scope); | 
| @@ -108,28 +108,28 @@ discard block | ||
| 108 | 108 | |
| 109 | 109 | $this->app->singleton( | 
| 110 | 110 | 'command.multilang.migration', | 
| 111 | -            function () { | |
| 111 | +            function() { | |
| 112 | 112 | return new MigrationCommand(); | 
| 113 | 113 | } | 
| 114 | 114 | ); | 
| 115 | 115 | |
| 116 | 116 | $this->app->singleton( | 
| 117 | 117 | 'command.multilang.texts', | 
| 118 | -            function () { | |
| 118 | +            function() { | |
| 119 | 119 | return new TextsCommand(); | 
| 120 | 120 | } | 
| 121 | 121 | ); | 
| 122 | 122 | |
| 123 | 123 | $this->app->singleton( | 
| 124 | 124 | 'command.multilang.import', | 
| 125 | -            function () { | |
| 125 | +            function() { | |
| 126 | 126 | return new ImportCommand(); | 
| 127 | 127 | } | 
| 128 | 128 | ); | 
| 129 | 129 | |
| 130 | 130 | $this->app->singleton( | 
| 131 | 131 | 'command.multilang.export', | 
| 132 | -            function () { | |
| 132 | +            function() { | |
| 133 | 133 | return new ExportCommand(); | 
| 134 | 134 | } | 
| 135 | 135 | ); | 
| @@ -143,7 +143,7 @@ discard block | ||
| 143 | 143 | ] | 
| 144 | 144 | ); | 
| 145 | 145 | |
| 146 | -        Request::macro('locale', function () { | |
| 146 | +        Request::macro('locale', function() { | |
| 147 | 147 |              return app('multilang')->getLocale(); | 
| 148 | 148 | }); | 
| 149 | 149 | } |