@@ -45,6 +45,7 @@ discard block |
||
| 45 | 45 | class Files { |
| 46 | 46 | /** |
| 47 | 47 | * Recusive deletion of folders |
| 48 | + * @param string $dir |
|
| 48 | 49 | * @return bool |
| 49 | 50 | * @since 5.0.0 |
| 50 | 51 | */ |
@@ -66,7 +67,7 @@ discard block |
||
| 66 | 67 | /** |
| 67 | 68 | * Search for files by mimetype |
| 68 | 69 | * @param string $mimetype |
| 69 | - * @return array |
|
| 70 | + * @return \OC\Files\FileInfo[] |
|
| 70 | 71 | * @since 6.0.0 |
| 71 | 72 | */ |
| 72 | 73 | static public function searchByMime( $mimetype ) { |
@@ -329,7 +329,7 @@ |
||
| 329 | 329 | |
| 330 | 330 | /** |
| 331 | 331 | * http basic auth |
| 332 | - * @return string|false (username, or false on failure) |
|
| 332 | + * @return string (username, or false on failure) |
|
| 333 | 333 | */ |
| 334 | 334 | private static function loginUser() { |
| 335 | 335 | if(self::$isLoggedIn === true) { |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | 154 | * @param string $gid |
| 155 | - * @return \OCP\IGroup |
|
| 155 | + * @return null|Group |
|
| 156 | 156 | */ |
| 157 | 157 | protected function getGroupObject($gid) { |
| 158 | 158 | $backends = array(); |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | use OCA\DAV\Connector\Sabre\Auth; |
| 26 | 26 | use OCA\DAV\DAV\Sharing\Xml\Invite; |
| 27 | 27 | use OCP\IRequest; |
| 28 | -use Sabre\DAV\Exception\BadRequest; |
|
| 29 | 28 | use Sabre\DAV\Exception\NotFound; |
| 30 | 29 | use Sabre\DAV\INode; |
| 31 | 30 | use Sabre\DAV\PropFind; |
@@ -22,11 +22,6 @@ |
||
| 22 | 22 | namespace OCA\DAV\Command; |
| 23 | 23 | |
| 24 | 24 | use OCA\DAV\CardDAV\CardDavBackend; |
| 25 | -use OCA\DAV\Connector\Sabre\Principal; |
|
| 26 | -use OCP\IConfig; |
|
| 27 | -use OCP\IDBConnection; |
|
| 28 | -use OCP\IGroupManager; |
|
| 29 | -use OCP\ILogger; |
|
| 30 | 25 | use OCP\IUserManager; |
| 31 | 26 | use Symfony\Component\Console\Command\Command; |
| 32 | 27 | use Symfony\Component\Console\Input\InputArgument; |
@@ -21,10 +21,8 @@ |
||
| 21 | 21 | namespace OCA\DAV\Command; |
| 22 | 22 | |
| 23 | 23 | use OCA\DAV\CardDAV\SyncService; |
| 24 | -use OCP\IUserManager; |
|
| 25 | 24 | use Symfony\Component\Console\Command\Command; |
| 26 | 25 | use Symfony\Component\Console\Helper\ProgressBar; |
| 27 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 28 | 26 | use Symfony\Component\Console\Input\InputInterface; |
| 29 | 27 | use Symfony\Component\Console\Output\OutputInterface; |
| 30 | 28 | |
@@ -59,6 +59,9 @@ |
||
| 59 | 59 | ); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param boolean $toV2 |
|
| 64 | + */ |
|
| 62 | 65 | private function convertPrincipal($principal, $toV2) { |
| 63 | 66 | list(, $name) = URLUtil::splitPath($principal); |
| 64 | 67 | if ($toV2) { |
@@ -144,6 +144,9 @@ |
||
| 144 | 144 | return true; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $path |
|
| 149 | + */ |
|
| 147 | 150 | public function url_stat($path) { |
| 148 | 151 | if (isset(self::$data[$path])) { |
| 149 | 152 | $size = strlen(self::$data[$path]); |
@@ -22,14 +22,11 @@ |
||
| 22 | 22 | namespace OCA\DAV\Connector\Sabre; |
| 23 | 23 | |
| 24 | 24 | use Sabre\DAV\Exception\NotFound; |
| 25 | -use Sabre\DAV\IFile; |
|
| 26 | 25 | use Sabre\DAV\INode; |
| 27 | 26 | use \Sabre\DAV\PropFind; |
| 28 | 27 | use \Sabre\DAV\PropPatch; |
| 29 | -use Sabre\DAVACL\Exception\NeedPrivileges; |
|
| 30 | 28 | use \Sabre\HTTP\RequestInterface; |
| 31 | 29 | use \Sabre\HTTP\ResponseInterface; |
| 32 | -use Sabre\HTTP\URLUtil; |
|
| 33 | 30 | |
| 34 | 31 | /** |
| 35 | 32 | * Class DavAclPlugin is a wrapper around \Sabre\DAVACL\Plugin that returns 404 |