@@ -82,7 +82,7 @@ |
||
82 | 82 | ->where('lang', $lang); |
83 | 83 | |
84 | 84 | if (!is_null($scope)) { |
85 | - $query = $query->whereNested(function ($query) use ($scope) { |
|
85 | + $query = $query->whereNested(function($query) use ($scope) { |
|
86 | 86 | $query->where('scope', 'global'); |
87 | 87 | $query->orWhere('scope', $scope); |
88 | 88 | }); |
@@ -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(RouteMatched::class, function ($match) { |
|
55 | + $this->app['events']->listen(RouteMatched::class, function($match) { |
|
56 | 56 | $scope = $this->app['config']->get('app.scope'); |
57 | 57 | if ($scope && $scope != 'global') { |
58 | 58 | $this->app['multilang']->setScope($scope); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $configPath = __DIR__ . '/../config/config.php'; |
75 | 75 | $this->mergeConfigFrom($configPath, 'debugbar'); |
76 | 76 | |
77 | - $this->app->singleton('multilang', function ($app) { |
|
77 | + $this->app->singleton('multilang', function($app) { |
|
78 | 78 | $environment = $app->environment(); |
79 | 79 | $config = $app['config']->get('multilang'); |
80 | 80 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | ); |
87 | 87 | |
88 | 88 | if ($multilang->autoSaveIsAllowed()) { |
89 | - $app->terminating(function () use ($multilang) { |
|
89 | + $app->terminating(function() use ($multilang) { |
|
90 | 90 | $scope = $this->app['config']->get('app.scope'); |
91 | 91 | if ($scope && $scope != 'global') { |
92 | 92 | $multilang->setScope($scope); |
@@ -102,13 +102,13 @@ discard block |
||
102 | 102 | $this->app->alias('multilang', 'Longman\LaravelMultiLang\MultiLang'); |
103 | 103 | |
104 | 104 | $this->app['command.multilang.migration'] = $this->app->share( |
105 | - function () { |
|
105 | + function() { |
|
106 | 106 | return new MigrationCommand(); |
107 | 107 | } |
108 | 108 | ); |
109 | 109 | |
110 | 110 | $this->app['command.multilang.texts'] = $this->app->share( |
111 | - function () { |
|
111 | + function() { |
|
112 | 112 | return new TextsCommand(); |
113 | 113 | } |
114 | 114 | ); |