original_string: protected function getPattern($value, $translationId)
      {
          $language = $this->translator->getCurrentLanguage();
  
          if (!isset($this->patterns[$language][$translationId])) {
              $this->patterns[$language][$translationId] = $this->parsePattern($this->translator->translate($translationId));
          }
  
          list($positivePattern, $negativePattern) = $this->patterns[$language][$translationId];
          $negative = $this->isNegative($value);
  
          return $negative ? $negativePattern : $positivePattern;
      }
code: protected function getPattern($value, $translationId)
      {
          $language = $this->translator->getCurrentLanguage();
  
          if (!isset($this->patterns[$language][$translationId])) {
              $this->patterns[$language][$translationId] = $this->parsePattern($this->translator->translate($translationId));
          }
  
          list($positivePattern, $negativePattern) = $this->patterns[$language][$translationId];
          $negative = $this->isNegative($value);
  
          return $negative ? $negativePattern : $positivePattern;
      }
code_tokens: protected function getPattern ( $ value , $ translationId ) { $ language = $ this -> translator -> getCurrentLanguage ( ) ; if ( ! isset ( $ this -> patterns [ $ language ] [ $ translationId ] ) ) { $ this -> patterns [ $ language ] [ $ translationId ] = $ this -> parsePattern ( $ this -> translator -> translate ( $ translationId ) ) ; } list ( $ positivePattern , $ negativePattern ) = $ this -> patterns [ $ language ] [ $ translationId ] ; $ negative = $ this -> isNegative ( $ value ) ; return $ negative ? $ negativePattern : $ positivePattern ; }
docstring: Returns the relevant pattern for the given number.
  
  @param string $value
  @param string $translationId
  @return string
docstring_tokens: Returns the relevant pattern for the given number .