src/Event/LinkScannerCommandEventListener.php
public function afterScanUrl(Event $event, Response $response)
    {
        if (!$this->args->getOption('verbose')) {
            return true;
        }

        $method = $response->isOk() ? 'success' : ($response->isRedirect() ? 'warning' : 'error');
        $message = $response->isOk() ? __d('link-scanner', 'OK') : (string)$response->getStatusCode();
        call_user_func([$this->io, $method], $message);

        return true;
    }
public function afterScanUrl(Event $event, Response $response)
    {
        if (!$this->args->getOption('verbose')) {
            return true;
        }

        $method = $response->isOk() ? 'success' : ($response->isRedirect() ? 'warning' : 'error');
        $message = $response->isOk() ? __d('link-scanner', 'OK') : (string)$response->getStatusCode();
        call_user_func([$this->io, $method], $message);

        return true;
    }
public function afterScanUrl ( Event $ event , Response $ response ) { if ( ! $ this -> args -> getOption ( 'verbose' ) ) { return true ; } $ method = $ response -> isOk ( ) ? 'success' : ( $ response -> isRedirect ( ) ? 'warning' : 'error' ) ; $ message = $ response -> isOk ( ) ? __d ( 'link-scanner' , 'OK' ) : ( string ) $ response -> getStatusCode ( ) ; call_user_func ( [ $ this -> io , $ method ] , $ message ) ; return true ; }
`LinkScanner.afterScanUrl` event
@param Event $event An `Event` instance
@param Response $response A `Response` instance
@return bool
@uses $args
@uses $io
LinkScanner . afterScanUrl event