src/Robo/Commands/Doctor/WebUriCheck.php
protected function checkUriResponse() {
    $site_available = $this->getExecutor()->execute("curl -I --insecure " . $this->drushStatus['uri'])->run()->wasSuccessful();
    if (!$site_available) {
      $this->logProblem(__FUNCTION__, [
        "Did not get a response from {$this->drushStatus['uri']}",
        "Is your *AMP stack running?",
        "Is your /etc/hosts file correctly configured?",
        "Is your web server configured to serve this URI from {$this->drushStatus['root']}?",
        "Is options.uri set correctly in {$this->localSiteDrushYml}?",
      ], 'error');
    }
  }
protected function checkUriResponse() {
    $site_available = $this->getExecutor()->execute("curl -I --insecure " . $this->drushStatus['uri'])->run()->wasSuccessful();
    if (!$site_available) {
      $this->logProblem(__FUNCTION__, [
        "Did not get a response from {$this->drushStatus['uri']}",
        "Is your *AMP stack running?",
        "Is your /etc/hosts file correctly configured?",
        "Is your web server configured to serve this URI from {$this->drushStatus['root']}?",
        "Is options.uri set correctly in {$this->localSiteDrushYml}?",
      ], 'error');
    }
  }
protected function checkUriResponse ( ) { $ site_available = $ this -> getExecutor ( ) -> execute ( "curl -I --insecure " . $ this -> drushStatus [ 'uri' ] ) -> run ( ) -> wasSuccessful ( ) ; if ( ! $ site_available ) { $ this -> logProblem ( __FUNCTION__ , [ "Did not get a response from {$this->drushStatus['uri']}" , "Is your *AMP stack running?" , "Is your /etc/hosts file correctly configured?" , "Is your web server configured to serve this URI from {$this->drushStatus['root']}?" , "Is options.uri set correctly in {$this->localSiteDrushYml}?" , ] , 'error' ) ; } }
Checks that configured URI responds to requests.
Checks that configured URI responds to requests .