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
2121
2222 public function handle (): void
2323 {
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 ();
3125
32- $ this ->create ( $ path . ' / ' . $ name );
26+ $ this ->notification -> task ( ' Creating an operation [ ' . $ pathWithName . ' ] ' , fn () => $ this -> create ( $ pathWithName ) );
3327 }
3428
3529 protected function create (string $ path ): void
@@ -59,6 +53,7 @@ protected function getFilename(string $branch): string
5953 ->prepend ($ this ->getTime ())
6054 ->finish ('.php ' )
6155 ->prepend ($ directory . '/ ' )
56+ ->ltrim ('./ ' )
6257 ->toString ();
6358 }
6459
You can’t perform that action at this time.
0 commit comments