src/mako/database/query/compilers/Compiler.php
protected function joins(array $joins): string
	{
		if(empty($joins))
		{
			return '';
		}

		$sql = [];

		foreach($joins as $join)
		{
			$sql[] = $join->getType() . ' JOIN ' . $this->table($join->getTable()) . ' ON ' . $this->joinConditions($join);
		}

		return ' ' . implode(' ', $sql);
	}
protected function joins(array $joins): string
	{
		if(empty($joins))
		{
			return '';
		}

		$sql = [];

		foreach($joins as $join)
		{
			$sql[] = $join->getType() . ' JOIN ' . $this->table($join->getTable()) . ' ON ' . $this->joinConditions($join);
		}

		return ' ' . implode(' ', $sql);
	}
protected function joins ( array $ joins ) : string { if ( empty ( $ joins ) ) { return '' ; } $ sql = [ ] ; foreach ( $ joins as $ join ) { $ sql [ ] = $ join -> getType ( ) . ' JOIN ' . $ this -> table ( $ join -> getTable ( ) ) . ' ON ' . $ this -> joinConditions ( $ join ) ; } return ' ' . implode ( ' ' , $ sql ) ; }
Compiles JOIN clauses.

@param  array  $joins Array of joins
@return string
Compiles JOIN clauses .