| Total Complexity | 6 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | trait WithAggregator |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Aggregate. |
||
| 24 | */ |
||
| 25 | protected function aggregate() |
||
| 26 | { |
||
| 27 | foreach (EasyWeChat::config() as $key => $value) { |
||
| 28 | $this['config']->set($key, $value); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | public function shouldDelegate($id) |
||
| 36 | { |
||
| 37 | return $this['config']->get('delegation.enabled') |
||
| 38 | && $this->offsetGet($id) instanceof BaseClient; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | public function shouldntDelegate() |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $id |
||
| 53 | * |
||
| 54 | * @return \EasyWeChatComposer\Delegation |
||
| 55 | */ |
||
| 56 | public function delegateTo($id) |
||
| 59 | } |
||
| 60 | } |
||
| 61 |
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