@@ -68,7 +68,7 @@ |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | - * @return int |
|
| 71 | + * @return string |
|
| 72 | 72 | */ |
| 73 | 73 | static private function getRefreshInterval() { |
| 74 | 74 | //defaults to every hour |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | |
| 25 | 25 | use OC\Files\Filesystem; |
| 26 | 26 | use OC\Files\View; |
| 27 | -use OC\Lock\MemcacheLockingProvider; |
|
| 28 | 27 | use OCP\Lock\ILockingProvider; |
| 29 | 28 | |
| 30 | 29 | class Locking extends TestCase { |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * @param string $appName |
| 54 | 54 | * @param IRequest $request |
| 55 | - * @param Manager $userManager |
|
| 55 | + * @param UserManager $userManager |
|
| 56 | 56 | * @param DefaultTokenProvider $tokenProvider |
| 57 | 57 | * @param ISecureRandom $secureRandom |
| 58 | 58 | */ |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | * |
| 214 | 214 | * @param \Google_Service_Drive_DriveFile |
| 215 | 215 | * |
| 216 | - * @return true if the file is a Google Doc file, false otherwise |
|
| 216 | + * @return boolean if the file is a Google Doc file, false otherwise |
|
| 217 | 217 | */ |
| 218 | 218 | private function isGoogleDocFile($file) { |
| 219 | 219 | return $this->getGoogleDocExtension($file->getMimeType()) !== ''; |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * RemoveOldCalendarShares constructor. |
| 22 | 22 | * |
| 23 | - * @param IDBConnection $db |
|
| 24 | 23 | */ |
| 25 | 24 | public function __construct(IDBConnection $connection) { |
| 26 | 25 | $this->connection = $connection; |
@@ -278,6 +278,7 @@ |
||
| 278 | 278 | * get default share folder |
| 279 | 279 | * |
| 280 | 280 | * @param \OC\Files\View |
| 281 | + * @param View $view |
|
| 281 | 282 | * @return string |
| 282 | 283 | */ |
| 283 | 284 | public static function getShareFolder($view = null) { |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | * @param IRequest $request |
| 301 | 301 | * @throws LoginException |
| 302 | 302 | * @throws PasswordLoginForbiddenException |
| 303 | - * @return boolean |
|
| 303 | + * @return boolean|null |
|
| 304 | 304 | */ |
| 305 | 305 | public function logClientIn($user, $password, IRequest $request) { |
| 306 | 306 | $isTokenPassword = $this->isTokenPassword($password); |
@@ -340,6 +340,9 @@ discard block |
||
| 340 | 340 | return $this->config->getSystemValue('token_auth_enforced', false); |
| 341 | 341 | } |
| 342 | 342 | |
| 343 | + /** |
|
| 344 | + * @param string $username |
|
| 345 | + */ |
|
| 343 | 346 | protected function isTwoFactorEnforced($username) { |
| 344 | 347 | Util::emitHook( |
| 345 | 348 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -27,13 +27,8 @@ |
||
| 27 | 27 | use OCA\Files_External\Lib\DefinitionParameter; |
| 28 | 28 | use OCA\Files_External\Service\BackendService; |
| 29 | 29 | use Symfony\Component\Console\Command\Command; |
| 30 | -use Symfony\Component\Console\Helper\Table; |
|
| 31 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 32 | -use Symfony\Component\Console\Input\ArrayInput; |
|
| 33 | 30 | use Symfony\Component\Console\Input\InputArgument; |
| 34 | 31 | use Symfony\Component\Console\Input\InputInterface; |
| 35 | -use Symfony\Component\Console\Input\InputOption; |
|
| 36 | -use Symfony\Component\Console\Input\Input; |
|
| 37 | 32 | use Symfony\Component\Console\Output\OutputInterface; |
| 38 | 33 | |
| 39 | 34 | class Backends extends Base { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace OCA\DAV\CalDAV\Publishing\Xml; |
| 4 | 4 | |
| 5 | -use OCA\DAV\CalDAV\Publishing\PublishPlugin as Plugin; |
|
| 6 | 5 | use Sabre\Xml\Writer; |
| 7 | 6 | use Sabre\Xml\XmlSerializable; |
| 8 | 7 | |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | use OC\Core\Command\Base; |
| 26 | 26 | use OC\User\NoUserException; |
| 27 | 27 | use OCA\Files_External\Lib\StorageConfig; |
| 28 | -use OCP\Files\External\IStorageConfig; |
|
| 29 | 28 | use OCA\Files_External\Service\BackendService; |
| 30 | 29 | use OCA\Files_External\Service\GlobalStoragesService; |
| 31 | 30 | use OCA\Files_External\Service\ImportLegacyStoragesService; |