private function isInvalidLogDate($file)
    {
        $pattern = $this->filesystem->getPattern();

        return ((bool) preg_match("/{$pattern}/", $file, $matches)) === false;
    }
private function isInvalidLogDate($file)
    {
        $pattern = $this->filesystem->getPattern();

        return ((bool) preg_match("/{$pattern}/", $file, $matches)) === false;
    }
private function isInvalidLogDate ( $ file ) { $ pattern = $ this -> filesystem -> getPattern ( ) ; return ( ( bool ) preg_match ( "/{$pattern}/" , $ file , $ matches ) ) === false ; }
Check the date of the log file.

@param  string  $file

@return bool
Check the date of the log file .