We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c83b5fc commit 08b47feCopy full SHA for 08b47fe
src/Processors/Make.php
@@ -21,15 +21,9 @@ class Make extends Processor
21
22
public function handle(): void
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();
+ $pathWithName = $this->getPath().$this->getName();
31
32
- $this->create($path . '/' . $name);
+ $this->notification->task('Creating an operation ['.$pathWithName.']', fn () => $this->create($pathWithName));
33
}
34
35
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
0 commit comments