File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,9 @@ class Make extends Processor
21
21
22
22
public function handle (): void
23
23
{
24
- $ this ->notification ->task ('Creating an operation ' , fn () => $ this ->run ());
25
- }
26
-
27
- protected function run (): void
28
- {
29
- $ name = $ this ->getName ();
30
- $ path = $ this ->getPath ();
24
+ $ pathWithName = $ this ->getPath ().$ this ->getName ();
31
25
32
- $ this ->create ( $ path . ' / ' . $ name );
26
+ $ this ->notification -> task ( ' Creating an operation [ ' . $ pathWithName . ' ] ' , fn () => $ this -> create ( $ pathWithName ) );
33
27
}
34
28
35
29
protected function create (string $ path ): void
@@ -59,6 +53,7 @@ protected function getFilename(string $branch): string
59
53
->prepend ($ this ->getTime ())
60
54
->finish ('.php ' )
61
55
->prepend ($ directory . '/ ' )
56
+ ->ltrim ('./ ' )
62
57
->toString ();
63
58
}
64
59
You can’t perform that action at this time.
0 commit comments