@@ -24,14 +24,14 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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 | }  |