private function isOkImageFileName(Element $imageNode): bool {
        $imgSrc = $imageNode->attr('src');

        if (empty($imgSrc)) {
            return false;
        }

        $regex = '@' . implode('|', $this->badFileNames) . '@i';

        if (preg_match($regex, $imgSrc)) {
            return false;
        }

        return true;
    }
private function isOkImageFileName(Element $imageNode): bool {
        $imgSrc = $imageNode->attr('src');

        if (empty($imgSrc)) {
            return false;
        }

        $regex = '@' . implode('|', $this->badFileNames) . '@i';

        if (preg_match($regex, $imgSrc)) {
            return false;
        }

        return true;
    }
private function isOkImageFileName ( Element $ imageNode ) : bool { $ imgSrc = $ imageNode -> attr ( 'src' ) ; if ( empty ( $ imgSrc ) ) { return false ; } $ regex = '@' . implode ( '|' , $ this -> badFileNames ) . '@i' ; if ( preg_match ( $ regex , $ imgSrc ) ) { return false ; } return true ; }
will check the image src against a list of bad image files we know of like buttons, etc...

@param Element $imageNode

@return bool
will check the image src against a list of bad image files we know of like buttons etc ...