Skip to content

Commit

Permalink
refactor: rename method name
Browse files Browse the repository at this point in the history
It does not return anything.
  • Loading branch information
kenjis committed Jan 29, 2023
1 parent 0afa8a4 commit 4d73ea1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions system/Debug/Toolbar/Collectors/Views.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Views extends BaseCollector
*/
protected $views = [];

private function getViewer(): void
private function initViewer(): void
{
$this->viewer ??= Services::renderer();
}
Expand All @@ -84,7 +84,7 @@ private function getViewer(): void
*/
protected function formatTimelineData(): array
{
$this->getViewer();
$this->initViewer();

$data = [];

Expand Down Expand Up @@ -120,7 +120,7 @@ protected function formatTimelineData(): array
*/
public function getVarData(): array
{
$this->getViewer();
$this->initViewer();

return [
'View Data' => $this->viewer->getData(),
Expand All @@ -132,7 +132,7 @@ public function getVarData(): array
*/
public function getBadgeValue(): int
{
$this->getViewer();
$this->initViewer();

return count($this->viewer->getPerformanceData());
}
Expand Down

0 comments on commit 4d73ea1

Please sign in to comment.