Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
nguereza-tony committed Sep 17, 2023
1 parent 67d5d0b commit 73cf9ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Console/Command/MakeFormParamCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ public function fromEntity(Entity \$entity): self
EOF;
}

$template = (string) str_replace('%from_entity%', $result, $content);

return str_replace('%template_entity%', $templateEntity, $template);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Console/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function interact(Reader $reader, Writer $writer): void

$this->className = $name;
}

/**
* Return the base class name
* @param string|object $fullClassName
Expand All @@ -189,7 +189,7 @@ public function getClassBaseName($fullClassName): string
}

$temp = explode('\\', $fullClassName);

return end($temp);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Console/Command/MakeActionCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testExecuteDefault(): void
$o->bind($consoleApp);
$o->parse(['platine', $actionName]);
$this->assertEquals('make:action', $o->getName());

// Only to coverage tests
$this->assertEquals('MakeActionCommandTest', $o->getClassBaseName($this));
$this->assertEquals(stdClass::class, $o->getClassBaseName(stdClass::class));
Expand Down

0 comments on commit 73cf9ac

Please sign in to comment.