protected function _makeJoin($table, $conditions, $type)
    {
        $alias = $table;

        if (is_array($table)) {
            $alias = key($table);
            $table = current($table);
        }

        return [
            $alias => [
                'table' => $table,
                'conditions' => $conditions,
                'type' => $type
            ]
        ];
    }
protected function _makeJoin($table, $conditions, $type)
    {
        $alias = $table;

        if (is_array($table)) {
            $alias = key($table);
            $table = current($table);
        }

        return [
            $alias => [
                'table' => $table,
                'conditions' => $conditions,
                'type' => $type
            ]
        ];
    }
protected function _makeJoin ( $ table , $ conditions , $ type ) { $ alias = $ table ; if ( is_array ( $ table ) ) { $ alias = key ( $ table ) ; $ table = current ( $ table ) ; } return [ $ alias => [ 'table' => $ table , 'conditions' => $ conditions , 'type' => $ type ] ] ; }
Returns an array that can be passed to the join method describing a single join clause

@param string|array $table The table to join with
@param string|array|\Cake\Database\ExpressionInterface $conditions The conditions
to use for joining.
@param string $type the join type to use
@return array
Returns an array that can be passed to the join method describing a single join clause