Skip to content

Commit

Permalink
Rename method.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Mar 2, 2020
1 parent f7a2f62 commit 496f566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GeneratesCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected function makeDirectory(string $path): string
*/
protected function buildClass(string $name): string
{
$stub = $this->files->get($this->getGeneratorStubFile());
$stub = $this->files->get($this->getListenerStubFile());

return $this->replaceClass(
$this->replaceNamespace($stub, $name), $name
Expand All @@ -150,7 +150,7 @@ protected function buildClass(string $name): string
/**
* Get generator stub file.
*/
protected function getGeneratorStubFile(): string
protected function getListenerStubFile(): string
{
if (\is_null($publishedStubFile = $this->listener->getPublishedStubFileName())) {
return $this->listener->getStubFile();
Expand Down

0 comments on commit 496f566

Please sign in to comment.