public function checkPrefixes(array $prefixes)
    {
        if ('' === $this->comment) {
            return false;
        }

        if (empty($prefixes)) {
            return true;
        }

        foreach ($prefixes as $prefix) {
            if (strpos($this->comment, $prefix) === 0) {
                return true;
            }
        }

        return false;
    }
public function checkPrefixes(array $prefixes)
    {
        if ('' === $this->comment) {
            return false;
        }

        if (empty($prefixes)) {
            return true;
        }

        foreach ($prefixes as $prefix) {
            if (strpos($this->comment, $prefix) === 0) {
                return true;
            }
        }

        return false;
    }
public function checkPrefixes ( array $ prefixes ) { if ( '' === $ this -> comment ) { return false ; } if ( empty ( $ prefixes ) ) { return true ; } foreach ( $ prefixes as $ prefix ) { if ( strpos ( $ this -> comment , $ prefix ) === 0 ) { return true ; } } return false ; }
Whether the comment matches the required prefixes.

@param array $prefixes An array of prefixes to check.
@return bool Whether the comment matches the prefixes or not.
Whether the comment matches the required prefixes .