| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 25 | 11 | public function register(Engine $engine) |
|
| 26 | { |
||
| 27 | $helpersCollection = HelpersCollection::getInstance(); |
||
| 28 | 2 | $helpersCollection->setEngine($engine); |
|
| 29 | 11 | ||
| 30 | $engine->addMethod('getHelper', function ($name) use ($helpersCollection) { |
||
| 31 | return $helpersCollection->getHelper($name); |
||
| 32 | 2 | }); |
|
| 33 | 11 | ||
| 34 | 11 | $engine->addMethod('hasHelper', function ($name) use ($helpersCollection) { |
|
| 35 | return $helpersCollection->hasHelper($name); |
||
| 36 | }); |
||
| 39 |
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