Conditions | 4 |
Paths | 5 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | public function setPath($userId, $path) { |
||
47 | $success = false; |
||
48 | |||
49 | $userHome = $this->rootFolder->getUserFolder($userId); |
||
50 | $element = $userHome->get($path); |
||
51 | if ($element instanceof \OCP\Files\Folder) { |
||
52 | if ($path[0] !== '/') { |
||
53 | $path = '/' . $path; |
||
54 | } |
||
55 | if ($path[\strlen($path)-1] !== '/') { |
||
56 | $path .= '/'; |
||
57 | } |
||
58 | $this->configManager->setUserValue($userId, $this->appName, 'path', $path); |
||
59 | $success = true; |
||
60 | } |
||
61 | |||
62 | return $success; |
||
63 | } |
||
84 |
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