Completed
Push — master ( 1bdf99...49cc2f )
by Avtandil
02:51
created
src/MultiLang/MultiLangServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
         );
45 45
 
46 46
         // Register blade directives
47
-        Blade::directive('t', function ($expression) {
47
+        Blade::directive('t', function($expression) {
48 48
             return "<?php echo e(t({$expression})); ?>";
49 49
         });
50 50
 
51
-        $this->app['events']->listen('locale.changed', function ($locale) {
51
+        $this->app['events']->listen('locale.changed', function($locale) {
52 52
             $this->app['multilang']->setLocale($locale);
53 53
         });
54 54
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $configPath = __DIR__ . '/../config/config.php';
73 73
         $this->mergeConfigFrom($configPath, 'debugbar');
74 74
 
75
-        $this->app->singleton('multilang', function ($app) {
75
+        $this->app->singleton('multilang', function($app) {
76 76
             $environment = $app->environment();
77 77
             $config = $app['config']->get('multilang');
78 78
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             );
85 85
 
86 86
             if ($multilang->autoSaveIsAllowed()) {
87
-                $app->terminating(function () use ($multilang) {
87
+                $app->terminating(function() use ($multilang) {
88 88
                     return $multilang->saveTexts();
89 89
                 });
90 90
             }
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
         $this->app->alias('multilang', 'Longman\LaravelMultiLang\MultiLang');
96 96
 
97 97
         $this->app['command.multilang.migration'] = $this->app->share(
98
-            function () {
98
+            function() {
99 99
                 return new MigrationCommand();
100 100
             }
101 101
         );
102 102
 
103 103
         $this->app['command.multilang.texts'] = $this->app->share(
104
-            function () {
104
+            function() {
105 105
                 return new TextsCommand();
106 106
             }
107 107
         );
Please login to merge, or discard this patch.