Skip to content

Commit

Permalink
var rename
Browse files Browse the repository at this point in the history
  • Loading branch information
iLexN committed Nov 26, 2021
1 parent b3b17a2 commit 67ac723
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Release.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ private function setFactory(?ChangeTypeFactoryInterface $changeTypeFactory): Cha
}


private function addChangeList(ChangeType $type, string $description): self
private function addChangeList(ChangeType $changeType, string $description): self
{
$key = $type->value;
$key = $changeType->value;
if (!\array_key_exists($key, $this->changeList)) {
$this->changeList[$key] = $this->changeTypeFactory->create($type);
$this->changeList[$key] = $this->changeTypeFactory->create($changeType);
}

$this->changeList[$key]->add($description);
Expand Down
4 changes: 2 additions & 2 deletions src/Type/ChangeTypeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/
class ChangeTypeFactory implements ChangeTypeFactoryInterface
{
public function create(ChangeType $type): TypeInterface
public function create(ChangeType $changeType): TypeInterface
{
return match ($type) {
return match ($changeType) {
ChangeType::CHANGED => new Changed(),
ChangeType:: DEPRECATED => new Deprecated(),
ChangeType::REMOVED => new Removed(),
Expand Down
2 changes: 1 addition & 1 deletion src/Type/ChangeTypeFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

interface ChangeTypeFactoryInterface
{
public function create(ChangeType $type): TypeInterface;
public function create(ChangeType $changeType): TypeInterface;
}

0 comments on commit 67ac723

Please sign in to comment.