Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | final public function stations(): Metro |
||
48 | { |
||
49 | $appPath = dirname(dirname($this->request->getFilename())); |
||
50 | $uploader = new Uploader(); |
||
|
|||
51 | $uploader |
||
52 | ->setTargetPath($appPath . '/assets/upload/') |
||
53 | ->process(); |
||
54 | $resCodeError = $uploader->isError() |
||
55 | ? Response::HTTP_INTERNAL_SERVER_ERROR |
||
56 | : Response::HTTP_OK; |
||
57 | $this->response->setCode($resCodeError)->setContent( |
||
58 | $uploader->getInfos() |
||
59 | ); |
||
60 | unset($uploader); |
||
61 | return $this; |
||
62 | } |
||
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