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 Sep 1, 2023
1 parent f300b8f commit 0df0067
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/Commands/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public function __construct(Preset $preset)

/**
* Run the console command.
*
* @return int
*/
public function run(InputInterface $input, OutputInterface $output): int
{
Expand Down
11 changes: 2 additions & 9 deletions src/Commands/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ abstract class Generator extends Command implements GeneratesCodeListener, Promp

/**
* The type of class being generated.
*
* @var string
*/
protected string $type;

/**
* The type of file being generated.
*
* @var string
*/
protected string $fileType = 'class';

Expand Down Expand Up @@ -251,14 +247,11 @@ public function generatorName(): string

/**
* Checks whether the given name is reserved.
*
* @param string $name
* @return bool
*/
protected function isReservedName($name)
protected function isReservedName(string $name): bool
{
$name = strtolower($name);

return in_array($name, $this->reservedNames);
return \in_array($name, $this->reservedNames);
}
}

0 comments on commit 0df0067

Please sign in to comment.