Skip to content

Commit 4d73ea1

Browse files
committed
refactor: rename method name
It does not return anything.
1 parent 0afa8a4 commit 4d73ea1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

system/Debug/Toolbar/Collectors/Views.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Views extends BaseCollector
7373
*/
7474
protected $views = [];
7575

76-
private function getViewer(): void
76+
private function initViewer(): void
7777
{
7878
$this->viewer ??= Services::renderer();
7979
}
@@ -84,7 +84,7 @@ private function getViewer(): void
8484
*/
8585
protected function formatTimelineData(): array
8686
{
87-
$this->getViewer();
87+
$this->initViewer();
8888

8989
$data = [];
9090

@@ -120,7 +120,7 @@ protected function formatTimelineData(): array
120120
*/
121121
public function getVarData(): array
122122
{
123-
$this->getViewer();
123+
$this->initViewer();
124124

125125
return [
126126
'View Data' => $this->viewer->getData(),
@@ -132,7 +132,7 @@ public function getVarData(): array
132132
*/
133133
public function getBadgeValue(): int
134134
{
135-
$this->getViewer();
135+
$this->initViewer();
136136

137137
return count($this->viewer->getPerformanceData());
138138
}

0 commit comments

Comments
 (0)