original_string: public function needsNormalization($format, array $context = [])
      {
          $encoder = $this->getEncoder($format, $context);
  
          if (!$encoder instanceof NormalizationAwareInterface) {
              return true;
          }
  
          if ($encoder instanceof self) {
              return $encoder->needsNormalization($format, $context);
          }
  
          return false;
      }
code: public function needsNormalization($format, array $context = [])
      {
          $encoder = $this->getEncoder($format, $context);
  
          if (!$encoder instanceof NormalizationAwareInterface) {
              return true;
          }
  
          if ($encoder instanceof self) {
              return $encoder->needsNormalization($format, $context);
          }
  
          return false;
      }
code_tokens: public function needsNormalization ( $ format , array $ context = [ ] ) { $ encoder = $ this -> getEncoder ( $ format , $ context ) ; if ( ! $ encoder instanceof NormalizationAwareInterface ) { return true ; } if ( $ encoder instanceof self ) { return $ encoder -> needsNormalization ( $ format , $ context ) ; } return false ; }
docstring: Checks whether the normalization is needed for the given format.
  
  @param string $format
  @param array  $context
  
  @return bool
docstring_tokens: Checks whether the normalization is needed for the given format .