public function iAmPrompted($prompt, $site, $url = "https://[[dashboard_host]]/") { echo $prompt . PHP_EOL; echo 'Then press any key.'; $site = $this->replacePlaceholders($site); $site_info = $this->iGetInfoForTheSite($site, $return_hash = true); $url = $this->replacePlaceholders($url, $site_info); $this->openInBrowser($url); $line = trim(fgets(STDIN)); }