Skip to content

Commit

Permalink
Better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Sep 12, 2018
1 parent 63e4977 commit b4518a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ViewModel.php
Expand Up @@ -63,7 +63,7 @@ protected function items(): Collection
return $this->shouldIgnore($method->getName());
})
->mapWithKeys(function (ReflectionMethod $method) {
return [$method->getName() => $this->createVariable($method)];
return [$method->getName() => $this->createVariableFromMethod($method)];
});

return $publicProperties->merge($publicMethods);
Expand All @@ -87,7 +87,7 @@ protected function ignoredMethods(): array
], $this->ignore);
}

protected function createVariable(ReflectionMethod $method)
protected function createVariableFromMethod(ReflectionMethod $method)
{
if ($method->getNumberOfParameters() === 0) {
return $this->{$method->getName()}();
Expand Down

0 comments on commit b4518a7

Please sign in to comment.