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 — when-generating-cruds-use-blad... ( 030c93...7f48ab )
by Cristian
31s
created
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.
src/Console/Commands/PageBackpackCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         $this->progressBlock("Creating view <fg=blue>resources/views/{$filePath}.blade.php</>");
74 74
 
75 75
         // check if the file already exists
76
-        if ((! $this->hasOption('force') || ! $this->option('force')) && $this->alreadyExists($filePath)) {
76
+        if ((!$this->hasOption('force') || !$this->option('force')) && $this->alreadyExists($filePath)) {
77 77
             $this->closeProgressBlock('Already existed', 'yellow');
78 78
 
79 79
             return false;
Please login to merge, or discard this patch.