src/Context/SQLHandler.php
private function isNotQuotable($val)
    {
        $keywords = [
            'true',
            'false',
            'null',
            'NOW\(\)',
            'COUNT\(.*\)',
            'MAX\(.*\)',
            '\d+'
        ];

        $keywords = array_merge($keywords, $_SESSION['behat']['GenesisSqlExtension']['notQuotableKeywords']);

        // Check if the val is a keyword
        foreach ($keywords as $keyword) {
            if (preg_match(sprintf('/^%s$/is', $keyword), $val)) {
                return true;
            }
        }

        return false;
    }
private function isNotQuotable($val)
    {
        $keywords = [
            'true',
            'false',
            'null',
            'NOW\(\)',
            'COUNT\(.*\)',
            'MAX\(.*\)',
            '\d+'
        ];

        $keywords = array_merge($keywords, $_SESSION['behat']['GenesisSqlExtension']['notQuotableKeywords']);

        // Check if the val is a keyword
        foreach ($keywords as $keyword) {
            if (preg_match(sprintf('/^%s$/is', $keyword), $val)) {
                return true;
            }
        }

        return false;
    }
private function isNotQuotable ( $ val ) { $ keywords = [ 'true' , 'false' , 'null' , 'NOW\(\)' , 'COUNT\(.*\)' , 'MAX\(.*\)' , '\d+' ] ; $ keywords = array_merge ( $ keywords , $ _SESSION [ 'behat' ] [ 'GenesisSqlExtension' ] [ 'notQuotableKeywords' ] ) ; // Check if the val is a keyword foreach ( $ keywords as $ keyword ) { if ( preg_match ( sprintf ( '/^%s$/is' , $ keyword ) , $ val ) ) { return true ; } } return false ; }
Checks if the value isn't a keyword.
Checks if the value isn t a keyword .