| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function handle($path, $action = 'resize', $option = ['m' => 'fixed','h' => '100','w' => '100']){ |
||
| 37 | if(empty($action) || empty($option)){ |
||
| 38 | throw new \Exception('操作名称和操作参数不能为空!'); |
||
| 39 | } |
||
| 40 | |||
| 41 | $url = $this->filesystem->getAdapter()->getUrl($path); |
||
| 42 | |||
| 43 | $param = ''; |
||
| 44 | foreach ($option as $key => $value){ |
||
| 45 | $param .= ','.$key.'_'.$value; |
||
| 46 | } |
||
| 47 | |||
| 48 | return $url.'?x-oss-process=image/'.$action.$param; |
||
| 49 | } |
||
| 51 |
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