original_string: protected function inferRow($row)
      {
          $rowFields = [];
          foreach ($row as $k => $v) {
              $rowFields[$k] = FieldsFactory::infer($v, (object) ['name' => $k], $this->lenient);
          }
  
          return $rowFields;
      }
code: protected function inferRow($row)
      {
          $rowFields = [];
          foreach ($row as $k => $v) {
              $rowFields[$k] = FieldsFactory::infer($v, (object) ['name' => $k], $this->lenient);
          }
  
          return $rowFields;
      }
code_tokens: protected function inferRow ( $ row ) { $ rowFields = [ ] ; foreach ( $ row as $ k => $ v ) { $ rowFields [ $ k ] = FieldsFactory :: infer ( $ v , ( object ) [ 'name' => $ k ] , $ this -> lenient ) ; } return $ rowFields ; }
docstring: infer field objects for the given row
  raises exception if fails to infer a field.
  
  @param $row array field name => value to infer by
  
  @return array field name => inferred field object
  
  @throws FieldValidationException
docstring_tokens: infer field objects for the given row raises exception if fails to infer a field .