Test Setup Failed
Pull Request — master (#1259)
by
unknown
13:51 queued 07:10
created
app/Console/TranslationsExportCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@  discard block
 block discarded – undo
24 24
         $locales = config('chief.locales');
25 25
         $locale = $this->argument('locale');
26 26
 
27
-        if(! in_array($locale, $locales)) {
28
-            throw new \InvalidArgumentException('Passed locale ' . $locale .' is not found as Chief locale. Available locales are ' . implode(',', $locales));
27
+        if (!in_array($locale, $locales)) {
28
+            throw new \InvalidArgumentException('Passed locale '.$locale.' is not found as Chief locale. Available locales are '.implode(',', $locales));
29 29
         }
30 30
 
31 31
         $targetLocales = $locales;
32 32
         unset($targetLocales[array_search($locale, $targetLocales)]);
33 33
 
34
-        if($this->option('target')) {
34
+        if ($this->option('target')) {
35 35
             $targetLocales = explode(',', $this->option('target'));
36 36
         }
37 37
 
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
     {
50 50
         return UrlRecord::allOnlineModels($locale)
51 51
             // In case the url is not found or present for given locale.
52
-            ->reject(function (Visitable $model) use ($locale) {
53
-                return ! $model->url($locale);
52
+            ->reject(function(Visitable $model) use ($locale) {
53
+                return !$model->url($locale);
54 54
             });
55 55
     }
56 56
 }
Please login to merge, or discard this patch.