original_string: private function createDataItems(array $data)
      {
          $items = [];
          foreach ($data as $item) {
              $items[$item['label']] = new UserDataItem(
                  $item['label'],
                  $item['value'],
                  $item['isValid'],
                  $item['isOwner']
              );
          }
  
          return $items;
      }
code: private function createDataItems(array $data)
      {
          $items = [];
          foreach ($data as $item) {
              $items[$item['label']] = new UserDataItem(
                  $item['label'],
                  $item['value'],
                  $item['isValid'],
                  $item['isOwner']
              );
          }
  
          return $items;
      }
code_tokens: private function createDataItems ( array $ data ) { $ items = [ ] ; foreach ( $ data as $ item ) { $ items [ $ item [ 'label' ] ] = new UserDataItem ( $ item [ 'label' ] , $ item [ 'value' ] , $ item [ 'isValid' ] , $ item [ 'isOwner' ] ) ; } return $ items ; }
docstring: Creates data item object from array.
  
  @param array $data
  @return array
docstring_tokens: Creates data item object from array .