Completed
Push — master ( e297f9...c83b47 )
by Avtandil
04:59
created
src/MultiLang/MultiLangServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
         );
47 47
 
48 48
         // Register blade directives
49
-        Blade::directive('t', function ($expression) {
49
+        Blade::directive('t', function($expression) {
50 50
             return "<?php echo e(t({$expression})); ?>";
51 51
         });
52 52
 
53
-        $this->app['events']->listen(RouteMatched::class, function () {
53
+        $this->app['events']->listen(RouteMatched::class, function() {
54 54
             $scope = $this->app['config']->get('app.scope');
55 55
             if ($scope && $scope != 'global') {
56 56
                 $this->app['multilang']->setScope($scope);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $configPath = __DIR__ . '/../config/config.php';
72 72
         $this->mergeConfigFrom($configPath, 'debugbar');
73 73
 
74
-        $this->app->singleton('multilang', function ($app) {
74
+        $this->app->singleton('multilang', function($app) {
75 75
             $environment = $app->environment();
76 76
             $config      = $app['config']->get('multilang');
77 77
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             );
84 84
 
85 85
             if ($multilang->autoSaveIsAllowed()) {
86
-                $app->terminating(function () use ($multilang) {
86
+                $app->terminating(function() use ($multilang) {
87 87
                     $scope = $this->app['config']->get('app.scope');
88 88
                     if ($scope && $scope != 'global') {
89 89
                         $multilang->setScope($scope);
@@ -98,13 +98,13 @@  discard block
 block discarded – undo
98 98
         $this->app->alias('multilang', 'Longman\LaravelMultiLang\MultiLang');
99 99
 
100 100
         $this->app['command.multilang.migration'] = $this->app->share(
101
-            function () {
101
+            function() {
102 102
                 return new MigrationCommand();
103 103
             }
104 104
         );
105 105
 
106 106
         $this->app['command.multilang.texts'] = $this->app->share(
107
-            function () {
107
+            function() {
108 108
                 return new TextsCommand();
109 109
             }
110 110
         );
Please login to merge, or discard this patch.