@@ -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 | |
@@ -71,8 +71,8 @@ discard block |
||
| 71 | 71 | $locales = $this->app['config']->get('multilang.locales'); |
| 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 | - foreach($locales as $locale => $value) { |
|
| 75 | - Route::group(['prefix' => $locale], function ($router) use ($route, $controller) { |
|
| 74 | + foreach ($locales as $locale => $value) { |
|
| 75 | + Route::group(['prefix' => $locale], function($router) use ($route, $controller) { |
|
| 76 | 76 | $router->get( |
| 77 | 77 | $route, |
| 78 | 78 | $controller . '@index' |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $configPath = __DIR__ . '/../config/config.php'; |
| 97 | 97 | $this->mergeConfigFrom($configPath, 'debugbar'); |
| 98 | 98 | |
| 99 | - $this->app->singleton('multilang', function ($app) { |
|
| 99 | + $this->app->singleton('multilang', function($app) { |
|
| 100 | 100 | $environment = $app->environment(); |
| 101 | 101 | $config = $app['config']->get('multilang'); |
| 102 | 102 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | ); |
| 109 | 109 | |
| 110 | 110 | if ($multilang->autoSaveIsAllowed()) { |
| 111 | - $app->terminating(function () use ($multilang) { |
|
| 111 | + $app->terminating(function() use ($multilang) { |
|
| 112 | 112 | return $multilang->saveTexts(); |
| 113 | 113 | }); |
| 114 | 114 | } |
@@ -119,13 +119,13 @@ discard block |
||
| 119 | 119 | $this->app->alias('multilang', 'Longman\LaravelMultiLang\MultiLang'); |
| 120 | 120 | |
| 121 | 121 | $this->app['command.multilang.migration'] = $this->app->share( |
| 122 | - function () { |
|
| 122 | + function() { |
|
| 123 | 123 | return new MigrationCommand(); |
| 124 | 124 | } |
| 125 | 125 | ); |
| 126 | 126 | |
| 127 | 127 | $this->app['command.multilang.texts'] = $this->app->share( |
| 128 | - function () { |
|
| 128 | + function() { |
|
| 129 | 129 | return new TextsCommand(); |
| 130 | 130 | } |
| 131 | 131 | ); |