Passed
Push — develop ( 629c3a...e7c784 )
by nguereza
03:51
created
src/Migration/Seed/Command/SeedCreateCommand.php 1 patch
Switch Indentation   -19 removed lines patch added patch discarded remove patch
@@ -157,22 +157,3 @@
 block discarded – undo
157 157
     private function getTemplateClass(): string
158 158
     {
159 159
         return <<<EOF
160
-        <?php
161
-        declare(strict_types=1);
162
-        
163
-        namespace Platine\Framework\Migration\Seed;
164
-
165
-        use Platine\Framework\Migration\Seed\AbstractSeed;
166
-
167
-        class %classname% extends AbstractSeed
168
-        {
169
-
170
-            public function run(): void
171
-            {
172
-              //Action when run the seed
173
-
174
-            }
175
-        }
176
-        EOF;
177
-    }
178
-}
Please login to merge, or discard this patch.
src/Migration/Command/MigrationCreateCommand.php 1 patch
Switch Indentation   -25 removed lines patch added patch discarded remove patch
@@ -161,28 +161,3 @@
 block discarded – undo
161 161
     private function getTemplateClass(): string
162 162
     {
163 163
         return <<<EOF
164
-        <?php
165
-        declare(strict_types=1);
166
-        
167
-        namespace Platine\Framework\Migration;
168
-
169
-        use Platine\Framework\Migration\AbstractMigration;
170
-
171
-        class %classname% extends AbstractMigration
172
-        {
173
-
174
-            public function up(): void
175
-            {
176
-              //Action when migrate up
177
-
178
-            }
179
-
180
-            public function down(): void
181
-            {
182
-              //Action when migrate down
183
-
184
-            }
185
-        }
186
-        EOF;
187
-    }
188
-}
Please login to merge, or discard this patch.
src/Migration/Seed/Command/SeedCreateDbCommand.php 1 patch
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -257,6 +257,4 @@
 block discarded – undo
257 257
         );
258 258
         $export = join(PHP_EOL, array_filter(['['] + $array));
259 259
         
260
-        return $export;
261
-    }
262
-}
260
+        return $export
263 261
\ No newline at end of file
Please login to merge, or discard this patch.
src/Console/Command/MakeListenerCommand.php 1 patch
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,6 +146,4 @@
 block discarded – undo
146 146
      */
147 147
     protected function getUsesContent(): string
148 148
     {
149
-        return $this->getUsesTemplate($this->eventClass);
150
-    }
151
-}
149
+        return $this->getUsesTemplate($this->eventClass
152 150
\ No newline at end of file
Please login to merge, or discard this patch.
src/Console/Command/MakeValidatorCommand.php 1 patch
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -257,6 +257,4 @@
 block discarded – undo
257 257
     {
258 258
         $paramName = basename($this->paramClass);
259 259
 
260
-        return str_replace('%param_class%', $paramName, $content);
261
-    }
262
-}
260
+        return str_replace('%param_class%', $paramName, $content
263 261
\ No newline at end of file
Please login to merge, or discard this patch.
src/Console/Command/MakeActionCommand.php 1 patch
Switch Indentation   -33 removed lines patch added patch discarded remove patch
@@ -120,36 +120,3 @@
 block discarded – undo
120 120
     public function getClassTemplate(): string
121 121
     {
122 122
         return <<<EOF
123
-        <?php
124
-        
125
-        declare(strict_types=1);
126
-        
127
-        namespace %namespace%;
128
-        
129
-        use Platine\Http\Handler\RequestHandlerInterface;
130
-        use Platine\Http\ResponseInterface;
131
-        use Platine\Http\ServerRequestInterface;
132
-        %uses%
133
-
134
-        /**
135
-        * @class %classname%
136
-        * @package %namespace%
137
-        */
138
-        class %classname% implements RequestHandlerInterface
139
-        {
140
-            
141
-            %properties%
142
-        
143
-            %constructor%
144
-        
145
-            /**
146
-            * {@inheritdoc}
147
-            */
148
-            public function handle(ServerRequestInterface \$request): ResponseInterface
149
-            {
150
-            }
151
-        }
152
-        
153
-        EOF;
154
-    }
155
-}
Please login to merge, or discard this patch.
src/Console/Command/MakeMiddlewareCommand.php 1 patch
Switch Indentation   -41 removed lines patch added patch discarded remove patch
@@ -82,44 +82,3 @@
 block discarded – undo
82 82
     public function getClassTemplate(): string
83 83
     {
84 84
         return <<<EOF
85
-        <?php
86
-        
87
-        declare(strict_types=1);
88
-        
89
-        namespace %namespace%;
90
-        
91
-        use Platine\Http\Handler\MiddlewareInterface;
92
-        use Platine\Http\Handler\RequestHandlerInterface;
93
-        use Platine\Http\ResponseInterface;
94
-        use Platine\Http\ServerRequestInterface;
95
-        %uses%
96
-
97
-        /**
98
-        * @class %classname%
99
-        * @package %namespace%
100
-        */
101
-        class %classname% implements MiddlewareInterface
102
-        {
103
-            /**
104
-            * {@inheritdoc}
105
-            */
106
-           public function process(
107
-               ServerRequestInterface \$request,
108
-               RequestHandlerInterface \$handler
109
-           ): ResponseInterface {
110
-               
111
-               return \$handler->handle(\$request);
112
-           }
113
-        }
114
-        
115
-        EOF;
116
-    }
117
-
118
-    /**
119
-     * {@inheritdoc}
120
-     */
121
-    protected function getUsesContent(): string
122
-    {
123
-        return '';
124
-    }
125
-}
Please login to merge, or discard this patch.
src/Console/Command/MakeProviderCommand.php 1 patch
Switch Indentation   +1 added lines, -10 removed lines patch added patch discarded remove patch
@@ -203,13 +203,4 @@
 block discarded – undo
203 203
      */
204 204
     protected function getUsesContent(): string
205 205
     {
206
-        if (!$this->addRoutes) {
207
-            return '';
208
-        }
209
-
210
-        return <<<EOF
211
-        use Platine\Route\Router; 
212
-        
213
-        EOF;
214
-    }
215
-}
206
+        if (!$this->addRoutes
216 207
\ No newline at end of file
Please login to merge, or discard this patch.
src/Console/Command/MakeEntityCommand.php 1 patch
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -186,6 +186,4 @@
 block discarded – undo
186 186
         EOF;
187 187
         }
188 188
 
189
-        return str_replace('%mapper_body%', $result, $content);
190
-    }
191
-}
189
+        return str_replace('%mapper_body%', $result, $content
192 190
\ No newline at end of file
Please login to merge, or discard this patch.