From b915d7618e2e036086073ab8e06ac94c13eacc6b Mon Sep 17 00:00:00 2001 From: Yuta Nagamiya Date: Sun, 12 Nov 2023 23:44:39 +0900 Subject: [PATCH] Change method names --- src/UseCases/ScrapeBenchmarksAction.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/UseCases/ScrapeBenchmarksAction.php b/src/UseCases/ScrapeBenchmarksAction.php index e88b935..0e54c7a 100644 --- a/src/UseCases/ScrapeBenchmarksAction.php +++ b/src/UseCases/ScrapeBenchmarksAction.php @@ -25,9 +25,9 @@ public function __invoke(): void $this->authenticator->authenticate($this->client); foreach ($this->holdSetups as $holdSetup) { - $problemUrls = $this->getProblemUrls($holdSetup); + $problemUrls = $this->scrapeProblemUrls($holdSetup); - $problemData = $this->getProblemData($problemUrls); + $problemData = $this->scrapeProblemData($problemUrls); $this->saveProblemData($problemData, $holdSetup); } @@ -36,7 +36,7 @@ public function __invoke(): void /** * @return string[] */ - private function getProblemUrls(HoldSetup $holdSetup): array + private function scrapeProblemUrls(HoldSetup $holdSetup): array { $this->logger->info('Scraping problem URLs...', [ 'boardType' => $holdSetup->getBoardType()->getLabel(), @@ -101,7 +101,7 @@ private function getProblemUrls(HoldSetup $holdSetup): array * * @return \stdClass[] */ - private function getProblemData(array $problemUrls): array + private function scrapeProblemData(array $problemUrls): array { $problemData = []; $problemUrlCount = \count($problemUrls);