src/Visithor/Executor/Executor.php
protected function executeUrl(
        ClientInterface $client,
        Url $url,
        RendererInterface $renderer,
        OutputInterface $output
    ) {
        $resultHTTPCode = $client->getResponseHTTPCode($url);
        $resultExecution = in_array(
            $resultHTTPCode,
            $url->getAcceptableHttpCodes()
        )
            ? 0
            : 1;

        $renderer->render(
            $output,
            $url,
            $resultHTTPCode,
            (0 === $resultExecution)
        );

        return $resultExecution;
    }
protected function executeUrl(
        ClientInterface $client,
        Url $url,
        RendererInterface $renderer,
        OutputInterface $output
    ) {
        $resultHTTPCode = $client->getResponseHTTPCode($url);
        $resultExecution = in_array(
            $resultHTTPCode,
            $url->getAcceptableHttpCodes()
        )
            ? 0
            : 1;

        $renderer->render(
            $output,
            $url,
            $resultHTTPCode,
            (0 === $resultExecution)
        );

        return $resultExecution;
    }
protected function executeUrl ( ClientInterface $ client , Url $ url , RendererInterface $ renderer , OutputInterface $ output ) { $ resultHTTPCode = $ client -> getResponseHTTPCode ( $ url ) ; $ resultExecution = in_array ( $ resultHTTPCode , $ url -> getAcceptableHttpCodes ( ) ) ? 0 : 1 ; $ renderer -> render ( $ output , $ url , $ resultHTTPCode , ( 0 === $ resultExecution ) ) ; return $ resultExecution ; }
Executes an URL and render the result given a renderer.

If the url is executed as expected, then the result of the operation will
be 0. Otherwise, the result will be 1.

@param ClientInterface   $client   Client
@param Url               $url      Url
@param RendererInterface $renderer Renderer
@param OutputInterface   $output   Output

@return boolean Result of the execution
Executes an URL and render the result given a renderer .