original_string: private function checkResultCount(array $result, $query)
      {
          if (count($result) === 0) {
              throw new RowNotFoundException('Row not found for query: ' . $query);
          }
  
          if (count($result) > 1) {
              throw new MultipleRowFoundException('Multiple row found for query: ' . $query);
          }
      }
code: private function checkResultCount(array $result, $query)
      {
          if (count($result) === 0) {
              throw new RowNotFoundException('Row not found for query: ' . $query);
          }
  
          if (count($result) > 1) {
              throw new MultipleRowFoundException('Multiple row found for query: ' . $query);
          }
      }
code_tokens: private function checkResultCount ( array $ result , $ query ) { if ( count ( $ result ) === 0 ) { throw new RowNotFoundException ( 'Row not found for query: ' . $ query ) ; } if ( count ( $ result ) > 1 ) { throw new MultipleRowFoundException ( 'Multiple row found for query: ' . $ query ) ; } }
docstring: Checks the result against the proper row number
  
  @param array  $result
  @param string $query
  
  @return void
  
  @throws MultipleRowFoundException
  @throws RowNotFoundException
docstring_tokens: Checks the result against the proper row number