Skip to content

Commit b4518a7

Browse files
committed
Better naming
1 parent 63e4977 commit b4518a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ViewModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function items(): Collection
6363
return $this->shouldIgnore($method->getName());
6464
})
6565
->mapWithKeys(function (ReflectionMethod $method) {
66-
return [$method->getName() => $this->createVariable($method)];
66+
return [$method->getName() => $this->createVariableFromMethod($method)];
6767
});
6868

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

90-
protected function createVariable(ReflectionMethod $method)
90+
protected function createVariableFromMethod(ReflectionMethod $method)
9191
{
9292
if ($method->getNumberOfParameters() === 0) {
9393
return $this->{$method->getName()}();

0 commit comments

Comments
 (0)