original_string: public function checkPageSubjectInUrl() {
          if ($this->checkPageSubjectDefined()) {
  
              $url_segment             = $this->owner->URLSegment;
              $pagesubject_url_segment = $this->owner->generateURLSegment($this->owner->SEOPageSubject);
  
              if (preg_match('/' . preg_quote($pagesubject_url_segment, '/') . '/i', $url_segment)) {
                  return true;
              }
              else {
                  return false;
              }
          }
          return false;
  
      }
code: public function checkPageSubjectInUrl() {
          if ($this->checkPageSubjectDefined()) {
  
              $url_segment             = $this->owner->URLSegment;
              $pagesubject_url_segment = $this->owner->generateURLSegment($this->owner->SEOPageSubject);
  
              if (preg_match('/' . preg_quote($pagesubject_url_segment, '/') . '/i', $url_segment)) {
                  return true;
              }
              else {
                  return false;
              }
          }
          return false;
  
      }
code_tokens: public function checkPageSubjectInUrl ( ) { if ( $ this -> checkPageSubjectDefined ( ) ) { $ url_segment = $ this -> owner -> URLSegment ; $ pagesubject_url_segment = $ this -> owner -> generateURLSegment ( $ this -> owner -> SEOPageSubject ) ; if ( preg_match ( '/' . preg_quote ( $ pagesubject_url_segment , '/' ) . '/i' , $ url_segment ) ) { return true ; } else { return false ; } } return false ; }
docstring: checkPageSubjectInUrl.
  Checks if defined PageSubject is present in the Page URLSegment
  
  @param none
  @return boolean
docstring_tokens: checkPageSubjectInUrl . Checks if defined PageSubject is present in the Page URLSegment