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 Aug 16, 2023
1 parent 524e3b5 commit 24d1b55
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/Commands/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ public function codeHasBeenGenerated(string $className): int
}

/**
* Run after Code successfully generated.
* Code successfully generated.
*
* @return void
*/
public function afterCodeHasBeenGenerated(string $className, string $path): int
public function afterCodeHasBeenGenerated(string $className, string $path): void
{
if (\in_array(CreatesMatchingTest::class, class_uses_recursive($this))) {
/** @phpstan-ignore-next-line */
Expand Down
5 changes: 5 additions & 0 deletions src/Contracts/GeneratesCodeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public function codeAlreadyExists(string $className): mixed;
*/
public function codeHasBeenGenerated(string $className): mixed;

/**
* Code successfully generated.
*/
public function afterCodeHasBeenGenerated(string $className, string $path): void;

/**
* Get the stub file for the generator.
*/
Expand Down
1 change: 0 additions & 1 deletion src/GeneratesCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Orchestra\Canvas\Core;

use Illuminate\Console\Concerns\CreatesMatchingTest;
use Illuminate\Foundation\Auth\User;
use Illuminate\Support\Str;

Expand Down

0 comments on commit 24d1b55

Please sign in to comment.