We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -90,7 +90,7 @@  | 
                                                    ||
| 90 | 90 | */  | 
                                                        
| 91 | 91 | protected function getPath($name)  | 
                                                        
| 92 | 92 |      { | 
                                                        
| 93 | -        return $this->laravel['path'].'/../resources/views/'.str_replace('\\', '/', $name).'.blade.php'; | 
                                                        |
| 93 | +        return $this->laravel[ 'path' ].'/../resources/views/'.str_replace('\\', '/', $name).'.blade.php'; | 
                                                        |
| 94 | 94 | }  | 
                                                        
| 95 | 95 | |
| 96 | 96 | /**  | 
                                                        
@@ -88,7 +88,7 @@  | 
                                                    ||
| 88 | 88 | */  | 
                                                        
| 89 | 89 | protected function getPath($name)  | 
                                                        
| 90 | 90 |      { | 
                                                        
| 91 | -        return $this->laravel['path'].'/../config/'.str_replace('\\', '/', $name).'.php'; | 
                                                        |
| 91 | +        return $this->laravel[ 'path' ].'/../config/'.str_replace('\\', '/', $name).'.php'; | 
                                                        |
| 92 | 92 | }  | 
                                                        
| 93 | 93 | |
| 94 | 94 | /**  | 
                                                        
@@ -32,7 +32,7 @@  | 
                                                    ||
| 32 | 32 |          $kebabName = Str::kebab($this->argument('name')); | 
                                                        
| 33 | 33 | |
| 34 | 34 | // Create the ChartController and show output  | 
                                                        
| 35 | -        $this->call('backpack:chart-controller', ['name' => $studlyName]); | 
                                                        |
| 35 | +        $this->call('backpack:chart-controller', [ 'name' => $studlyName ]); | 
                                                        |
| 36 | 36 | |
| 37 | 37 | // Create the chart route  | 
                                                        
| 38 | 38 |          $this->call('backpack:add-custom-route', [ | 
                                                        
@@ -45,7 +45,7 @@  | 
                                                    ||
| 45 | 45 |      { | 
                                                        
| 46 | 46 | $name = str_replace($this->laravel->getNamespace(), '', $name);  | 
                                                        
| 47 | 47 | |
| 48 | -        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'ChartController.php'; | 
                                                        |
| 48 | +        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'ChartController.php'; | 
                                                        |
| 49 | 49 | }  | 
                                                        
| 50 | 50 | |
| 51 | 51 | /**  | 
                                                        
@@ -45,7 +45,7 @@  | 
                                                    ||
| 45 | 45 |      { | 
                                                        
| 46 | 46 | $name = str_replace($this->laravel->getNamespace(), '', $name);  | 
                                                        
| 47 | 47 | |
| 48 | -        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'Operation.php'; | 
                                                        |
| 48 | +        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'Operation.php'; | 
                                                        |
| 49 | 49 | }  | 
                                                        
| 50 | 50 | |
| 51 | 51 | /**  | 
                                                        
@@ -53,7 +53,7 @@ discard block  | 
                                                    ||
| 53 | 53 | // Next, We will check to see if the class already exists. If it does, we don't want  | 
                                                        
| 54 | 54 | // to create the class and overwrite the user's code. So, we will bail out so the  | 
                                                        
| 55 | 55 | // code is untouched. Otherwise, we will continue generating this class' files.  | 
                                                        
| 56 | -        if ((! $this->hasOption('force') || ! $this->option('force')) && $this->alreadyExists($this->getNameInput())) { | 
                                                        |
| 56 | +        if ((!$this->hasOption('force') || !$this->option('force')) && $this->alreadyExists($this->getNameInput())) { | 
                                                        |
| 57 | 57 |              $this->closeProgressBlock('Already existed', 'yellow'); | 
                                                        
| 58 | 58 | |
| 59 | 59 | return false;  | 
                                                        
@@ -79,7 +79,7 @@ discard block  | 
                                                    ||
| 79 | 79 |      { | 
                                                        
| 80 | 80 | $name = str_replace($this->laravel->getNamespace(), '', $name);  | 
                                                        
| 81 | 81 | |
| 82 | -        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'Request.php'; | 
                                                        |
| 82 | +        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'Request.php'; | 
                                                        |
| 83 | 83 | }  | 
                                                        
| 84 | 84 | |
| 85 | 85 | /**  | 
                                                        
@@ -49,15 +49,15 @@  | 
                                                    ||
| 49 | 49 | // Transform last word into plural  | 
                                                        
| 50 | 50 | $lastWord = Arr::last($words);  | 
                                                        
| 51 | 51 | array_pop($words);  | 
                                                        
| 52 | - $words[] = Str::plural($lastWord);  | 
                                                        |
| 52 | + $words[ ] = Str::plural($lastWord);  | 
                                                        |
| 53 | 53 | |
| 54 | - $name = [];  | 
                                                        |
| 54 | + $name = [ ];  | 
                                                        |
| 55 | 55 | |
| 56 | 56 |          foreach ($words as $word) { | 
                                                        
| 57 | 57 |              if ($word === '') { | 
                                                        
| 58 | 58 | continue;  | 
                                                        
| 59 | 59 | }  | 
                                                        
| 60 | - $name[] = count($name) === 0 ? ucfirst($word) : strtolower($word);  | 
                                                        |
| 60 | + $name[ ] = count($name) === 0 ? ucfirst($word) : strtolower($word);  | 
                                                        |
| 61 | 61 | }  | 
                                                        
| 62 | 62 | |
| 63 | 63 |          return implode(' ', $name); | 
                                                        
@@ -61,7 +61,7 @@  | 
                                                    ||
| 61 | 61 | $source = realpath(substr($from, 1));  | 
                                                        
| 62 | 62 | }  | 
                                                        
| 63 | 63 | |
| 64 | -            if (! $source) { | 
                                                        |
| 64 | +            if (!$source) { | 
                                                        |
| 65 | 65 | $this->errorProgressBlock();  | 
                                                        
| 66 | 66 |                  $this->note("$this->type '$from' does not exist!", 'red'); | 
                                                        
| 67 | 67 | $this->newLine();  | 
                                                        
@@ -69,7 +69,7 @@ discard block  | 
                                                    ||
| 69 | 69 | // If no model was found, we will generate the path to the location where this class file  | 
                                                        
| 70 | 70 | // should be written. Then, we will build the class and make the proper replacements on  | 
                                                        
| 71 | 71 | // the stub files so that it gets the correctly formatted namespace and class name.  | 
                                                        
| 72 | -        if (! $existsOnApp && ! $existsOnModels) { | 
                                                        |
| 72 | +        if (!$existsOnApp && !$existsOnModels) { | 
                                                        |
| 73 | 73 | $this->makeDirectory($this->getPath($namespaceModels));  | 
                                                        
| 74 | 74 | |
| 75 | 75 | $this->files->put($this->getPath($namespaceModels), $this->sortImports($this->buildClass($nameTitle)));  | 
                                                        
@@ -99,7 +99,7 @@ discard block  | 
                                                    ||
| 99 | 99 | |
| 100 | 100 | // As the class already exists, we don't want to create the class and overwrite the  | 
                                                        
| 101 | 101 | // user's code. We just make sure it uses CrudTrait. We add that one line.  | 
                                                        
| 102 | -        if (! $this->hasOption('force') || ! $this->option('force')) { | 
                                                        |
| 102 | +        if (!$this->hasOption('force') || !$this->option('force')) { | 
                                                        |
| 103 | 103 |              $this->progressBlock('Adding CrudTrait to the Model'); | 
                                                        
| 104 | 104 | |
| 105 | 105 | $content = Str::of($this->files->get($path));  |