src/Analyzers/TrafficAnalyzer.php
public function validateLine($line)
    {
        $invalidExtensions = [
            '.jpg',
            '.js',
            '.css',
            '.sass',
            '.scss',
            '.png',
            '.svg',
            '.ico',
            '.jpeg',
            '.gif',
            '.mp4',
        ];

        foreach ($invalidExtensions as $needle) {
            if (stristr($line->URL, $needle)) {
                return false;
            }
        }

        if ($line->HeaderUserAgent === 'MissionControlAgent') {
            return false;
        }

        return true;
    }
public function validateLine($line)
    {
        $invalidExtensions = [
            '.jpg',
            '.js',
            '.css',
            '.sass',
            '.scss',
            '.png',
            '.svg',
            '.ico',
            '.jpeg',
            '.gif',
            '.mp4',
        ];

        foreach ($invalidExtensions as $needle) {
            if (stristr($line->URL, $needle)) {
                return false;
            }
        }

        if ($line->HeaderUserAgent === 'MissionControlAgent') {
            return false;
        }

        return true;
    }
public function validateLine ( $ line ) { $ invalidExtensions = [ '.jpg' , '.js' , '.css' , '.sass' , '.scss' , '.png' , '.svg' , '.ico' , '.jpeg' , '.gif' , '.mp4' , ] ; foreach ( $ invalidExtensions as $ needle ) { if ( stristr ( $ line -> URL , $ needle ) ) { return false ; } } if ( $ line -> HeaderUserAgent === 'MissionControlAgent' ) { return false ; } return true ; }
Line object from logs

@param  object $line

@return bool
Line object from logs