src/Titon/Db/Driver/Dialect/AbstractDialect.php
public function formatPredicate(Predicate $predicate) {
        $output = [];

        foreach ($predicate->getParams() as $param) {
            if ($param instanceof Predicate) {
                $output[] = sprintf($this->getClause(self::GROUP), $this->formatPredicate($param));

            } else if ($param instanceof Expr) {
                $output[] = $this->formatExpression($param);
            }
        }

        return implode(' ' . $this->getKeyword($predicate->getType()) . ' ', $output);
    }
public function formatPredicate(Predicate $predicate) {
        $output = [];

        foreach ($predicate->getParams() as $param) {
            if ($param instanceof Predicate) {
                $output[] = sprintf($this->getClause(self::GROUP), $this->formatPredicate($param));

            } else if ($param instanceof Expr) {
                $output[] = $this->formatExpression($param);
            }
        }

        return implode(' ' . $this->getKeyword($predicate->getType()) . ' ', $output);
    }
public function formatPredicate ( Predicate $ predicate ) { $ output = [ ] ; foreach ( $ predicate -> getParams ( ) as $ param ) { if ( $ param instanceof Predicate ) { $ output [ ] = sprintf ( $ this -> getClause ( self :: GROUP ) , $ this -> formatPredicate ( $ param ) ) ; } else if ( $ param instanceof Expr ) { $ output [ ] = $ this -> formatExpression ( $ param ) ; } } return implode ( ' ' . $ this -> getKeyword ( $ predicate -> getType ( ) ) . ' ' , $ output ) ; }
Format the predicate object by grouping nested predicates and parameters.

@param \Titon\Db\Query\Predicate $predicate
@return string
Format the predicate object by grouping nested predicates and parameters .