Skip to content

Commit

Permalink
Merge branch '7.x' into 8.x
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 9, 2023
2 parents 2cd3e9f + 648f980 commit ccc86c0
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 15 deletions.
2 changes: 0 additions & 2 deletions src/CodeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ public function setPreset(Presets\Preset $preset)

/**
* Generate code.
*
* @return mixed
*/
public function generateCode(bool $force = false)
{
Expand Down
2 changes: 0 additions & 2 deletions src/Commands/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ protected function initialize(InputInterface $input, OutputInterface $output)

/**
* Run the console command.
*
* @return int
*/
public function run(InputInterface $input, OutputInterface $output): int
{
Expand Down
5 changes: 1 addition & 4 deletions src/Commands/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,12 @@ public function generatorName(): string

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

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

/**
Expand Down
4 changes: 0 additions & 4 deletions src/Contracts/GeneratesCodeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ interface GeneratesCodeListener
{
/**
* Code already exists.
*
* @return mixed
*/
public function codeAlreadyExists(string $className): mixed;

Expand All @@ -18,8 +16,6 @@ public function generatingCode(string $stub, string $className): string;

/**
* Code successfully generated.
*
* @return mixed
*/
public function codeHasBeenGenerated(string $className): mixed;

Expand Down
2 changes: 0 additions & 2 deletions src/GeneratesCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ public function __construct(

/**
* Execute generates code processor.
*
* @return mixed
*/
public function __invoke(bool $force = false)

Check failure on line 38 in src/GeneratesCode.php

View workflow job for this annotation

GitHub Actions / PHP8.1 on ubuntu-latest (highest)

Method Orchestra\Canvas\Core\GeneratesCode::__invoke() has no return type specified.
{
Expand Down
1 change: 0 additions & 1 deletion src/Presets/Preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public function is(string $name): bool
* Get configuration.
*
* @param mixed|null $default
* @return mixed
*/
public function config(?string $key = null, $default = null)

Check failure on line 37 in src/Presets/Preset.php

View workflow job for this annotation

GitHub Actions / PHP8.1 on ubuntu-latest (highest)

Method Orchestra\Canvas\Core\Presets\Preset::config() has no return type specified.
{
Expand Down

0 comments on commit ccc86c0

Please sign in to comment.