| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class MnsConnector implements ConnectorInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * 接口方法,连接器. |
||
| 26 | * |
||
| 27 | * @param array $config |
||
| 28 | * |
||
| 29 | * @return \Illuminate\Contracts\Queue\Queue|MnsQueue |
||
| 30 | */ |
||
| 31 | public function connect(array $config) |
||
| 32 | { |
||
| 33 | $adapter = $this->getAdapter($config); |
||
| 34 | |||
| 35 | return new MnsQueue($adapter, $config['wait_seconds']); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Mns 适配器. |
||
| 40 | * |
||
| 41 | * @param array $config |
||
| 42 | * |
||
| 43 | * @return MnsAdapter |
||
| 44 | */ |
||
| 45 | public function getAdapter(array $config) |
||
| 46 | { |
||
| 47 | $client = $this->getClient($config); |
||
| 48 | |||
| 49 | return new MnsAdapter($client, $config['queue']); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Mns Client. |
||
| 54 | * |
||
| 55 | * @param array $config |
||
| 56 | * |
||
| 57 | * @return MnsClient |
||
| 58 | */ |
||
| 59 | public function getClient(array $config) |
||
| 62 | } |
||
| 63 | } |
||
| 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