original_string: public function getColumnTypes(NodePath $nodePath)
      {
          $values = $this->getNodeChildrenProperties($nodePath, 'nodeType');
          $result = [];
          foreach ($values as $key => $value) {
              if ($key === self::ARRAY_NAME) {
                  $result[self::DATA_COLUMN] = $value;
              } else {
                  $result[$key] = $value;
              }
          }
          return $result;
      }
code: public function getColumnTypes(NodePath $nodePath)
      {
          $values = $this->getNodeChildrenProperties($nodePath, 'nodeType');
          $result = [];
          foreach ($values as $key => $value) {
              if ($key === self::ARRAY_NAME) {
                  $result[self::DATA_COLUMN] = $value;
              } else {
                  $result[$key] = $value;
              }
          }
          return $result;
      }
code_tokens: public function getColumnTypes ( NodePath $ nodePath ) { $ values = $ this -> getNodeChildrenProperties ( $ nodePath , 'nodeType' ) ; $ result = [ ] ; foreach ( $ values as $ key => $ value ) { if ( $ key === self :: ARRAY_NAME ) { $ result [ self :: DATA_COLUMN ] = $ value ; } else { $ result [ $ key ] = $ value ; } } return $ result ; }
docstring: Get columns from a node and return their data types.
  @param NodePath $nodePath
  @return array Index is column name, value is data type.
docstring_tokens: Get columns from a node and return their data types .