Example #1
0
 /**
  * Comparing the issue with the list of current existing issues
  *
  * @param array    $crawl_issues
  * @param stdClass $issue
  */
 private function issue_compare(&$crawl_issues, $issue)
 {
     $issue->pageUrl = WPSEO_Utils::format_url((string) $issue->pageUrl);
     if (!in_array($issue->pageUrl, $this->current_issues)) {
         array_push($crawl_issues, $this->get_issue($this->create_issue($issue)));
     }
 }