Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Generate |
||
16 | { |
||
17 | /** |
||
18 | * Description: init |
||
19 | * @author: JiaMeng <[email protected]> |
||
20 | * Updater: |
||
21 | * @param $gateway |
||
22 | * @param null $config |
||
23 | * @return mixed |
||
24 | * @throws \Exception |
||
25 | */ |
||
26 | protected static function init($gateway, $config = null) |
||
27 | { |
||
28 | $class = __NAMESPACE__ . '\\Gateways\\' . StringTool::uFirst($gateway); |
||
29 | if (class_exists($class)) { |
||
30 | $app = new $class($config); |
||
31 | return $app; |
||
32 | } |
||
33 | throw new \Exception("发送QR Code基类 [$gateway] 不存在"); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Description: __callStatic |
||
38 | * @author: JiaMeng <[email protected]> |
||
39 | * Updater: |
||
40 | * @param $gateway |
||
41 | * @param $config |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public static function __callStatic($gateway, $config) |
||
47 | } |
||
48 | |||
50 |
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