Download tests/PHPUnit/Framework/Mock/FakeSiteContentDetector.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 831 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Framework/Mock/FakeSiteContentDetector.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/tests/PHPUnit/Framework/Mock/FakeSiteContentDetector.php
-
curl -L -o FakeSiteContentDetector.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Framework/Mock/FakeSiteContentDetector.php
831 Bytes
| namespace Piwik\Tests\Framework\Mock; | |
| use Piwik\SiteContentDetector; | |
| class FakeSiteContentDetector extends SiteContentDetector | |
| { | |
| public function __construct($detectedContentDetections = [], $connectedConsentManagers = []) | |
| { | |
| foreach ($detectedContentDetections as $detectedContentDetection) { | |
| $class = $this->getSiteContentDetectionById($detectedContentDetection); | |
| $this->detectedContent[$class::getContentType()][$detectedContentDetection] = true; | |
| } | |
| $this->connectedConsentManagers = $connectedConsentManagers; | |
| parent::__construct(); | |
| } | |
| public function detectContent( | |
| array $detectContent = [], | |
| ?int $idSite = null, | |
| ?array $siteResponse = null, | |
| int $timeOut = 60 | |
| ): void { | |
| // skip any detections | |
| } | |
| } | |