@@ -26,7 +26,6 @@ discard block |
||
| 26 | 26 | use OCA\DAV\CalDAV\CalDavBackend; |
| 27 | 27 | use OCA\DAV\CardDAV\CardDavBackend; |
| 28 | 28 | use OCA\DAV\CardDAV\ContactsManager; |
| 29 | -use OCA\DAV\CardDAV\SyncJob; |
|
| 30 | 29 | use OCA\DAV\CardDAV\SyncService; |
| 31 | 30 | use OCA\DAV\Connector\Sabre\Principal; |
| 32 | 31 | use OCA\DAV\DAV\GroupPrincipalBackend; |
@@ -36,8 +35,6 @@ discard block |
||
| 36 | 35 | use \OCP\AppFramework\App; |
| 37 | 36 | use OCP\AppFramework\IAppContainer; |
| 38 | 37 | use OCP\Contacts\IManager; |
| 39 | -use OCP\IUser; |
|
| 40 | -use Sabre\VObject\Reader; |
|
| 41 | 38 | use Symfony\Component\EventDispatcher\GenericEvent; |
| 42 | 39 | |
| 43 | 40 | class Application extends App { |
@@ -303,6 +303,7 @@ |
||
| 303 | 303 | * get default share folder |
| 304 | 304 | * |
| 305 | 305 | * @param \OC\Files\View |
| 306 | + * @param View $view |
|
| 306 | 307 | * @return string |
| 307 | 308 | */ |
| 308 | 309 | public static function getShareFolder($view = null) { |
@@ -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; |
@@ -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 { |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | |
| 28 | 28 | use OC_App; |
| 29 | 29 | use OCP\Console\ConsoleEvent; |
| 30 | -use OCP\Defaults; |
|
| 31 | 30 | use OCP\IConfig; |
| 32 | 31 | use OCP\IRequest; |
| 33 | 32 | use Symfony\Component\Console\Application as SymfonyApplication; |
@@ -35,15 +35,6 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | namespace OC; |
| 37 | 37 | |
| 38 | -use Assetic\Asset\AssetCollection; |
|
| 39 | -use Assetic\Asset\FileAsset; |
|
| 40 | -use Assetic\AssetWriter; |
|
| 41 | -use Assetic\Filter\CssImportFilter; |
|
| 42 | -use Assetic\Filter\CssMinFilter; |
|
| 43 | -use Assetic\Filter\CssRewriteFilter; |
|
| 44 | -use Assetic\Filter\JSqueezeFilter; |
|
| 45 | -use Assetic\Filter\SeparatorFilter; |
|
| 46 | - |
|
| 47 | 38 | class TemplateLayout extends \OC_Template { |
| 48 | 39 | |
| 49 | 40 | private static $versionHash = ''; |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | |
| 23 | 23 | namespace OC\Core\Controller; |
| 24 | 24 | |
| 25 | -use OC\AppFramework\Utility\TimeFactory; |
|
| 26 | 25 | use OC\Authentication\TwoFactorAuth\Manager; |
| 27 | 26 | use OC\Security\Bruteforce\Throttler; |
| 28 | 27 | use OC\User\Session; |
@@ -22,13 +22,10 @@ |
||
| 22 | 22 | namespace OC\Core\Controller; |
| 23 | 23 | |
| 24 | 24 | use OC\AppFramework\Http; |
| 25 | -use OC\AppFramework\Utility\TimeFactory; |
|
| 26 | -use OC\Authentication\Token\DefaultTokenProvider; |
|
| 27 | 25 | use OC\Authentication\Token\IProvider; |
| 28 | 26 | use OC\Authentication\Token\IToken; |
| 29 | 27 | use OC\Authentication\TwoFactorAuth\Manager as TwoFactorAuthManager; |
| 30 | 28 | use OC\User\Manager as UserManager; |
| 31 | -use OCA\User_LDAP\User\Manager; |
|
| 32 | 29 | use OCP\AppFramework\Controller; |
| 33 | 30 | use OCP\AppFramework\Http\JSONResponse; |
| 34 | 31 | use OCP\IRequest; |
@@ -219,7 +219,7 @@ |
||
| 219 | 219 | * @param array $groupSharesById |
| 220 | 220 | * @param array $subShares |
| 221 | 221 | * |
| 222 | - * @return true if the share is valid, false if it needs repair |
|
| 222 | + * @return boolean if the share is valid, false if it needs repair |
|
| 223 | 223 | */ |
| 224 | 224 | private function isThisShareValid($groupSharesById, $subShares) { |
| 225 | 225 | $foundTargets = []; |