PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` removeNoscriptTags($html); if (0 === strlen($html)) { return; } if (!preg_match_all('/]+href=[\'"](?.+?)[\'"][^>]*>/i', $html, $matches)) { return; } if (!is_array($matches) || empty($matches[0])) { return; } foreach ($matches[0] as $key => $link_fragment) { if (preg_match('/rel=["\']preload["\']/i', $link_fragment)) { // skip preloaded links continue; } if (preg_match('/\bdisabled\b/i', $link_fragment)) { // skip disabled links continue; } $link_url = $matches['href'][$key]; $url_path = parse_url($link_url, PHP_URL_PATH); if (!is_string($url_path)) { continue; } $extension = pathinfo($url_path, PATHINFO_EXTENSION); if ('css' !== $extension) { continue; } $this->count++; } } /** * @return int */ public function getCount() { return $this->count; } /** * Removes NOSCRIPT HTML tags from HTML markup. * * @param string $html HTML code. * * @return string HTML code without NOSCRIPT tags. */ public function removeNoscriptTags($html) { return (string) preg_replace('#(.*?)#is', '', $html); } } }