original_string: protected function withBulk(array $data = [])
      {
          if (!$this->isArray($data)) {
              return;
          }
  
          foreach ($data['data'] as $index => $element) {
              $row = $this->data->addChild('row');
  
              $row->addAttribute('no', ++$index);
  
              foreach ($element as $key => $value) {
                  $child = $row->addChild('FL', $value);
  
                  $child->addAttribute('val', $key);
              }
          }
      }
code: protected function withBulk(array $data = [])
      {
          if (!$this->isArray($data)) {
              return;
          }
  
          foreach ($data['data'] as $index => $element) {
              $row = $this->data->addChild('row');
  
              $row->addAttribute('no', ++$index);
  
              foreach ($element as $key => $value) {
                  $child = $row->addChild('FL', $value);
  
                  $child->addAttribute('val', $key);
              }
          }
      }
code_tokens: protected function withBulk ( array $ data = [ ] ) { if ( ! $ this -> isArray ( $ data ) ) { return ; } foreach ( $ data [ 'data' ] as $ index => $ element ) { $ row = $ this -> data -> addChild ( 'row' ) ; $ row -> addAttribute ( 'no' , ++ $ index ) ; foreach ( $ element as $ key => $ value ) { $ child = $ row -> addChild ( 'FL' , $ value ) ; $ child -> addAttribute ( 'val' , $ key ) ; } } }
docstring: One or more elements in data array.
  
  @param array $data
docstring_tokens: One or more elements in data array .