@@ -34,18 +34,18 @@ |
||
| 34 | 34 | * @template-implements IEventListener<UserRemovedEvent> |
| 35 | 35 | */ |
| 36 | 36 | class UserRemovedListener implements IEventListener { |
| 37 | - /** @var IManager */ |
|
| 38 | - protected $shareManager; |
|
| 37 | + /** @var IManager */ |
|
| 38 | + protected $shareManager; |
|
| 39 | 39 | |
| 40 | - public function __construct(IManager $shareManager) { |
|
| 41 | - $this->shareManager = $shareManager; |
|
| 42 | - } |
|
| 40 | + public function __construct(IManager $shareManager) { |
|
| 41 | + $this->shareManager = $shareManager; |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | - public function handle(Event $event): void { |
|
| 45 | - if (!$event instanceof UserRemovedEvent) { |
|
| 46 | - return; |
|
| 47 | - } |
|
| 44 | + public function handle(Event $event): void { |
|
| 45 | + if (!$event instanceof UserRemovedEvent) { |
|
| 46 | + return; |
|
| 47 | + } |
|
| 48 | 48 | |
| 49 | - $this->shareManager->userDeletedFromGroup($event->getUser()->getUID(), $event->getGroup()->getGID()); |
|
| 50 | - } |
|
| 49 | + $this->shareManager->userDeletedFromGroup($event->getUser()->getUID(), $event->getGroup()->getGID()); |
|
| 50 | + } |
|
| 51 | 51 | } |
@@ -30,29 +30,29 @@ |
||
| 30 | 30 | use OCP\IServerContainer; |
| 31 | 31 | |
| 32 | 32 | class ManagerFactory implements ICommentsManagerFactory { |
| 33 | - /** |
|
| 34 | - * Server container |
|
| 35 | - * |
|
| 36 | - * @var IServerContainer |
|
| 37 | - */ |
|
| 38 | - private $serverContainer; |
|
| 33 | + /** |
|
| 34 | + * Server container |
|
| 35 | + * |
|
| 36 | + * @var IServerContainer |
|
| 37 | + */ |
|
| 38 | + private $serverContainer; |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * Constructor for the comments manager factory |
|
| 42 | - * |
|
| 43 | - * @param IServerContainer $serverContainer server container |
|
| 44 | - */ |
|
| 45 | - public function __construct(IServerContainer $serverContainer) { |
|
| 46 | - $this->serverContainer = $serverContainer; |
|
| 47 | - } |
|
| 40 | + /** |
|
| 41 | + * Constructor for the comments manager factory |
|
| 42 | + * |
|
| 43 | + * @param IServerContainer $serverContainer server container |
|
| 44 | + */ |
|
| 45 | + public function __construct(IServerContainer $serverContainer) { |
|
| 46 | + $this->serverContainer = $serverContainer; |
|
| 47 | + } |
|
| 48 | 48 | |
| 49 | - /** |
|
| 50 | - * creates and returns an instance of the ICommentsManager |
|
| 51 | - * |
|
| 52 | - * @return ICommentsManager |
|
| 53 | - * @since 9.0.0 |
|
| 54 | - */ |
|
| 55 | - public function getManager() { |
|
| 56 | - return $this->serverContainer->get(Manager::class); |
|
| 57 | - } |
|
| 49 | + /** |
|
| 50 | + * creates and returns an instance of the ICommentsManager |
|
| 51 | + * |
|
| 52 | + * @return ICommentsManager |
|
| 53 | + * @since 9.0.0 |
|
| 54 | + */ |
|
| 55 | + public function getManager() { |
|
| 56 | + return $this->serverContainer->get(Manager::class); |
|
| 57 | + } |
|
| 58 | 58 | } |
@@ -31,18 +31,18 @@ |
||
| 31 | 31 | use OCP\Migration\IRepairStep; |
| 32 | 32 | |
| 33 | 33 | class AddPreviewBackgroundCleanupJob implements IRepairStep { |
| 34 | - /** @var IJobList */ |
|
| 35 | - private $jobList; |
|
| 34 | + /** @var IJobList */ |
|
| 35 | + private $jobList; |
|
| 36 | 36 | |
| 37 | - public function __construct(IJobList $jobList) { |
|
| 38 | - $this->jobList = $jobList; |
|
| 39 | - } |
|
| 37 | + public function __construct(IJobList $jobList) { |
|
| 38 | + $this->jobList = $jobList; |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | - public function getName(): string { |
|
| 42 | - return 'Add preview background cleanup job'; |
|
| 43 | - } |
|
| 41 | + public function getName(): string { |
|
| 42 | + return 'Add preview background cleanup job'; |
|
| 43 | + } |
|
| 44 | 44 | |
| 45 | - public function run(IOutput $output) { |
|
| 46 | - $this->jobList->add(BackgroundCleanupJob::class); |
|
| 47 | - } |
|
| 45 | + public function run(IOutput $output) { |
|
| 46 | + $this->jobList->add(BackgroundCleanupJob::class); |
|
| 47 | + } |
|
| 48 | 48 | } |
@@ -28,18 +28,18 @@ |
||
| 28 | 28 | use OCP\Migration\IRepairStep; |
| 29 | 29 | |
| 30 | 30 | class AddCleanupUpdaterBackupsJob implements IRepairStep { |
| 31 | - /** @var IJobList */ |
|
| 32 | - protected $jobList; |
|
| 31 | + /** @var IJobList */ |
|
| 32 | + protected $jobList; |
|
| 33 | 33 | |
| 34 | - public function __construct(IJobList $jobList) { |
|
| 35 | - $this->jobList = $jobList; |
|
| 36 | - } |
|
| 34 | + public function __construct(IJobList $jobList) { |
|
| 35 | + $this->jobList = $jobList; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - public function getName() { |
|
| 39 | - return 'Queue a one-time job to cleanup old backups of the updater'; |
|
| 40 | - } |
|
| 38 | + public function getName() { |
|
| 39 | + return 'Queue a one-time job to cleanup old backups of the updater'; |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | - public function run(IOutput $output) { |
|
| 43 | - $this->jobList->add(BackgroundCleanupUpdaterBackupsJob::class); |
|
| 44 | - } |
|
| 42 | + public function run(IOutput $output) { |
|
| 43 | + $this->jobList->add(BackgroundCleanupUpdaterBackupsJob::class); |
|
| 44 | + } |
|
| 45 | 45 | } |
@@ -30,22 +30,22 @@ |
||
| 30 | 30 | use OCP\Migration\IRepairStep; |
| 31 | 31 | |
| 32 | 32 | class ShippedDashboardEnable implements IRepairStep { |
| 33 | - /** @var IConfig */ |
|
| 34 | - private $config; |
|
| 33 | + /** @var IConfig */ |
|
| 34 | + private $config; |
|
| 35 | 35 | |
| 36 | - public function __construct(IConfig $config) { |
|
| 37 | - $this->config = $config; |
|
| 38 | - } |
|
| 36 | + public function __construct(IConfig $config) { |
|
| 37 | + $this->config = $config; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - public function getName() { |
|
| 41 | - return 'Remove old dashboard app config data'; |
|
| 42 | - } |
|
| 40 | + public function getName() { |
|
| 41 | + return 'Remove old dashboard app config data'; |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | - public function run(IOutput $output) { |
|
| 45 | - $version = $this->config->getAppValue('dashboard', 'version', '7.0.0'); |
|
| 46 | - if (version_compare($version, '7.0.0', '<')) { |
|
| 47 | - $this->config->deleteAppValues('dashboard'); |
|
| 48 | - $output->info('Removed old dashboard app config'); |
|
| 49 | - } |
|
| 50 | - } |
|
| 44 | + public function run(IOutput $output) { |
|
| 45 | + $version = $this->config->getAppValue('dashboard', 'version', '7.0.0'); |
|
| 46 | + if (version_compare($version, '7.0.0', '<')) { |
|
| 47 | + $this->config->deleteAppValues('dashboard'); |
|
| 48 | + $output->info('Removed old dashboard app config'); |
|
| 49 | + } |
|
| 50 | + } |
|
| 51 | 51 | } |
@@ -28,18 +28,18 @@ |
||
| 28 | 28 | use OCP\Migration\IRepairStep; |
| 29 | 29 | |
| 30 | 30 | class AddLogRotateJob implements IRepairStep { |
| 31 | - /** @var IJobList */ |
|
| 32 | - private $jobList; |
|
| 31 | + /** @var IJobList */ |
|
| 32 | + private $jobList; |
|
| 33 | 33 | |
| 34 | - public function __construct(IJobList $jobList) { |
|
| 35 | - $this->jobList = $jobList; |
|
| 36 | - } |
|
| 34 | + public function __construct(IJobList $jobList) { |
|
| 35 | + $this->jobList = $jobList; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - public function getName() { |
|
| 39 | - return 'Add log rotate job'; |
|
| 40 | - } |
|
| 38 | + public function getName() { |
|
| 39 | + return 'Add log rotate job'; |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | - public function run(IOutput $output) { |
|
| 43 | - $this->jobList->add(Rotate::class); |
|
| 44 | - } |
|
| 42 | + public function run(IOutput $output) { |
|
| 43 | + $this->jobList->add(Rotate::class); |
|
| 44 | + } |
|
| 45 | 45 | } |
@@ -27,31 +27,31 @@ |
||
| 27 | 27 | use OCP\Migration\IRepairStep; |
| 28 | 28 | |
| 29 | 29 | class DropAccountTermsTable implements IRepairStep { |
| 30 | - /** @var IDBConnection */ |
|
| 31 | - protected $db; |
|
| 30 | + /** @var IDBConnection */ |
|
| 31 | + protected $db; |
|
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * @param IDBConnection $db |
|
| 35 | - */ |
|
| 36 | - public function __construct(IDBConnection $db) { |
|
| 37 | - $this->db = $db; |
|
| 38 | - } |
|
| 33 | + /** |
|
| 34 | + * @param IDBConnection $db |
|
| 35 | + */ |
|
| 36 | + public function __construct(IDBConnection $db) { |
|
| 37 | + $this->db = $db; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * @return string |
|
| 42 | - */ |
|
| 43 | - public function getName() { |
|
| 44 | - return 'Drop account terms table when migrating from ownCloud'; |
|
| 45 | - } |
|
| 40 | + /** |
|
| 41 | + * @return string |
|
| 42 | + */ |
|
| 43 | + public function getName() { |
|
| 44 | + return 'Drop account terms table when migrating from ownCloud'; |
|
| 45 | + } |
|
| 46 | 46 | |
| 47 | - /** |
|
| 48 | - * @param IOutput $output |
|
| 49 | - */ |
|
| 50 | - public function run(IOutput $output) { |
|
| 51 | - if (!$this->db->tableExists('account_terms')) { |
|
| 52 | - return; |
|
| 53 | - } |
|
| 47 | + /** |
|
| 48 | + * @param IOutput $output |
|
| 49 | + */ |
|
| 50 | + public function run(IOutput $output) { |
|
| 51 | + if (!$this->db->tableExists('account_terms')) { |
|
| 52 | + return; |
|
| 53 | + } |
|
| 54 | 54 | |
| 55 | - $this->db->dropTable('account_terms'); |
|
| 56 | - } |
|
| 55 | + $this->db->dropTable('account_terms'); |
|
| 56 | + } |
|
| 57 | 57 | } |
@@ -31,18 +31,18 @@ |
||
| 31 | 31 | use OCP\Migration\IRepairStep; |
| 32 | 32 | |
| 33 | 33 | class AddBruteForceCleanupJob implements IRepairStep { |
| 34 | - /** @var IJobList */ |
|
| 35 | - protected $jobList; |
|
| 34 | + /** @var IJobList */ |
|
| 35 | + protected $jobList; |
|
| 36 | 36 | |
| 37 | - public function __construct(IJobList $jobList) { |
|
| 38 | - $this->jobList = $jobList; |
|
| 39 | - } |
|
| 37 | + public function __construct(IJobList $jobList) { |
|
| 38 | + $this->jobList = $jobList; |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | - public function getName() { |
|
| 42 | - return 'Add job to cleanup the bruteforce entries'; |
|
| 43 | - } |
|
| 41 | + public function getName() { |
|
| 42 | + return 'Add job to cleanup the bruteforce entries'; |
|
| 43 | + } |
|
| 44 | 44 | |
| 45 | - public function run(IOutput $output) { |
|
| 46 | - $this->jobList->add(CleanupJob::class); |
|
| 47 | - } |
|
| 45 | + public function run(IOutput $output) { |
|
| 46 | + $this->jobList->add(CleanupJob::class); |
|
| 47 | + } |
|
| 48 | 48 | } |
@@ -31,18 +31,18 @@ |
||
| 31 | 31 | use OCP\Migration\IRepairStep; |
| 32 | 32 | |
| 33 | 33 | class AddClenupLoginFlowV2BackgroundJob implements IRepairStep { |
| 34 | - /** @var IJobList */ |
|
| 35 | - private $jobList; |
|
| 34 | + /** @var IJobList */ |
|
| 35 | + private $jobList; |
|
| 36 | 36 | |
| 37 | - public function __construct(IJobList $jobList) { |
|
| 38 | - $this->jobList = $jobList; |
|
| 39 | - } |
|
| 37 | + public function __construct(IJobList $jobList) { |
|
| 38 | + $this->jobList = $jobList; |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | - public function getName(): string { |
|
| 42 | - return 'Add background job to cleanup login flow v2 tokens'; |
|
| 43 | - } |
|
| 41 | + public function getName(): string { |
|
| 42 | + return 'Add background job to cleanup login flow v2 tokens'; |
|
| 43 | + } |
|
| 44 | 44 | |
| 45 | - public function run(IOutput $output) { |
|
| 46 | - $this->jobList->add(CleanupLoginFlowV2::class); |
|
| 47 | - } |
|
| 45 | + public function run(IOutput $output) { |
|
| 46 | + $this->jobList->add(CleanupLoginFlowV2::class); |
|
| 47 | + } |
|
| 48 | 48 | } |