src/Charcoal/Source/Database/DatabaseFilter.php
protected function compileConditions(array $conditions, $conjunction = null)
    {
        if (count($conditions) === 1) {
            return $conditions[0];
        }

        if ($conjunction === null) {
            $conjunction = $this->conjunction();
        }

        return '('.implode(' '.$conjunction.' ', $conditions).')';
    }
protected function compileConditions(array $conditions, $conjunction = null)
    {
        if (count($conditions) === 1) {
            return $conditions[0];
        }

        if ($conjunction === null) {
            $conjunction = $this->conjunction();
        }

        return '('.implode(' '.$conjunction.' ', $conditions).')';
    }
protected function compileConditions ( array $ conditions , $ conjunction = null ) { if ( count ( $ conditions ) === 1 ) { return $ conditions [ 0 ] ; } if ( $ conjunction === null ) { $ conjunction = $ this -> conjunction ( ) ; } return '(' . implode ( ' ' . $ conjunction . ' ' , $ conditions ) . ')' ; }
Compile the list of conditions.

@param  string[]    $conditions  The list of conditions to compile.
@param  string|null $conjunction The condition separator.
@return string
Compile the list of conditions .