Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Nov 24, 2023
1 parent bd4f154 commit 352ee91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Commands/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ abstract class GeneratorCommand extends \Illuminate\Console\GeneratorCommand imp
*
* @return void
*/
#[\Override]
public function __construct(Filesystem $files)
{
parent::__construct($files);
Expand All @@ -35,6 +36,7 @@ public function __construct(Filesystem $files)
*
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
#[\Override]
public function handle()
{
return $this->generateCode() ? self::SUCCESS : self::FAILURE;
Expand All @@ -46,6 +48,7 @@ public function handle()
* @param string $name
* @return string
*/
#[\Override]
protected function getPath($name)
{
return $this->getPathUsingCanvas($name);
Expand All @@ -56,6 +59,7 @@ protected function getPath($name)
*
* @return string
*/
#[\Override]
protected function qualifyModel(string $model)
{
return $this->qualifyModelUsingCanvas($model);
Expand All @@ -66,6 +70,7 @@ protected function qualifyModel(string $model)
*
* @return string
*/
#[\Override]
protected function rootNamespace()
{
return $this->rootNamespaceUsingCanvas();
Expand All @@ -76,6 +81,7 @@ protected function rootNamespace()
*
* @return string|null
*/
#[\Override]
protected function userProviderModel()
{
return $this->userProviderModelUsingCanvas();
Expand All @@ -86,6 +92,7 @@ protected function userProviderModel()
*
* @return string
*/
#[\Override]
protected function viewPath($path = '')
{
return $this->viewPathUsingCanvas($path);
Expand All @@ -96,6 +103,7 @@ protected function viewPath($path = '')
*
* @return array<int, string>
*/
#[\Override]
protected function possibleModels()
{
return $this->possibleModelsUsingCanvas();
Expand All @@ -106,6 +114,7 @@ protected function possibleModels()
*
* @return array<int, string>
*/
#[\Override]
protected function possibleEvents()
{
return $this->possibleEventsUsingCanvas();
Expand Down
3 changes: 3 additions & 0 deletions src/Commands/MigrationGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ abstract class MigrationGeneratorCommand extends \Illuminate\Console\MigrationGe
*
* @return void
*/
#[\Override]
public function __construct(Filesystem $files, Composer $composer)
{
parent::__construct($files, $composer);
Expand All @@ -32,6 +33,7 @@ public function __construct(Filesystem $files, Composer $composer)
* @param string $table
* @return string
*/
#[\Override]
protected function createBaseMigration($table)
{
return $this->createBaseMigrationUsingCanvas($table);
Expand All @@ -43,6 +45,7 @@ protected function createBaseMigration($table)
* @param string $table
* @return bool
*/
#[\Override]
protected function migrationExists($table)
{
return $this->migrationExistsUsingCanvas($table);
Expand Down

0 comments on commit 352ee91

Please sign in to comment.