original_string: public static function unitsAreDifferent($first, $second)
      {
          return
              (preg_match(UnitResolver::SI_PATTERN, $first) && preg_match(UnitResolver::IEC_PATTERN, $second)) ||
              (preg_match(UnitResolver::IEC_PATTERN, $first) && preg_match(UnitResolver::SI_PATTERN, $second));
      }
code: public static function unitsAreDifferent($first, $second)
      {
          return
              (preg_match(UnitResolver::SI_PATTERN, $first) && preg_match(UnitResolver::IEC_PATTERN, $second)) ||
              (preg_match(UnitResolver::IEC_PATTERN, $first) && preg_match(UnitResolver::SI_PATTERN, $second));
      }
code_tokens: public static function unitsAreDifferent ( $ first , $ second ) { return ( preg_match ( UnitResolver :: SI_PATTERN , $ first ) && preg_match ( UnitResolver :: IEC_PATTERN , $ second ) ) || ( preg_match ( UnitResolver :: IEC_PATTERN , $ first ) && preg_match ( UnitResolver :: SI_PATTERN , $ second ) ) ; }
docstring: Check if two units are in the same
  family
  
  @param string $first
  @param string $second
  @return bool
docstring_tokens: Check if two units are in the same family