Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — main ( 679a8b...6f1c0d )
by Cristian
23s queued 13s
created
Category
src/Console/Commands/ViewBackpackCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Console/Commands/ConfigBackpackCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Console/Commands/ChartBackpackCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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', [
Please login to merge, or discard this patch.
src/Console/Commands/ChartControllerBackpackCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Console/Commands/CrudOperationBackpackCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Console/Commands/CrudRequestBackpackCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Services/BackpackCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,15 +49,15 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Console/Commands/CrudModelBackpackCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/Console/Commands/CrudBackpackCommand.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -47,19 +47,19 @@  discard block
 block discarded – undo
47 47
 
48 48
         // Validate validation option
49 49
         $validation = $this->handleValidationOption();
50
-        if (! $validation) {
50
+        if (!$validation) {
51 51
             return false;
52 52
         }
53 53
 
54 54
         // Create the CRUD Model and show output
55
-        $this->call('backpack:crud-model', ['name' => $name]);
55
+        $this->call('backpack:crud-model', [ 'name' => $name ]);
56 56
 
57 57
         // Create the CRUD Controller and show output
58
-        $this->call('backpack:crud-controller', ['name' => $name, '--validation' => $validation]);
58
+        $this->call('backpack:crud-controller', [ 'name' => $name, '--validation' => $validation ]);
59 59
 
60 60
         // Create the CRUD Request and show output
61 61
         if ($validation === 'request') {
62
-            $this->call('backpack:crud-request', ['name' => $name]);
62
+            $this->call('backpack:crud-request', [ 'name' => $name ]);
63 63
         }
64 64
 
65 65
         // Create the CRUD route
@@ -92,24 +92,24 @@  discard block
 block discarded – undo
92 92
      */
93 93
     private function handleValidationOption()
94 94
     {
95
-        $options = ['request', 'array', 'field'];
95
+        $options = [ 'request', 'array', 'field' ];
96 96
 
97 97
         // Validate validation option
98 98
         $validation = $this->option('validation');
99 99
 
100
-        if (! $validation) {
100
+        if (!$validation) {
101 101
             $validation = $this->askHint(
102 102
                 'How would you like to define your validation rules, for the Create and Update operations?', [
103 103
                     'More info at <fg=blue>https://backpackforlaravel.com/docs/5.x/crud-operation-create#validation</>',
104 104
                     'Valid options are <fg=blue>request</>, <fg=blue>array</> or <fg=blue>field</>',
105
-                ], $options[0]);
105
+                ], $options[ 0 ]);
106 106
 
107
-            if (! $this->option('no-interaction')) {
107
+            if (!$this->option('no-interaction')) {
108 108
                 $this->deleteLines(5);
109 109
             }
110 110
         }
111 111
 
112
-        if (! in_array($validation, $options)) {
112
+        if (!in_array($validation, $options)) {
113 113
             $this->errorBlock("The validation must be request, array or field. '$validation' is not valid.");
114 114
 
115 115
             return false;
Please login to merge, or discard this patch.