@@ -30,7 +30,7 @@ |
||
30 | 30 | <h2><?php p($l->t('Connect to your account')) ?></h2> |
31 | 31 | <p class="info"> |
32 | 32 | <?php print_unescaped($l->t('Please log in before granting %1$s access to your %2$s account.', [ |
33 | - '<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>', |
|
33 | + '<strong>'.\OCP\Util::sanitizeHTML($_['client']).'</strong>', |
|
34 | 34 | \OCP\Util::sanitizeHTML($_['instanceName']) |
35 | 35 | ])) ?> |
36 | 36 | </p> |
@@ -31,7 +31,7 @@ |
||
31 | 31 | <h2><?php p($l->t('Account access')) ?></h2> |
32 | 32 | <p class="info"> |
33 | 33 | <?php print_unescaped($l->t('You are about to grant %1$s access to your %2$s account.', [ |
34 | - '<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>', |
|
34 | + '<strong>'.\OCP\Util::sanitizeHTML($_['client']).'</strong>', |
|
35 | 35 | \OCP\Util::sanitizeHTML($_['instanceName']) |
36 | 36 | ])) ?> |
37 | 37 | </p> |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** @var bool */ |
51 | 51 | private $canPurgeToSaveSpace; |
52 | 52 | |
53 | - public function __construct(IConfig $config,ITimeFactory $timeFactory) { |
|
53 | + public function __construct(IConfig $config, ITimeFactory $timeFactory) { |
|
54 | 54 | $this->timeFactory = $timeFactory; |
55 | 55 | $this->setRetentionObligation($config->getSystemValue('trashbin_retention_obligation', 'auto')); |
56 | 56 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $time = $this->timeFactory->getTime(); |
92 | 92 | // Never expire dates in future e.g. misconfiguration or negative time |
93 | 93 | // adjustment |
94 | - if ($time<$timestamp) { |
|
94 | + if ($time < $timestamp) { |
|
95 | 95 | return false; |
96 | 96 | } |
97 | 97 | |
@@ -149,13 +149,13 @@ discard block |
||
149 | 149 | $this->canPurgeToSaveSpace = true; |
150 | 150 | } elseif ($minValue !== 'auto' && $maxValue === 'auto') { |
151 | 151 | // Keep for X days but delete anytime if space needed |
152 | - $this->minAge = (int)$minValue; |
|
152 | + $this->minAge = (int) $minValue; |
|
153 | 153 | $this->maxAge = self::NO_OBLIGATION; |
154 | 154 | $this->canPurgeToSaveSpace = true; |
155 | 155 | } elseif ($minValue === 'auto' && $maxValue !== 'auto') { |
156 | 156 | // Delete anytime if space needed, Delete all older than max automatically |
157 | 157 | $this->minAge = self::NO_OBLIGATION; |
158 | - $this->maxAge = (int)$maxValue; |
|
158 | + $this->maxAge = (int) $maxValue; |
|
159 | 159 | $this->canPurgeToSaveSpace = true; |
160 | 160 | } elseif ($minValue !== 'auto' && $maxValue !== 'auto') { |
161 | 161 | // Delete all older than max OR older than min if space needed |
@@ -165,8 +165,8 @@ discard block |
||
165 | 165 | $maxValue = $minValue; |
166 | 166 | } |
167 | 167 | |
168 | - $this->minAge = (int)$minValue; |
|
169 | - $this->maxAge = (int)$maxValue; |
|
168 | + $this->minAge = (int) $minValue; |
|
169 | + $this->maxAge = (int) $maxValue; |
|
170 | 170 | $this->canPurgeToSaveSpace = false; |
171 | 171 | } |
172 | 172 | } |
@@ -32,14 +32,14 @@ discard block |
||
32 | 32 | $eventDispatcher = \OC::$server->getEventDispatcher(); |
33 | 33 | $eventDispatcher->addListener( |
34 | 34 | 'OCA\Files::loadAdditionalScripts', |
35 | - function () { |
|
35 | + function() { |
|
36 | 36 | // FIXME: no public API for these ? |
37 | 37 | \OCP\Util::addScript('dist/systemtags'); |
38 | 38 | \OCP\Util::addScript('systemtags', 'systemtags'); |
39 | 39 | } |
40 | 40 | ); |
41 | 41 | |
42 | -$managerListener = function (ManagerEvent $event) { |
|
42 | +$managerListener = function(ManagerEvent $event) { |
|
43 | 43 | /** @var \OCA\SystemTags\Activity\Listener $listener */ |
44 | 44 | $listener = \OC::$server->query(Listener::class); |
45 | 45 | $listener->event($event); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $eventDispatcher->addListener(ManagerEvent::EVENT_DELETE, $managerListener); |
50 | 50 | $eventDispatcher->addListener(ManagerEvent::EVENT_UPDATE, $managerListener); |
51 | 51 | |
52 | -$mapperListener = function (MapperEvent $event) { |
|
52 | +$mapperListener = function(MapperEvent $event) { |
|
53 | 53 | $application = new \OCP\AppFramework\App('systemtags'); |
54 | 54 | /** @var \OCA\SystemTags\Activity\Listener $listener */ |
55 | 55 | $listener = \OC::$server->query(Listener::class); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $eventDispatcher->addListener(MapperEvent::EVENT_ASSIGN, $mapperListener); |
60 | 60 | $eventDispatcher->addListener(MapperEvent::EVENT_UNASSIGN, $mapperListener); |
61 | 61 | |
62 | -\OCA\Files\App::getNavigationManager()->add(function () { |
|
62 | +\OCA\Files\App::getNavigationManager()->add(function() { |
|
63 | 63 | $l = \OC::$server->getL10N('systemtags'); |
64 | 64 | return [ |
65 | 65 | 'id' => 'systemtagsfilter', |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * Controller |
44 | 44 | */ |
45 | - $container->registerService('RenewPasswordController', function (IAppContainer $c) { |
|
45 | + $container->registerService('RenewPasswordController', function(IAppContainer $c) { |
|
46 | 46 | /** @var \OC\Server $server */ |
47 | 47 | $server = $c->query('ServerContainer'); |
48 | 48 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | ); |
58 | 58 | }); |
59 | 59 | |
60 | - $container->registerService(ILDAPWrapper::class, function () { |
|
60 | + $container->registerService(ILDAPWrapper::class, function() { |
|
61 | 61 | return new LDAP(); |
62 | 62 | }); |
63 | 63 | } |
@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | |
68 | 68 | $container->getServer()->getEventDispatcher()->addListener( |
69 | 69 | 'OCA\\Files_External::loadAdditionalBackends', |
70 | - function () use ($container) { |
|
70 | + function() use ($container) { |
|
71 | 71 | $storagesBackendService = $container->query(BackendService::class); |
72 | - $storagesBackendService->registerConfigHandler('home', function () use ($container) { |
|
72 | + $storagesBackendService->registerConfigHandler('home', function() use ($container) { |
|
73 | 73 | return $container->query(ExtStorageConfigHandler::class); |
74 | 74 | }); |
75 | 75 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | */ |
50 | 50 | public function registerHooksAndEvents(): void { |
51 | 51 | $dispatcher = $this->getContainer()->getServer()->getEventDispatcher(); |
52 | - $dispatcher->addListener('OC\AccountManager::userUpdated', static function (GenericEvent $event) { |
|
52 | + $dispatcher->addListener('OC\AccountManager::userUpdated', static function(GenericEvent $event) { |
|
53 | 53 | /** @var IUser $user */ |
54 | 54 | $user = $event->getSubject(); |
55 | 55 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | protected function run($argument) { |
60 | - $this->userManager->callForSeenUsers(function (IUser $user) { |
|
60 | + $this->userManager->callForSeenUsers(function(IUser $user) { |
|
61 | 61 | $providers = $this->registry->getProviderStates($user); |
62 | 62 | $isTwoFactorAuthenticated = $this->twofactorManager->isTwoFactorAuthenticated($user); |
63 | 63 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $this->notificationManager = $notificationManager; |
60 | 60 | $this->jobList = $jobList; |
61 | 61 | |
62 | - $this->setInterval(60*60*24*14); |
|
62 | + $this->setInterval(60 * 60 * 24 * 14); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | protected function run($argument) { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | } |
73 | 73 | |
74 | 74 | $providers = $this->registry->getProviderStates($user); |
75 | - $state2fa = array_reduce($providers, function (bool $carry, bool $state) { |
|
75 | + $state2fa = array_reduce($providers, function(bool $carry, bool $state) { |
|
76 | 76 | return $carry || $state; |
77 | 77 | }, false); |
78 | 78 |
@@ -143,7 +143,7 @@ |
||
143 | 143 | * @return boolean |
144 | 144 | */ |
145 | 145 | public function isActive(IUser $user): bool { |
146 | - $appIds = array_filter($this->appManager->getEnabledAppsForUser($user), function ($appId) { |
|
146 | + $appIds = array_filter($this->appManager->getEnabledAppsForUser($user), function($appId) { |
|
147 | 147 | return $appId !== $this->appName; |
148 | 148 | }); |
149 | 149 | foreach ($appIds as $appId) { |