src/Bridge/Doctrine/Orm/Filter/SearchFilter.php
protected function createWrapCase(bool $caseSensitive): \Closure
    {
        return function (string $expr) use ($caseSensitive): string {
            if ($caseSensitive) {
                return $expr;
            }

            return sprintf('LOWER(%s)', $expr);
        };
    }
protected function createWrapCase(bool $caseSensitive): \Closure
    {
        return function (string $expr) use ($caseSensitive): string {
            if ($caseSensitive) {
                return $expr;
            }

            return sprintf('LOWER(%s)', $expr);
        };
    }
protected function createWrapCase ( bool $ caseSensitive ) : \ Closure { return function ( string $ expr ) use ( $ caseSensitive ) : string { if ( $ caseSensitive ) { return $ expr ; } return sprintf ( 'LOWER(%s)' , $ expr ) ; } ; }
Creates a function that will wrap a Doctrine expression according to the
specified case sensitivity.

For example, "o.name" will get wrapped into "LOWER(o.name)" when $caseSensitive
is false.
Creates a function that will wrap a Doctrine expression according to the specified case sensitivity .