original_string: protected function checkNormalizedSample(array $sample)
      {
          if ($this->normalizer) {
              $samples = [$sample];
              $this->normalizer->transform($samples);
              $sample = $samples[0];
          }
  
          return $sample;
      }
code: protected function checkNormalizedSample(array $sample)
      {
          if ($this->normalizer) {
              $samples = [$sample];
              $this->normalizer->transform($samples);
              $sample = $samples[0];
          }
  
          return $sample;
      }
code_tokens: protected function checkNormalizedSample ( array $ sample ) { if ( $ this -> normalizer ) { $ samples = [ $ sample ] ; $ this -> normalizer -> transform ( $ samples ) ; $ sample = $ samples [ 0 ] ; } return $ sample ; }
docstring: Checks if the sample should be normalized and if so, returns the
  normalized sample
  
  @param array $sample
  
  @return array
docstring_tokens: Checks if the sample should be normalized and if so returns the normalized sample