| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function register(Container $dic) |
||
| 33 | { |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | $dic['Worlds.Config'] = function( $dic ) { |
||
| 39 | return $this->config; |
||
| 40 | }; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return PDO |
||
| 44 | */ |
||
| 45 | $dic['Worlds.PDO'] = function( $dic ) { |
||
| 46 | return null; |
||
| 47 | }; |
||
| 48 | |||
| 49 | |||
| 50 | /** |
||
| 51 | * @return PdoWorlds |
||
| 52 | */ |
||
| 53 | $dic['Worlds.All'] = function( $dic ) { |
||
| 54 | $worlds_config = $dic['Worlds.Config']; |
||
| 55 | $worlds_table = $worlds_config['worlds_table']; |
||
| 56 | |||
| 57 | $pdo = $dic['Worlds.PDO' ]; |
||
| 58 | return new PdoWorlds( $pdo, null, $worlds_table ); |
||
| 59 | }; |
||
| 65 |
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