@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * @param string|false $app_dir |
56 | 56 | * @param string $theme |
57 | 57 | * @param string $app |
58 | - * @return array |
|
58 | + * @return string[] |
|
59 | 59 | */ |
60 | 60 | protected function getAppTemplateDirs($theme, $app, $serverRoot, $app_dir) { |
61 | 61 | // Check if the app is in the app folder or in the root |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * @param string $serverRoot |
76 | 76 | * @param string $theme |
77 | - * @return array |
|
77 | + * @return string[] |
|
78 | 78 | */ |
79 | 79 | protected function getCoreTemplateDirs($theme, $serverRoot) { |
80 | 80 | return [ |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | /** |
103 | 103 | * Appends a variable |
104 | 104 | * @param string $key key |
105 | - * @param mixed $value value |
|
105 | + * @param string $value value |
|
106 | 106 | * @return boolean|null |
107 | 107 | * |
108 | 108 | * This function assigns a variable in an array context. If the key already |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | private $noEmit = false; |
61 | 61 | |
62 | 62 | /** |
63 | - * @param \Doctrine\DBAL\Connection|Connection $connection |
|
63 | + * @param Connection $connection |
|
64 | 64 | * @param ISecureRandom $random |
65 | 65 | * @param IConfig $config |
66 | 66 | * @param EventDispatcher $dispatcher |
@@ -273,6 +273,10 @@ discard block |
||
273 | 273 | return '/^' . preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')) . '/'; |
274 | 274 | } |
275 | 275 | |
276 | + /** |
|
277 | + * @param integer $step |
|
278 | + * @param integer $max |
|
279 | + */ |
|
276 | 280 | protected function emit($sql, $step, $max) { |
277 | 281 | if ($this->noEmit) { |
278 | 282 | return; |
@@ -283,6 +287,10 @@ discard block |
||
283 | 287 | $this->dispatcher->dispatch('\OC\DB\Migrator::executeSql', new GenericEvent($sql, [$step+1, $max])); |
284 | 288 | } |
285 | 289 | |
290 | + /** |
|
291 | + * @param integer $step |
|
292 | + * @param integer $max |
|
293 | + */ |
|
286 | 294 | private function emitCheckStep($tableName, $step, $max) { |
287 | 295 | if(is_null($this->dispatcher)) { |
288 | 296 | return; |
@@ -28,7 +28,6 @@ |
||
28 | 28 | use Symfony\Component\Console\Command\Command; |
29 | 29 | use Symfony\Component\Console\Helper\Table; |
30 | 30 | use Symfony\Component\Console\Input\InputInterface; |
31 | -use Symfony\Component\Console\Input\InputOption; |
|
32 | 31 | use Symfony\Component\Console\Output\OutputInterface; |
33 | 32 | |
34 | 33 | class ListCertificates extends Base { |
@@ -131,7 +131,7 @@ |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
134 | - * @param $message |
|
134 | + * @param string $message |
|
135 | 135 | * @param array $additional |
136 | 136 | * @return array |
137 | 137 | */ |
@@ -97,7 +97,7 @@ |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
100 | - * @param string|int $category |
|
100 | + * @param string $category |
|
101 | 101 | * @return int |
102 | 102 | */ |
103 | 103 | protected function getCategory($category) { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @NoAdminRequired |
72 | 72 | * @NoSubadminRequired |
73 | - * @return array |
|
73 | + * @return DataResponse |
|
74 | 74 | */ |
75 | 75 | public function addPersonalRootCertificate() { |
76 | 76 | return $this->addCertificate($this->userCertificateManager); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * Add a new root certificate to a trust store |
81 | 81 | * |
82 | 82 | * @param ICertificateManager $certificateManager |
83 | - * @return array |
|
83 | + * @return DataResponse |
|
84 | 84 | */ |
85 | 85 | private function addCertificate(ICertificateManager $certificateManager) { |
86 | 86 | $headers = []; |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | /** |
159 | 159 | * Add a new personal root certificate to the system's trust store |
160 | 160 | * |
161 | - * @return array |
|
161 | + * @return DataResponse |
|
162 | 162 | */ |
163 | 163 | public function addSystemRootCertificate() { |
164 | 164 | return $this->addCertificate($this->systemCertificateManager); |
@@ -268,7 +268,7 @@ |
||
268 | 268 | |
269 | 269 | /** |
270 | 270 | * @NoCSRFRequired |
271 | - * @return DataResponse |
|
271 | + * @return DataDisplayResponse |
|
272 | 272 | */ |
273 | 273 | public function getFailedIntegrityCheckFiles() { |
274 | 274 | $completeResults = $this->checker->getResults(); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * Magic method to first get the real rootFolder and then |
35 | 35 | * call $method with $args on it |
36 | 36 | * |
37 | - * @param $method |
|
37 | + * @param string $method |
|
38 | 38 | * @param $args |
39 | 39 | * @return mixed |
40 | 40 | */ |
@@ -2,9 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace OC\Files\Node; |
4 | 4 | |
5 | -use OC\Files\Mount\MountPoint; |
|
6 | 5 | use OCP\Files\IRootFolder; |
7 | -use OCP\Files\NotPermittedException; |
|
8 | 6 | |
9 | 7 | /** |
10 | 8 | * Class LazyRoot |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | /** |
89 | 89 | * List all installed apps |
90 | 90 | * |
91 | - * @return string[] |
|
91 | + * @return integer[] |
|
92 | 92 | */ |
93 | 93 | public function getInstalledApps() { |
94 | 94 | return array_keys($this->getInstalledAppsValues()); |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | /** |
217 | 217 | * Returns a list of apps that need upgrade |
218 | 218 | * |
219 | - * @param array $version ownCloud version as array of version components |
|
219 | + * @param array $ocVersion ownCloud version as array of version components |
|
220 | 220 | * @return array list of app info from apps that need an upgrade |
221 | 221 | * |
222 | 222 | * @internal |
@@ -289,6 +289,9 @@ discard block |
||
289 | 289 | return in_array($appId, $this->shippedApps); |
290 | 290 | } |
291 | 291 | |
292 | + /** |
|
293 | + * @param string $appId |
|
294 | + */ |
|
292 | 295 | private function isAlwaysEnabled($appId) { |
293 | 296 | $alwaysEnabled = $this->getAlwaysEnabledApps(); |
294 | 297 | return in_array($appId, $alwaysEnabled); |