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
Pull Request — main (#205)
by
unknown
18s
created
src/Console/Commands/CrudBackpackCommand.php 1 patch
Spacing   +11 added lines, -11 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
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
         $url = Str::of(config('app.url'))->finish('/')
82 82
         ->append(
83 83
         (!empty(config('backpack.base.route_prefix'))
84
-            ? config('backpack.base.route_prefix') . '/'
85
-            : '') . $nameKebab
84
+            ? config('backpack.base.route_prefix').'/'
85
+            : '').$nameKebab
86 86
         );
87 87
 
88 88
         $this->newLine();
@@ -97,24 +97,24 @@  discard block
 block discarded – undo
97 97
      */
98 98
     private function handleValidationOption()
99 99
     {
100
-        $options = ['request', 'array', 'field'];
100
+        $options = [ 'request', 'array', 'field' ];
101 101
 
102 102
         // Validate validation option
103 103
         $validation = $this->option('validation');
104 104
 
105
-        if (! $validation) {
105
+        if (!$validation) {
106 106
             $validation = $this->askHint(
107 107
                 'How would you like to define your validation rules, for the Create and Update operations?', [
108 108
                     'More info at <fg=blue>https://backpackforlaravel.com/docs/5.x/crud-operation-create#validation</>',
109 109
                     'Valid options are <fg=blue>request</>, <fg=blue>array</> or <fg=blue>field</>',
110
-                ], $options[0]);
110
+                ], $options[ 0 ]);
111 111
 
112
-            if (! $this->option('no-interaction')) {
112
+            if (!$this->option('no-interaction')) {
113 113
                 $this->deleteLines(5);
114 114
             }
115 115
         }
116 116
 
117
-        if (! in_array($validation, $options)) {
117
+        if (!in_array($validation, $options)) {
118 118
             $this->errorBlock("The validation must be request, array or field. '$validation' is not valid.");
119 119
 
120 120
             return false;
Please login to merge, or discard this patch.