original_string: 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
              ]
          ];
      }
code: 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
              ]
          ];
      }
code_tokens: 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 ] ] ; }
docstring: 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
docstring_tokens: Returns an array that can be passed to the join method describing a single join clause