| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function getMatomoCode() |
||
| 21 | { |
||
| 22 | //check dev |
||
| 23 | // if(Director::isDev() && !$this->config()->show_on_dev) { |
||
| 24 | // return false; |
||
| 25 | // } |
||
| 26 | // //check test |
||
| 27 | // if(Director::isTest() && !$this->config()->show_on_test) { |
||
| 28 | // return false; |
||
| 29 | // } |
||
| 30 | // //check live |
||
| 31 | // if(Director::isLive() && !$this->config()->show_on_live) { |
||
| 32 | // return false; |
||
| 33 | // } |
||
| 34 | //check excluded controllers |
||
| 35 | //check excluded URLs |
||
| 36 | //check member opt-out |
||
| 37 | |||
| 38 | //still here? render the template |
||
| 39 | $config = SiteConfig::current_site_config(); |
||
| 40 | //check MatomoTrackingURL and MatomoSiteId |
||
| 41 | return SSViewer::execute_template('Matomo', ArrayData::create([ |
||
| 42 | 'MatomoTrackingURL' => $config->MatomoTrackingURL, |
||
| 43 | 'MatomoSiteId' => $config->MatomoSiteId, |
||
| 44 | ])); |
||
| 47 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths