@@ -59,7 +59,7 @@ protected function configure(): void
5959 ->setHelp (sprintf (
6060 '%sCreates a new database migration%s ' ,
6161 PHP_EOL ,
62- PHP_EOL
62+ PHP_EOL ,
6363 ));
6464
6565 // An alternative template.
@@ -127,7 +127,7 @@ protected function getMigrationPath(InputInterface $input, OutputInterface $outp
127127 throw new Exception (
128128 'You probably used curly braces to define migration path in your Phinx configuration file, ' .
129129 'but no directories have been matched using this pattern. ' .
130- 'You need to create a migration directory manually. '
130+ 'You need to create a migration directory manually. ' ,
131131 );
132132 }
133133
@@ -179,7 +179,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
179179 if ($ className !== null && in_array (strtolower ($ className ), $ this ->keywords )) {
180180 throw new InvalidArgumentException (sprintf (
181181 'The migration class name "%s" is a reserved PHP keyword. Please choose a different class name. ' ,
182- $ className
182+ $ className,
183183 ));
184184 }
185185
@@ -195,7 +195,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
195195 if (!Util::isValidPhinxClassName ($ className )) {
196196 throw new InvalidArgumentException (sprintf (
197197 'The migration class name "%s" is invalid. Please use CamelCase format. ' ,
198- $ className
198+ $ className,
199199 ));
200200 }
201201
@@ -207,7 +207,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
207207 throw new InvalidArgumentException (sprintf (
208208 'The migration class name "%s%s" already exists ' ,
209209 $ namespace ? $ namespace . '\\' : '' ,
210- $ className
210+ $ className,
211211 ));
212212 }
213213
@@ -216,7 +216,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
216216 if (is_file ($ filePath )) {
217217 throw new InvalidArgumentException (sprintf (
218218 'The file "%s" already exists ' ,
219- $ filePath
219+ $ filePath,
220220 ));
221221 }
222222
@@ -253,7 +253,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
253253 if ($ altTemplate && !is_file ($ altTemplate )) {
254254 throw new InvalidArgumentException (sprintf (
255255 'The alternative template file "%s" does not exist ' ,
256- $ altTemplate
256+ $ altTemplate,
257257 ));
258258 }
259259
@@ -267,12 +267,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
267267 throw new InvalidArgumentException (sprintf (
268268 'The class "%s" via the alias "%s" does not exist ' ,
269269 $ aliasedClassName ,
270- $ creationClassName
270+ $ creationClassName,
271271 ));
272272 } elseif (!$ aliasedClassName ) {
273273 throw new InvalidArgumentException (sprintf (
274274 'The class "%s" does not exist ' ,
275- $ creationClassName
275+ $ creationClassName,
276276 ));
277277 }
278278 }
@@ -282,14 +282,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
282282 throw new InvalidArgumentException (sprintf (
283283 'The class "%s" does not implement the required interface "%s" ' ,
284284 $ creationClassName ,
285- self ::CREATION_INTERFACE
285+ self ::CREATION_INTERFACE ,
286286 ));
287287 } elseif ($ aliasedClassName && !is_subclass_of ($ aliasedClassName , self ::CREATION_INTERFACE )) {
288288 throw new InvalidArgumentException (sprintf (
289289 'The class "%s" via the alias "%s" does not implement the required interface "%s" ' ,
290290 $ aliasedClassName ,
291291 $ creationClassName ,
292- self ::CREATION_INTERFACE
292+ self ::CREATION_INTERFACE ,
293293 ));
294294 }
295295 }
@@ -321,7 +321,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
321321 if (file_put_contents ($ filePath , $ contents ) === false ) {
322322 throw new RuntimeException (sprintf (
323323 'The file "%s" could not be written to ' ,
324- $ path
324+ $ path,
325325 ));
326326 }
327327
0 commit comments