src/Event/LinkScannerCommandEventListener.php
public function scanCompleted(Event $event, $startTime, $endTime, ResultScan $ResultScan)
    {
        if ($this->args->getOption('verbose')) {
            $this->io->hr();
        }

        $endTime = new Time($endTime);
        $elapsedTime = $endTime->diffForHumans(new Time($startTime), true);

        $this->io->out(__d('link-scanner', 'Scan completed at {0}', $endTime->i18nFormat('yyyy-MM-dd HH:mm:ss')));
        $this->io->out(__d('link-scanner', 'Elapsed time: {0}', $elapsedTime));
        $this->io->out(__d('link-scanner', 'Total scanned links: {0}', $ResultScan->count()));

        if ($this->args->getOption('verbose')) {
            $this->io->hr();
        }

        return true;
    }
public function scanCompleted(Event $event, $startTime, $endTime, ResultScan $ResultScan)
    {
        if ($this->args->getOption('verbose')) {
            $this->io->hr();
        }

        $endTime = new Time($endTime);
        $elapsedTime = $endTime->diffForHumans(new Time($startTime), true);

        $this->io->out(__d('link-scanner', 'Scan completed at {0}', $endTime->i18nFormat('yyyy-MM-dd HH:mm:ss')));
        $this->io->out(__d('link-scanner', 'Elapsed time: {0}', $elapsedTime));
        $this->io->out(__d('link-scanner', 'Total scanned links: {0}', $ResultScan->count()));

        if ($this->args->getOption('verbose')) {
            $this->io->hr();
        }

        return true;
    }
public function scanCompleted ( Event $ event , $ startTime , $ endTime , ResultScan $ ResultScan ) { if ( $ this -> args -> getOption ( 'verbose' ) ) { $ this -> io -> hr ( ) ; } $ endTime = new Time ( $ endTime ) ; $ elapsedTime = $ endTime -> diffForHumans ( new Time ( $ startTime ) , true ) ; $ this -> io -> out ( __d ( 'link-scanner' , 'Scan completed at {0}' , $ endTime -> i18nFormat ( 'yyyy-MM-dd HH:mm:ss' ) ) ) ; $ this -> io -> out ( __d ( 'link-scanner' , 'Elapsed time: {0}' , $ elapsedTime ) ) ; $ this -> io -> out ( __d ( 'link-scanner' , 'Total scanned links: {0}' , $ ResultScan -> count ( ) ) ) ; if ( $ this -> args -> getOption ( 'verbose' ) ) { $ this -> io -> hr ( ) ; } return true ; }
`LinkScanner.scanCompleted` event
@param Event $event An `Event` instance
@param int $startTime Start time
@param int $endTime End time
@param ResultScan $ResultScan A `ResultScan` instance
@return bool
@uses $args
@uses $io
LinkScanner . scanCompleted event