diff src/Generator/Route/RouteGenerator.php @ 7:769a17898cc0

Various changes to the generators and replacers - probably mostly just formatting
author luka
date Wed, 18 Oct 2023 21:04:11 -0400
parents b0b2e79ad8e6
children 81a76472ba21
line wrap: on
line diff
--- a/src/Generator/Route/RouteGenerator.php	Thu Oct 12 19:44:22 2023 -0400
+++ b/src/Generator/Route/RouteGenerator.php	Wed Oct 18 21:04:11 2023 -0400
@@ -4,8 +4,6 @@
 
 use Symfony\Component\Console\Attribute\AsCommand;
 use Wizzard\MagicForger\Generator\BaseGenerator;
-use Wizzard\MagicForger\Replacer;
-use Illuminate\Support\Str;
 
 #[AsCommand(name: 'mf:routes')]
 class RouteGenerator extends BaseGenerator
@@ -52,7 +50,8 @@
     /**
      * Resolve the fully-qualified path to the stub.
      *
-     * @param  string  $stub
+     * @param string $stub
+     *
      * @return string
      */
     protected function resolveStubPath($stub)
@@ -74,6 +73,6 @@
      */
     protected function getPath($name = null)
     {
-        return str_replace(['App\\', '\\'], ['app/', '/'], $this->getRouteNamespace() . '/' . $this->routes_name($this->getTableInput()) . '.php');
+        return str_replace(['App\\', '\\'], ['app/', '/'], $this->getRouteNamespace().'/'.$this->routes_name($this->getTableInput()).'.php');
     }
 }