@@ -191,7 +191,7 @@ |
||
| 191 | 191 | * |
| 192 | 192 | * @param ISystemTag $tag |
| 193 | 193 | * |
| 194 | - * @return SystemTagNode |
|
| 194 | + * @return SystemTagMappingNode |
|
| 195 | 195 | */ |
| 196 | 196 | private function makeNode(ISystemTag $tag) { |
| 197 | 197 | return new SystemTagMappingNode( |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | use Sabre\DAV\Exception\BadRequest; |
| 27 | 27 | use Sabre\DAV\Exception\PreconditionFailed; |
| 28 | 28 | use Sabre\DAV\ICollection; |
| 29 | - |
|
| 30 | 29 | use OCP\SystemTag\ISystemTagManager; |
| 31 | 30 | use OCP\SystemTag\ISystemTagObjectMapper; |
| 32 | 31 | use OCP\SystemTag\ISystemTag; |
@@ -25,8 +25,6 @@ |
||
| 25 | 25 | |
| 26 | 26 | use OC\Hooks\BasicEmitter; |
| 27 | 27 | use PhpParser\Lexer; |
| 28 | -use PhpParser\Node; |
|
| 29 | -use PhpParser\Node\Name; |
|
| 30 | 28 | use PhpParser\NodeTraverser; |
| 31 | 29 | use PhpParser\Parser; |
| 32 | 30 | use RecursiveCallbackFilterIterator; |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | * Checks if output formatter has style with specified name. |
| 72 | 72 | * |
| 73 | 73 | * @param string $name |
| 74 | - * @return bool |
|
| 74 | + * @return boolean|null |
|
| 75 | 75 | */ |
| 76 | 76 | public function hasStyle($name) { |
| 77 | 77 | $this->formatter->hasStyle($name); |
@@ -173,7 +173,7 @@ |
||
| 173 | 173 | * If an SQLLogger is configured, the execution is logged. |
| 174 | 174 | * |
| 175 | 175 | * @param string $query The SQL query to execute. |
| 176 | - * @param array $params The parameters to bind to the query, if any. |
|
| 176 | + * @param string[] $params The parameters to bind to the query, if any. |
|
| 177 | 177 | * @param array $types The types the previous parameters are in. |
| 178 | 178 | * @param \Doctrine\DBAL\Cache\QueryCacheProfile|null $qcp The query cache profile, optional. |
| 179 | 179 | * |
@@ -34,14 +34,12 @@ |
||
| 34 | 34 | use Doctrine\DBAL\Cache\QueryCacheProfile; |
| 35 | 35 | use Doctrine\Common\EventManager; |
| 36 | 36 | use Doctrine\DBAL\Driver\ServerInfoAwareConnection; |
| 37 | -use Doctrine\DBAL\Exception\ConstraintViolationException; |
|
| 38 | 37 | use Doctrine\DBAL\Platforms\MySqlPlatform; |
| 39 | 38 | use Doctrine\DBAL\Schema\Schema; |
| 40 | 39 | use OC\DB\QueryBuilder\QueryBuilder; |
| 41 | 40 | use OCP\DB\QueryBuilder\IQueryBuilder; |
| 42 | 41 | use OCP\IDBConnection; |
| 43 | 42 | use OCP\PreConditionNotMetException; |
| 44 | -use OCP\Util; |
|
| 45 | 43 | |
| 46 | 44 | class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { |
| 47 | 45 | /** |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * and does not take the chroot into account ) |
| 202 | 202 | * |
| 203 | 203 | * @param string $path |
| 204 | - * @return \OCP\Files\Mount\IMountPoint |
|
| 204 | + * @return Mount\MountPoint|null |
|
| 205 | 205 | */ |
| 206 | 206 | public function getMount($path) { |
| 207 | 207 | return Filesystem::getMountManager()->find($this->getAbsolutePath($path)); |
@@ -1082,7 +1082,7 @@ discard block |
||
| 1082 | 1082 | * @param string $path |
| 1083 | 1083 | * @param array $hooks (optional) |
| 1084 | 1084 | * @param mixed $extraParam (optional) |
| 1085 | - * @return mixed |
|
| 1085 | + * @return string |
|
| 1086 | 1086 | * @throws \Exception |
| 1087 | 1087 | * |
| 1088 | 1088 | * This method takes requests for basic filesystem functions (e.g. reading & writing |
@@ -2090,7 +2090,7 @@ discard block |
||
| 2090 | 2090 | |
| 2091 | 2091 | /** |
| 2092 | 2092 | * @param string $filename |
| 2093 | - * @return array |
|
| 2093 | + * @return string[] |
|
| 2094 | 2094 | * @throws \OC\User\NoUserException |
| 2095 | 2095 | * @throws NotFoundException |
| 2096 | 2096 | */ |
@@ -191,6 +191,7 @@ |
||
| 191 | 191 | |
| 192 | 192 | /** |
| 193 | 193 | * @param string $path |
| 194 | + * @param string $token |
|
| 194 | 195 | */ |
| 195 | 196 | function publicPreview_icon ( $path, $token ) { |
| 196 | 197 | return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_public_preview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]); |
@@ -566,7 +566,7 @@ |
||
| 566 | 566 | /** |
| 567 | 567 | * update permissions in database |
| 568 | 568 | * |
| 569 | - * @param IShare $share |
|
| 569 | + * @param Share\IShare $share |
|
| 570 | 570 | * @param int $permissions |
| 571 | 571 | */ |
| 572 | 572 | protected function updatePermissionsInDatabase(IShare $share, $permissions) { |
@@ -150,7 +150,6 @@ |
||
| 150 | 150 | /** |
| 151 | 151 | * saves database schema to xml file |
| 152 | 152 | * @param string $file name of file |
| 153 | - * @param int $mode |
|
| 154 | 153 | * @return bool |
| 155 | 154 | * |
| 156 | 155 | * TODO: write more documentation |
@@ -21,10 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | namespace OC\Files\Config; |
| 23 | 23 | |
| 24 | -use OC\Files\Filesystem; |
|
| 25 | -use OCP\Files\Config\ICachedMountInfo; |
|
| 26 | 24 | use OCP\Files\Mount\IMountPoint; |
| 27 | -use OCP\Files\Node; |
|
| 28 | 25 | use OCP\IUser; |
| 29 | 26 | |
| 30 | 27 | class LazyStorageMountInfo extends CachedMountInfo { |