From 5dbce10ad6207b2829ffbe9163f3cca31df6f802 Mon Sep 17 00:00:00 2001 From: kkamara Date: Sun, 24 Mar 2024 08:25:01 +0000 Subject: [PATCH] Update getInput() to return input --- app/Console/Commands/BrowserScrape.php | 3 ++- storage/app/NewCrawler2024.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/BrowserScrape.php b/app/Console/Commands/BrowserScrape.php index 3eb4098..24b1ec7 100644 --- a/app/Console/Commands/BrowserScrape.php +++ b/app/Console/Commands/BrowserScrape.php @@ -68,11 +68,12 @@ public function __construct() } /** - * @return void + * @return string */ private function getInput() { $words = $this->ask('>>'); $this->info($words); + return $words; } /** diff --git a/storage/app/NewCrawler2024.php b/storage/app/NewCrawler2024.php index 33ea074..cc2cffc 100644 --- a/storage/app/NewCrawler2024.php +++ b/storage/app/NewCrawler2024.php @@ -70,11 +70,12 @@ public function __construct() } /** - * @return void + * @return string */ private function getInput() { $words = $this->ask('>>'); $this->info($words); + return $words; } /**