| Conditions | 4 |
| Paths | 10 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public static function create($oj, & $sub, $all_data) |
||
| 48 | { |
||
| 49 | $submitterProvider="Submitter"; |
||
| 50 | try { |
||
| 51 | $BabelConfig=json_decode(file_get_contents(babel_path("Extension/$oj/babel.json")), true); |
||
| 52 | $submitterProvider=$BabelConfig["provider"]["submitter"]; |
||
| 53 | } catch (ErrorException $e) { |
||
| 54 | } catch (Exception $e) { |
||
| 55 | } |
||
| 56 | $className="App\\Babel\\Extension\\$oj\\$submitterProvider"; |
||
| 57 | if (class_exists($className)) { |
||
| 58 | return new $className($sub, $all_data); |
||
| 59 | } else { |
||
| 60 | return null; |
||
| 61 | } |
||
| 64 |
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