src/Laito/Database.php
private function getJoinString()
    {
        // If there are not joins, return empty
        if (!count($this->orderBy)) {
            return '';
        }

        // Create join strings
        $joins = array_map(function ($join) {
            return $join['type'] . ' JOIN ' . $join['table'] . ' ON ' . $this->table . '.' . $join['first'] . $join['operator'] . $join['table'] . '.' . $join['second'];
        }, $this->joins);

        // Return complete join string
        return implode(' ', $joins);
    }
private function getJoinString()
    {
        // If there are not joins, return empty
        if (!count($this->orderBy)) {
            return '';
        }

        // Create join strings
        $joins = array_map(function ($join) {
            return $join['type'] . ' JOIN ' . $join['table'] . ' ON ' . $this->table . '.' . $join['first'] . $join['operator'] . $join['table'] . '.' . $join['second'];
        }, $this->joins);

        // Return complete join string
        return implode(' ', $joins);
    }
private function getJoinString ( ) { // If there are not joins, return empty if ( ! count ( $ this -> orderBy ) ) { return '' ; } // Create join strings $ joins = array_map ( function ( $ join ) { return $ join [ 'type' ] . ' JOIN ' . $ join [ 'table' ] . ' ON ' . $ this -> table . '.' . $ join [ 'first' ] . $ join [ 'operator' ] . $ join [ 'table' ] . '.' . $ join [ 'second' ] ; } , $ this -> joins ) ; // Return complete join string return implode ( ' ' , $ joins ) ; }
Returns the joins array as a JOIN string

@return string JOIN string
Returns the joins array as a JOIN string