@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | script('updatenotification', 'admin'); |
4 | 4 | style('updatenotification', 'admin'); |
5 | 5 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | <label for="release-channel"><?php p($l->t('Update channel:')) ?></label> |
52 | 52 | <select id="release-channel"> |
53 | 53 | <option value="<?php p($currentChannel); ?>"><?php p($currentChannel); ?></option> |
54 | - <?php foreach ($channels as $channel => $channelTitle){ ?> |
|
54 | + <?php foreach ($channels as $channel => $channelTitle) { ?> |
|
55 | 55 | <option value="<?php p($channelTitle) ?>"> |
56 | 56 | <?php p($channelTitle) ?> |
57 | 57 | </option> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * @copyright Copyright (c) 2016, ownCloud, Inc. |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * @copyright Copyright (c) 2016, ownCloud, Inc. |
5 | 5 | * |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $notification->setParsedSubject($l->t('Update to %1$s is available.', [$parameters['version']])); |
109 | 109 | |
110 | 110 | if ($this->isAdmin()) { |
111 | - $notification->setLink($this->url->linkToRouteAbsolute('settings.AdminSettings.index') . '#updater'); |
|
111 | + $notification->setLink($this->url->linkToRouteAbsolute('settings.AdminSettings.index').'#updater'); |
|
112 | 112 | } |
113 | 113 | } else { |
114 | 114 | $appInfo = $this->getAppInfo($notification->getObjectType()); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | ]); |
129 | 129 | |
130 | 130 | if ($this->isAdmin()) { |
131 | - $notification->setLink($this->url->linkToRouteAbsolute('settings.AppSettings.viewApps', ['category' => 'updates']) . '#app-' . $notification->getObjectType()); |
|
131 | + $notification->setLink($this->url->linkToRouteAbsolute('settings.AppSettings.viewApps', ['category' => 'updates']).'#app-'.$notification->getObjectType()); |
|
132 | 132 | } |
133 | 133 | } |
134 | 134 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * @copyright Copyright (c) 2018, Joas Schilling <[email protected]> |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * @copyright Copyright (c) 2016, ownCloud, Inc. |
5 | 5 | * |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function run($argument) { |
58 | 58 | // Delete old tokens after 2 days |
59 | - if($this->timeFactory->getTime() - $this->config->getAppValue('core', 'updater.secret.created', $this->timeFactory->getTime()) >= 172800) { |
|
59 | + if ($this->timeFactory->getTime() - $this->config->getAppValue('core', 'updater.secret.created', $this->timeFactory->getTime()) >= 172800) { |
|
60 | 60 | $this->config->deleteSystemValue('updater.secret'); |
61 | 61 | } |
62 | 62 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * @copyright Copyright (c) 2016, ownCloud, Inc. |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * @copyright Copyright (c) 2016, ownCloud, Inc. |
5 | 5 | * |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $currentChannel = Util::getChannel(); |
71 | 71 | |
72 | 72 | // Remove the currently used channel from the channels list |
73 | - if(($key = array_search($currentChannel, $channels, true)) !== false) { |
|
73 | + if (($key = array_search($currentChannel, $channels, true)) !== false) { |
|
74 | 74 | unset($channels[$key]); |
75 | 75 | } |
76 | 76 | $updateState = $this->updateChecker->getUpdateState(); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * @copyright Copyright (c) 2016, ownCloud, Inc. |
5 | 5 | * |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * @param array $data |
67 | 67 | */ |
68 | 68 | public function populateJavaScriptVariables(array $data) { |
69 | - $data['array']['oc_updateState'] = json_encode([ |
|
69 | + $data['array']['oc_updateState'] = json_encode([ |
|
70 | 70 | 'updateAvailable' => true, |
71 | 71 | 'updateVersion' => $this->getUpdateState()['updateVersion'], |
72 | 72 | 'updateLink' => $this->getUpdateState()['updateLink'] ?? '', |