@@ -48,11 +48,11 @@ discard block |
||
48 | 48 | ); |
49 | 49 | |
50 | 50 | // Register blade directives |
51 | - Blade::directive('t', function ($expression) { |
|
51 | + Blade::directive('t', function($expression) { |
|
52 | 52 | return "<?php echo e(t({$expression})); ?>"; |
53 | 53 | }); |
54 | 54 | |
55 | - $this->app['events']->listen('locale.changed', function ($locale) { |
|
55 | + $this->app['events']->listen('locale.changed', function($locale) { |
|
56 | 56 | $this->app['multilang']->setLocale($locale); |
57 | 57 | }); |
58 | 58 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $route = $this->app['config']->get('multilang.text-route.route', 'texts'); |
73 | 73 | $controller = $this->app['config']->get('multilang.text-route.controller', '\Longman\LaravelMultiLang\Controllers\TextsController'); |
74 | 74 | foreach ($locales as $locale => $value) { |
75 | - Route::group(['prefix' => $locale], function ($router) use ($route, $controller) { |
|
75 | + Route::group(['prefix' => $locale], function($router) use ($route, $controller) { |
|
76 | 76 | $router->get( |
77 | 77 | $route, |
78 | 78 | $controller . '@index' |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $configPath = __DIR__ . '/../config/config.php'; |
96 | 96 | $this->mergeConfigFrom($configPath, 'debugbar'); |
97 | 97 | |
98 | - $this->app->singleton('multilang', function ($app) { |
|
98 | + $this->app->singleton('multilang', function($app) { |
|
99 | 99 | $environment = $app->environment(); |
100 | 100 | $config = $app['config']->get('multilang'); |
101 | 101 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | ); |
108 | 108 | |
109 | 109 | if ($multilang->autoSaveIsAllowed()) { |
110 | - $app->terminating(function () use ($multilang) { |
|
110 | + $app->terminating(function() use ($multilang) { |
|
111 | 111 | return $multilang->saveTexts(); |
112 | 112 | }); |
113 | 113 | } |
@@ -118,13 +118,13 @@ discard block |
||
118 | 118 | $this->app->alias('multilang', 'Longman\LaravelMultiLang\MultiLang'); |
119 | 119 | |
120 | 120 | $this->app['command.multilang.migration'] = $this->app->share( |
121 | - function () { |
|
121 | + function() { |
|
122 | 122 | return new MigrationCommand(); |
123 | 123 | } |
124 | 124 | ); |
125 | 125 | |
126 | 126 | $this->app['command.multilang.texts'] = $this->app->share( |
127 | - function () { |
|
127 | + function() { |
|
128 | 128 | return new TextsCommand(); |
129 | 129 | } |
130 | 130 | ); |