original_string: public static function getFuzzyDistance(string $term, $mode): int
      {
          if (self::MODE_1 === $mode) {
              return 1;
          }
  
          if (self::MODE_2 === $mode) {
              return 2;
          }
  
          if (strlen($term) < 3) {
              return 1;
          }
  
          return 2;
      }
code: public static function getFuzzyDistance(string $term, $mode): int
      {
          if (self::MODE_1 === $mode) {
              return 1;
          }
  
          if (self::MODE_2 === $mode) {
              return 2;
          }
  
          if (strlen($term) < 3) {
              return 1;
          }
  
          return 2;
      }
code_tokens: public static function getFuzzyDistance ( string $ term , $ mode ) : int { if ( self :: MODE_1 === $ mode ) { return 1 ; } if ( self :: MODE_2 === $ mode ) { return 2 ; } if ( strlen ( $ term ) < 3 ) { return 1 ; } return 2 ; }
docstring: Returns distance for given mode.
  
  @param mixed $mode
  
  @return int
docstring_tokens: Returns distance for given mode .