original_string: protected function mergeMethods($nodeData)/*# : array */
      {
          // no merge
          if (empty($nodeData) || isset($nodeData[0])) {
              return (array) $nodeData;
          }
  
          // in sections
          $result = [];
          foreach ($nodeData as $data) {
              $result = array_merge($result, $data);
          }
          return $result;
      }
code: protected function mergeMethods($nodeData)/*# : array */
      {
          // no merge
          if (empty($nodeData) || isset($nodeData[0])) {
              return (array) $nodeData;
          }
  
          // in sections
          $result = [];
          foreach ($nodeData as $data) {
              $result = array_merge($result, $data);
          }
          return $result;
      }
code_tokens: protected function mergeMethods ( $ nodeData ) /*# : array */ { // no merge if ( empty ( $ nodeData ) || isset ( $ nodeData [ 0 ] ) ) { return ( array ) $ nodeData ; } // in sections $ result = [ ] ; foreach ( $ nodeData as $ data ) { $ result = array_merge ( $ result , $ data ) ; } return $ result ; }
docstring: Merge different sections of a node
  
  convert
  `['section1' => [[1], [2]], 'section2' => [[3], [4]]]`
  
  to
  `[[1], [2], [3], [4]]`
  
  @param  array|null $nodeData
  @return array
  @access protected
docstring_tokens: Merge different sections of a node