Test Setup Failed
Push — master ( f204f3...35acdf )
by Avtandil
03:40
created
src/MultiLang/Console/ImportCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -85,16 +85,16 @@  discard block
 block discarded – undo
85 85
         $this->db = $this->getDatabase();
86 86
 
87 87
         $lang = $this->option('lang');
88
-        if (! empty($lang)) {
88
+        if (!empty($lang)) {
89 89
             $this->langs = explode(',', $lang);
90 90
         }
91 91
 
92 92
         $scopes = $this->scopes;
93 93
         $scope = $this->option('scope');
94
-        if (! empty($scope)) {
94
+        if (!empty($scope)) {
95 95
             $scopes = explode(',', $scope);
96 96
             foreach ($scopes as $scope) {
97
-                if (! in_array($scope, $this->scopes)) {
97
+                if (!in_array($scope, $this->scopes)) {
98 98
                     throw new InvalidArgumentException('Scope "' . $scope . '" is not found! Available scopes is ' . implode(', ', $this->scopes));
99 99
                 }
100 100
             }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         $path = $this->option('path', 'storage/multilang');
104 104
         $this->path = base_path($path);
105
-        if (! is_dir($this->path)) {
105
+        if (!is_dir($this->path)) {
106 106
             throw new InvalidArgumentException('Folder "' . $this->path . '" is not accessible!');
107 107
         }
108 108
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     protected function import($scope = 'global', $force = false, $clear = false)
117 117
     {
118 118
         $path = $this->path . '/' . $scope . '.yml';
119
-        if (! is_readable($path)) {
119
+        if (!is_readable($path)) {
120 120
             $this->warn('File "' . $path . '" is not readable!');
121 121
 
122 122
             return false;
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             $key = $text['key'];
144 144
 
145 145
             foreach ($text['texts'] as $lang => $value) {
146
-                if (! empty($this->langs) && ! in_array($lang, $this->langs)) {
146
+                if (!empty($this->langs) && !in_array($lang, $this->langs)) {
147 147
                     continue;
148 148
                 }
149 149
 
Please login to merge, or discard this patch.