Completed
Push — master ( 20bb8b...e297f9 )
by Avtandil
09:09
created
src/MultiLang/Console/MigrationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
                 $this->info('Migration successfully created!');
54 54
             } else {
55 55
                 $this->error(
56
-                    'Couldn\'t create migration.'.PHP_EOL.' Check the write permissions
56
+                    'Couldn\'t create migration.' . PHP_EOL . ' Check the write permissions
57 57
                     within the database/migrations directory.'
58 58
                 );
59 59
             }
Please login to merge, or discard this patch.
src/MultiLang/TextsTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
             $options['scope'] = $request->scope;
25 25
         }
26 26
 
27
-        $texts = Text::where(function ($q) use ($options) {
27
+        $texts = Text::where(function($q) use ($options) {
28 28
             foreach ($options as $k => $v) {
29 29
                 if ($k == 'keyword') {
30
-                    $q->where(function ($query) use ($v) {
30
+                    $q->where(function($query) use ($v) {
31 31
                         $query->where('key', 'LIKE', '%' . $v . '%')->orWhere('value', 'LIKE', '%' . $v . '%');
32 32
                     });
33 33
                 } else {
Please login to merge, or discard this patch.
src/MultiLang/Models/Localizable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     public function getQualifiedLocalizableColumn()
32 32
     {
33
-        return $this->getTable().'.'.$this->getLocalizableColumn();
33
+        return $this->getTable() . '.' . $this->getLocalizableColumn();
34 34
     }
35 35
 
36 36
 
Please login to merge, or discard this patch.
src/MultiLang/Repository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
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
             });
Please login to merge, or discard this patch.
src/MultiLang/MultiLangServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.