Mercurial > packages > magicforger
diff src/Generator/Requests/UpdateRequestGenerator.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/Requests/UpdateRequestGenerator.php Thu Oct 12 19:44:22 2023 -0400 +++ b/src/Generator/Requests/UpdateRequestGenerator.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:update_request')] class UpdateRequestGenerator 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->getRequestNamespace($this->getTableInput()) . '/' . $this->update_request_name($this->getTableInput()) . '.php'); + return str_replace(['App\\', '\\'], ['app/', '/'], $this->getRequestNamespace($this->getTableInput()).'/'.$this->update_request_name($this->getTableInput()).'.php'); } }
