Test Failed
Push — main ( b6a81f...639292 )
by ikechukwu
03:50 queued 14s
created
src/Console/Commands/MakeInterfaceCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Symfony\Component\Console\Attribute\AsCommand;
8 8
 use Symfony\Component\Console\Input\InputOption;
9 9
 
10
-#[AsCommand(name: 'make:interfaceclass')]
10
+#[AsCommand(name: 'make:interfaceclass') ]
11 11
 class MakeInterfaceCommand extends GeneratorCommand
12 12
 {
13 13
     /**
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $model = $this->option('model');
54 54
 
55
-        if (! Str::startsWith($model, [
55
+        if (!Str::startsWith($model, [
56 56
             $this->laravel->getNamespace(),
57 57
             'Illuminate',
58 58
             '\\',
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
         }
62 62
 
63 63
         $stub = str_replace(
64
-            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name)
64
+            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name)
65 65
         );
66 66
 
67 67
         return str_replace(
68
-            ['DummyFullModel', '{{ modelNamespace }}'], trim($model, '\\'), $stub
68
+            [ 'DummyFullModel', '{{ modelNamespace }}' ], trim($model, '\\'), $stub
69 69
         );
70 70
     }
71 71
 
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
     protected function getOptions()
128 128
     {
129 129
         return [
130
-            ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the interface already exists'],
131
-            ['model', 'm', InputOption::VALUE_REQUIRED, 'Create a model namespace for this interface'],
130
+            [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the interface already exists' ],
131
+            [ 'model', 'm', InputOption::VALUE_REQUIRED, 'Create a model namespace for this interface' ],
132 132
         ];
133 133
     }
134 134
 }
Please login to merge, or discard this patch.