original_string: public function compareTo($url, $caseSensitive = true, $includeQuery = false, $ignoreSpecialChars = false)
      {
          /* @var $urlObj Url */
          $urlObj  = $url instanceof Url ? $url : self::create($url)->decodePath();
          /* @var $urlObj2 Url */
          $urlObj2 = clone $this;
          $urlObj2->decodePath();
          if ($ignoreSpecialChars) {
              $urlObj->tidy();
              $urlObj2->tidy();
          }
          if (!$includeQuery) {
              $urlObj->parameters  = [];
              $urlObj2->parameters = [];
          }
          return $caseSensitive ? strcmp($urlObj, $urlObj2) : strcasecmp($urlObj, $urlObj2);
      }
code: public function compareTo($url, $caseSensitive = true, $includeQuery = false, $ignoreSpecialChars = false)
      {
          /* @var $urlObj Url */
          $urlObj  = $url instanceof Url ? $url : self::create($url)->decodePath();
          /* @var $urlObj2 Url */
          $urlObj2 = clone $this;
          $urlObj2->decodePath();
          if ($ignoreSpecialChars) {
              $urlObj->tidy();
              $urlObj2->tidy();
          }
          if (!$includeQuery) {
              $urlObj->parameters  = [];
              $urlObj2->parameters = [];
          }
          return $caseSensitive ? strcmp($urlObj, $urlObj2) : strcasecmp($urlObj, $urlObj2);
      }
code_tokens: public function compareTo ( $ url , $ caseSensitive = true , $ includeQuery = false , $ ignoreSpecialChars = false ) { /* @var $urlObj Url */ $ urlObj = $ url instanceof Url ? $ url : self :: create ( $ url ) -> decodePath ( ) ; /* @var $urlObj2 Url */ $ urlObj2 = clone $ this ; $ urlObj2 -> decodePath ( ) ; if ( $ ignoreSpecialChars ) { $ urlObj -> tidy ( ) ; $ urlObj2 -> tidy ( ) ; } if ( ! $ includeQuery ) { $ urlObj -> parameters = [ ] ; $ urlObj2 -> parameters = [ ] ; } return $ caseSensitive ? strcmp ( $ urlObj , $ urlObj2 ) : strcasecmp ( $ urlObj , $ urlObj2 ) ; }
docstring: Checks if this url object is equal to another.
  @param string $str2 <p>
  The string to compare against
  </p>
  @param bool $caseSensitive [optional] <p>
  If true the string comparision is case sensitive
  </p>
  </p>
  @param bool $includeQuery [optional] <p>
  If true the query string is ignored from the string comparision
  </p>
  @param bool $ignoreSpecialChars [optional] <p>
  If true the special characters are ignored from the string comparision
  </p>
  @return int &lt; 0 if <i>str1</i> is less than
  <i>str2</i>; &gt; 0 if <i>str1</i>
  is greater than <i>str2</i>, and 0 if they are
  equal.
docstring_tokens: Checks if this url object is equal to another .