@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | // we shall not log on RemoteException |
55 | 55 | $server->addPlugin(new ExceptionLoggerPlugin('webdav', \OC::$server->getLogger())); |
56 | 56 | } |
57 | - $server->on('beforeMethod', function () use ($e) { |
|
57 | + $server->on('beforeMethod', function() use ($e) { |
|
58 | 58 | if ($e instanceof RemoteException) { |
59 | 59 | switch ($e->getCode()) { |
60 | 60 | case OC_Response::STATUS_SERVICE_UNAVAILABLE: |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $server->exec(); |
71 | 71 | } else { |
72 | 72 | $statusCode = OC_Response::STATUS_INTERNAL_SERVER_ERROR; |
73 | - if ($e instanceof \OC\ServiceUnavailableException ) { |
|
73 | + if ($e instanceof \OC\ServiceUnavailableException) { |
|
74 | 74 | $statusCode = OC_Response::STATUS_SERVICE_UNAVAILABLE; |
75 | 75 | } |
76 | 76 | if ($e instanceof RemoteException) { |
@@ -103,11 +103,11 @@ discard block |
||
103 | 103 | return $services[$service]; |
104 | 104 | } |
105 | 105 | |
106 | - return \OC::$server->getConfig()->getAppValue('core', 'remote_' . $service); |
|
106 | + return \OC::$server->getConfig()->getAppValue('core', 'remote_'.$service); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | try { |
110 | - require_once __DIR__ . '/lib/base.php'; |
|
110 | + require_once __DIR__.'/lib/base.php'; |
|
111 | 111 | |
112 | 112 | // All resources served via the DAV endpoint should have the strictest possible |
113 | 113 | // policy. Exempted from this is the SabreDAV browser plugin which overwrites |
@@ -128,21 +128,21 @@ discard block |
||
128 | 128 | if (!$pos = strpos($pathInfo, '/', 1)) { |
129 | 129 | $pos = strlen($pathInfo); |
130 | 130 | } |
131 | - $service=substr($pathInfo, 1, $pos-1); |
|
131 | + $service = substr($pathInfo, 1, $pos - 1); |
|
132 | 132 | |
133 | 133 | $file = resolveService($service); |
134 | 134 | |
135 | - if(is_null($file)) { |
|
135 | + if (is_null($file)) { |
|
136 | 136 | throw new RemoteException('Path not found', OC_Response::STATUS_NOT_FOUND); |
137 | 137 | } |
138 | 138 | |
139 | 139 | // force language as given in the http request |
140 | 140 | \OC::$server->getL10NFactory()->setLanguageFromRequest(); |
141 | 141 | |
142 | - $file=ltrim($file, '/'); |
|
142 | + $file = ltrim($file, '/'); |
|
143 | 143 | |
144 | - $parts=explode('/', $file, 2); |
|
145 | - $app=$parts[0]; |
|
144 | + $parts = explode('/', $file, 2); |
|
145 | + $app = $parts[0]; |
|
146 | 146 | |
147 | 147 | // Load all required applications |
148 | 148 | \OC::$REQUESTEDAPP = $app; |
@@ -151,17 +151,17 @@ discard block |
||
151 | 151 | |
152 | 152 | switch ($app) { |
153 | 153 | case 'core': |
154 | - $file = OC::$SERVERROOT .'/'. $file; |
|
154 | + $file = OC::$SERVERROOT.'/'.$file; |
|
155 | 155 | break; |
156 | 156 | default: |
157 | 157 | if (!\OC::$server->getAppManager()->isInstalled($app)) { |
158 | - throw new RemoteException('App not installed: ' . $app); |
|
158 | + throw new RemoteException('App not installed: '.$app); |
|
159 | 159 | } |
160 | 160 | OC_App::loadApp($app); |
161 | - $file = OC_App::getAppPath($app) .'/'. $parts[1]; |
|
161 | + $file = OC_App::getAppPath($app).'/'.$parts[1]; |
|
162 | 162 | break; |
163 | 163 | } |
164 | - $baseuri = OC::$WEBROOT . '/remote.php/'.$service.'/'; |
|
164 | + $baseuri = OC::$WEBROOT.'/remote.php/'.$service.'/'; |
|
165 | 165 | require_once $file; |
166 | 166 | |
167 | 167 | } catch (Exception $ex) { |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | print_unescaped($l->t("Hey there,\n\njust letting you know that %s shared %s with you.\nView it: %s\n\n", array($_['user_displayname'], $_['filename'], $_['link']))); |
3 | -if ( isset($_['expiration']) ) { |
|
3 | +if (isset($_['expiration'])) { |
|
4 | 4 | print_unescaped($l->t("The share will expire on %s.", array($_['expiration']))); |
5 | 5 | print_unescaped("\n\n"); |
6 | 6 | } |
@@ -9,5 +9,5 @@ discard block |
||
9 | 9 | ?> |
10 | 10 | |
11 | 11 | -- |
12 | -<?php p($theme->getName() . ' - ' . $theme->getSlogan()); ?> |
|
12 | +<?php p($theme->getName().' - '.$theme->getSlogan()); ?> |
|
13 | 13 | <?php print_unescaped("\n".$theme->getBaseUrl()); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | </p> |
35 | 35 | <input type="submit" id="submit" value="<?php p($l->t('Reset password')); ?>" /> |
36 | 36 | <p class="text-center"> |
37 | - <img class="hidden" id="float-spinner" src="<?php p(image_path('core', 'loading-dark.gif'));?>"/> |
|
37 | + <img class="hidden" id="float-spinner" src="<?php p(image_path('core', 'loading-dark.gif')); ?>"/> |
|
38 | 38 | </p> |
39 | 39 | </fieldset> |
40 | 40 | </form> |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | <form method="post" name="login"> |
13 | 13 | <fieldset> |
14 | 14 | <?php if (!empty($_['redirect_url'])) { |
15 | - print_unescaped('<input type="hidden" name="redirect_url" value="' . \OCP\Util::sanitizeHTML($_['redirect_url']) . '">'); |
|
15 | + print_unescaped('<input type="hidden" name="redirect_url" value="'.\OCP\Util::sanitizeHTML($_['redirect_url']).'">'); |
|
16 | 16 | } ?> |
17 | 17 | <?php if (isset($_['apacheauthfailed']) && ($_['apacheauthfailed'])): ?> |
18 | 18 | <div class="warning"> |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | <small><?php p($l->t('Please contact your administrator.')); ?></small> |
21 | 21 | </div> |
22 | 22 | <?php endif; ?> |
23 | - <?php foreach($_['messages'] as $message): ?> |
|
23 | + <?php foreach ($_['messages'] as $message): ?> |
|
24 | 24 | <div class="warning"> |
25 | 25 | <?php p($message); ?><br> |
26 | 26 | </div> |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | <?php endif; ?> |
34 | 34 | <div id="message" class="hidden"> |
35 | 35 | <img class="float-spinner" alt="" |
36 | - src="<?php p(image_path('core', 'loading-dark.gif'));?>"> |
|
36 | + src="<?php p(image_path('core', 'loading-dark.gif')); ?>"> |
|
37 | 37 | <span id="messageText"></span> |
38 | 38 | <!-- the following div ensures that the spinner is always inside the #message div --> |
39 | 39 | <div style="clear: both;"></div> |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | <fieldset> |
89 | 89 | <legend><?php p($l->t('Alternative Logins')) ?></legend> |
90 | 90 | <ul> |
91 | - <?php foreach($_['alt_login'] as $login): ?> |
|
91 | + <?php foreach ($_['alt_login'] as $login): ?> |
|
92 | 92 | <li><a class="button" href="<?php print_unescaped($login['href']); ?>" ><?php p($login['name']); ?></a></li> |
93 | 93 | <?php endforeach; ?> |
94 | 94 | </ul> |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <ul class="error-wide"> |
2 | - <?php foreach($_["errors"] as $error):?> |
|
2 | + <?php foreach ($_["errors"] as $error):?> |
|
3 | 3 | <li class='error'> |
4 | 4 | <?php p($error['error']) ?><br> |
5 | - <?php if(isset($error['hint']) && $error['hint']): ?> |
|
5 | + <?php if (isset($error['hint']) && $error['hint']): ?> |
|
6 | 6 | <p class='hint'><?php print_unescaped($error['hint']) ?></p> |
7 | - <?php endif;?> |
|
7 | + <?php endif; ?> |
|
8 | 8 | </li> |
9 | 9 | <?php endforeach ?> |
10 | 10 | </ul> |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // @codeCoverageIgnoreStart |
3 | -if(!isset($_)) {//also provide standalone error page |
|
3 | +if (!isset($_)) {//also provide standalone error page |
|
4 | 4 | require_once '../../lib/base.php'; |
5 | 5 | |
6 | - $tmpl = new OC_Template( '', '403', 'guest' ); |
|
6 | + $tmpl = new OC_Template('', '403', 'guest'); |
|
7 | 7 | $tmpl->printPage(); |
8 | 8 | exit; |
9 | 9 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | ?> |
12 | 12 | <ul> |
13 | 13 | <li class='error'> |
14 | - <?php p($l->t( 'Access forbidden' )); ?><br> |
|
15 | - <p class='hint'><?php if(isset($_['file'])) p($_['file'])?></p> |
|
14 | + <?php p($l->t('Access forbidden')); ?><br> |
|
15 | + <p class='hint'><?php if (isset($_['file'])) p($_['file'])?></p> |
|
16 | 16 | </li> |
17 | 17 | </ul> |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | <ul> |
16 | 16 | <li><?php p($l->t('Remote Address: %s', $_['remoteAddr'])) ?></li> |
17 | 17 | <li><?php p($l->t('Request ID: %s', $_['requestID'])) ?></li> |
18 | - <?php if($_['debugMode']): ?> |
|
18 | + <?php if ($_['debugMode']): ?> |
|
19 | 19 | <li><?php p($l->t('Type: %s', $_['errorClass'])) ?></li> |
20 | 20 | <li><?php p($l->t('Code: %s', $_['errorCode'])) ?></li> |
21 | 21 | <li><?php p($l->t('Message: %s', $_['errorMsg'])) ?></li> |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | <?php endif; ?> |
25 | 25 | </ul> |
26 | 26 | |
27 | - <?php if($_['debugMode']): ?> |
|
27 | + <?php if ($_['debugMode']): ?> |
|
28 | 28 | <br /> |
29 | 29 | <h2><strong><?php p($l->t('Trace')) ?></strong></h2> |
30 | 30 | <pre><?php p($_['trace']) ?></pre> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | // need to send an initial message to force-init the event source, |
39 | 39 | // which will then trigger its own CSRF check and produces its own CSRF error |
40 | 40 | // message |
41 | -$eventSource->send('success', (string)$l->t('Preparing update')); |
|
41 | +$eventSource->send('success', (string) $l->t('Preparing update')); |
|
42 | 42 | |
43 | 43 | class FeedBackHandler { |
44 | 44 | /** @var integer */ |
@@ -70,21 +70,21 @@ discard block |
||
70 | 70 | if (empty($desc)) { |
71 | 71 | $desc = $this->currentStep; |
72 | 72 | } |
73 | - $this->eventSource->send('success', (string)$this->l10n->t('[%d / %d]: %s', [$this->progressStateStep, $this->progressStateMax, $desc])); |
|
73 | + $this->eventSource->send('success', (string) $this->l10n->t('[%d / %d]: %s', [$this->progressStateStep, $this->progressStateMax, $desc])); |
|
74 | 74 | break; |
75 | 75 | case '\OC\Repair::finishProgress': |
76 | 76 | $this->progressStateMax = $this->progressStateStep; |
77 | - $this->eventSource->send('success', (string)$this->l10n->t('[%d / %d]: %s', [$this->progressStateStep, $this->progressStateMax, $this->currentStep])); |
|
77 | + $this->eventSource->send('success', (string) $this->l10n->t('[%d / %d]: %s', [$this->progressStateStep, $this->progressStateMax, $this->currentStep])); |
|
78 | 78 | break; |
79 | 79 | case '\OC\Repair::step': |
80 | 80 | break; |
81 | 81 | case '\OC\Repair::info': |
82 | 82 | break; |
83 | 83 | case '\OC\Repair::warning': |
84 | - $this->eventSource->send('notice', (string)$this->l10n->t('Repair warning: ') . $event->getArgument(0)); |
|
84 | + $this->eventSource->send('notice', (string) $this->l10n->t('Repair warning: ').$event->getArgument(0)); |
|
85 | 85 | break; |
86 | 86 | case '\OC\Repair::error': |
87 | - $this->eventSource->send('notice', (string)$this->l10n->t('Repair error: ') . $event->getArgument(0)); |
|
87 | + $this->eventSource->send('notice', (string) $this->l10n->t('Repair error: ').$event->getArgument(0)); |
|
88 | 88 | break; |
89 | 89 | } |
90 | 90 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | $config = \OC::$server->getSystemConfig(); |
96 | 96 | if ($config->getValue('upgrade.disable-web', false)) { |
97 | - $eventSource->send('failure', (string)$l->t('Please use the command line updater because automatic updating is disabled in the config.php.')); |
|
97 | + $eventSource->send('failure', (string) $l->t('Please use the command line updater because automatic updating is disabled in the config.php.')); |
|
98 | 98 | $eventSource->close(); |
99 | 99 | exit(); |
100 | 100 | } |
@@ -116,12 +116,12 @@ discard block |
||
116 | 116 | $dispatcher = \OC::$server->getEventDispatcher(); |
117 | 117 | $dispatcher->addListener('\OC\DB\Migrator::executeSql', function($event) use ($eventSource, $l) { |
118 | 118 | if ($event instanceof GenericEvent) { |
119 | - $eventSource->send('success', (string)$l->t('[%d / %d]: %s', [$event[0], $event[1], $event->getSubject()])); |
|
119 | + $eventSource->send('success', (string) $l->t('[%d / %d]: %s', [$event[0], $event[1], $event->getSubject()])); |
|
120 | 120 | } |
121 | 121 | }); |
122 | 122 | $dispatcher->addListener('\OC\DB\Migrator::checkTable', function($event) use ($eventSource, $l) { |
123 | 123 | if ($event instanceof GenericEvent) { |
124 | - $eventSource->send('success', (string)$l->t('[%d / %d]: Checking table %s', [$event[0], $event[1], $event->getSubject()])); |
|
124 | + $eventSource->send('success', (string) $l->t('[%d / %d]: Checking table %s', [$event[0], $event[1], $event->getSubject()])); |
|
125 | 125 | } |
126 | 126 | }); |
127 | 127 | $feedBack = new FeedBackHandler($eventSource, $l); |
@@ -133,67 +133,67 @@ discard block |
||
133 | 133 | $dispatcher->addListener('\OC\Repair::warning', [$feedBack, 'handleRepairFeedback']); |
134 | 134 | $dispatcher->addListener('\OC\Repair::error', [$feedBack, 'handleRepairFeedback']); |
135 | 135 | |
136 | - $updater->listen('\OC\Updater', 'maintenanceEnabled', function () use ($eventSource, $l) { |
|
137 | - $eventSource->send('success', (string)$l->t('Turned on maintenance mode')); |
|
136 | + $updater->listen('\OC\Updater', 'maintenanceEnabled', function() use ($eventSource, $l) { |
|
137 | + $eventSource->send('success', (string) $l->t('Turned on maintenance mode')); |
|
138 | 138 | }); |
139 | - $updater->listen('\OC\Updater', 'maintenanceDisabled', function () use ($eventSource, $l) { |
|
140 | - $eventSource->send('success', (string)$l->t('Turned off maintenance mode')); |
|
139 | + $updater->listen('\OC\Updater', 'maintenanceDisabled', function() use ($eventSource, $l) { |
|
140 | + $eventSource->send('success', (string) $l->t('Turned off maintenance mode')); |
|
141 | 141 | }); |
142 | - $updater->listen('\OC\Updater', 'maintenanceActive', function () use ($eventSource, $l) { |
|
143 | - $eventSource->send('success', (string)$l->t('Maintenance mode is kept active')); |
|
142 | + $updater->listen('\OC\Updater', 'maintenanceActive', function() use ($eventSource, $l) { |
|
143 | + $eventSource->send('success', (string) $l->t('Maintenance mode is kept active')); |
|
144 | 144 | }); |
145 | - $updater->listen('\OC\Updater', 'dbUpgradeBefore', function () use($eventSource, $l) { |
|
146 | - $eventSource->send('success', (string)$l->t('Updating database schema')); |
|
145 | + $updater->listen('\OC\Updater', 'dbUpgradeBefore', function() use($eventSource, $l) { |
|
146 | + $eventSource->send('success', (string) $l->t('Updating database schema')); |
|
147 | 147 | }); |
148 | - $updater->listen('\OC\Updater', 'dbUpgrade', function () use ($eventSource, $l) { |
|
149 | - $eventSource->send('success', (string)$l->t('Updated database')); |
|
148 | + $updater->listen('\OC\Updater', 'dbUpgrade', function() use ($eventSource, $l) { |
|
149 | + $eventSource->send('success', (string) $l->t('Updated database')); |
|
150 | 150 | }); |
151 | - $updater->listen('\OC\Updater', 'dbSimulateUpgradeBefore', function () use($eventSource, $l) { |
|
152 | - $eventSource->send('success', (string)$l->t('Checking whether the database schema can be updated (this can take a long time depending on the database size)')); |
|
151 | + $updater->listen('\OC\Updater', 'dbSimulateUpgradeBefore', function() use($eventSource, $l) { |
|
152 | + $eventSource->send('success', (string) $l->t('Checking whether the database schema can be updated (this can take a long time depending on the database size)')); |
|
153 | 153 | }); |
154 | - $updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use ($eventSource, $l) { |
|
155 | - $eventSource->send('success', (string)$l->t('Checked database schema update')); |
|
154 | + $updater->listen('\OC\Updater', 'dbSimulateUpgrade', function() use ($eventSource, $l) { |
|
155 | + $eventSource->send('success', (string) $l->t('Checked database schema update')); |
|
156 | 156 | }); |
157 | - $updater->listen('\OC\Updater', 'appUpgradeCheckBefore', function () use ($eventSource, $l) { |
|
158 | - $eventSource->send('success', (string)$l->t('Checking updates of apps')); |
|
157 | + $updater->listen('\OC\Updater', 'appUpgradeCheckBefore', function() use ($eventSource, $l) { |
|
158 | + $eventSource->send('success', (string) $l->t('Checking updates of apps')); |
|
159 | 159 | }); |
160 | - $updater->listen('\OC\Updater', 'appSimulateUpdate', function ($app) use ($eventSource, $l) { |
|
161 | - $eventSource->send('success', (string)$l->t('Checking whether the database schema for %s can be updated (this can take a long time depending on the database size)', [$app])); |
|
160 | + $updater->listen('\OC\Updater', 'appSimulateUpdate', function($app) use ($eventSource, $l) { |
|
161 | + $eventSource->send('success', (string) $l->t('Checking whether the database schema for %s can be updated (this can take a long time depending on the database size)', [$app])); |
|
162 | 162 | }); |
163 | - $updater->listen('\OC\Updater', 'appUpgradeCheck', function () use ($eventSource, $l) { |
|
164 | - $eventSource->send('success', (string)$l->t('Checked database schema update for apps')); |
|
163 | + $updater->listen('\OC\Updater', 'appUpgradeCheck', function() use ($eventSource, $l) { |
|
164 | + $eventSource->send('success', (string) $l->t('Checked database schema update for apps')); |
|
165 | 165 | }); |
166 | - $updater->listen('\OC\Updater', 'appUpgrade', function ($app, $version) use ($eventSource, $l) { |
|
167 | - $eventSource->send('success', (string)$l->t('Updated "%s" to %s', array($app, $version))); |
|
166 | + $updater->listen('\OC\Updater', 'appUpgrade', function($app, $version) use ($eventSource, $l) { |
|
167 | + $eventSource->send('success', (string) $l->t('Updated "%s" to %s', array($app, $version))); |
|
168 | 168 | }); |
169 | - $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use (&$incompatibleApps) { |
|
170 | - $incompatibleApps[]= $app; |
|
169 | + $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function($app) use (&$incompatibleApps) { |
|
170 | + $incompatibleApps[] = $app; |
|
171 | 171 | }); |
172 | - $updater->listen('\OC\Updater', 'thirdPartyAppDisabled', function ($app) use (&$disabledThirdPartyApps) { |
|
173 | - $disabledThirdPartyApps[]= $app; |
|
172 | + $updater->listen('\OC\Updater', 'thirdPartyAppDisabled', function($app) use (&$disabledThirdPartyApps) { |
|
173 | + $disabledThirdPartyApps[] = $app; |
|
174 | 174 | }); |
175 | - $updater->listen('\OC\Updater', 'failure', function ($message) use ($eventSource, $config) { |
|
175 | + $updater->listen('\OC\Updater', 'failure', function($message) use ($eventSource, $config) { |
|
176 | 176 | $eventSource->send('failure', $message); |
177 | 177 | $eventSource->close(); |
178 | 178 | $config->setSystemValue('maintenance', false); |
179 | 179 | }); |
180 | - $updater->listen('\OC\Updater', 'setDebugLogLevel', function ($logLevel, $logLevelName) use($eventSource, $l) { |
|
181 | - $eventSource->send('success', (string)$l->t('Set log level to debug')); |
|
180 | + $updater->listen('\OC\Updater', 'setDebugLogLevel', function($logLevel, $logLevelName) use($eventSource, $l) { |
|
181 | + $eventSource->send('success', (string) $l->t('Set log level to debug')); |
|
182 | 182 | }); |
183 | - $updater->listen('\OC\Updater', 'resetLogLevel', function ($logLevel, $logLevelName) use($eventSource, $l) { |
|
184 | - $eventSource->send('success', (string)$l->t('Reset log level')); |
|
183 | + $updater->listen('\OC\Updater', 'resetLogLevel', function($logLevel, $logLevelName) use($eventSource, $l) { |
|
184 | + $eventSource->send('success', (string) $l->t('Reset log level')); |
|
185 | 185 | }); |
186 | - $updater->listen('\OC\Updater', 'startCheckCodeIntegrity', function () use($eventSource, $l) { |
|
187 | - $eventSource->send('success', (string)$l->t('Starting code integrity check')); |
|
186 | + $updater->listen('\OC\Updater', 'startCheckCodeIntegrity', function() use($eventSource, $l) { |
|
187 | + $eventSource->send('success', (string) $l->t('Starting code integrity check')); |
|
188 | 188 | }); |
189 | - $updater->listen('\OC\Updater', 'finishedCheckCodeIntegrity', function () use($eventSource, $l) { |
|
190 | - $eventSource->send('success', (string)$l->t('Finished code integrity check')); |
|
189 | + $updater->listen('\OC\Updater', 'finishedCheckCodeIntegrity', function() use($eventSource, $l) { |
|
190 | + $eventSource->send('success', (string) $l->t('Finished code integrity check')); |
|
191 | 191 | }); |
192 | 192 | |
193 | 193 | try { |
194 | 194 | $updater->upgrade(); |
195 | 195 | } catch (\Exception $e) { |
196 | - $eventSource->send('failure', get_class($e) . ': ' . $e->getMessage()); |
|
196 | + $eventSource->send('failure', get_class($e).': '.$e->getMessage()); |
|
197 | 197 | $eventSource->close(); |
198 | 198 | exit(); |
199 | 199 | } |
@@ -208,10 +208,10 @@ discard block |
||
208 | 208 | |
209 | 209 | if (!empty($disabledApps)) { |
210 | 210 | $eventSource->send('notice', |
211 | - (string)$l->t('Following apps have been disabled: %s', implode(', ', $disabledApps))); |
|
211 | + (string) $l->t('Following apps have been disabled: %s', implode(', ', $disabledApps))); |
|
212 | 212 | } |
213 | 213 | } else { |
214 | - $eventSource->send('notice', (string)$l->t('Already up to date')); |
|
214 | + $eventSource->send('notice', (string) $l->t('Already up to date')); |
|
215 | 215 | } |
216 | 216 | |
217 | 217 | $eventSource->send('done', ''); |
@@ -101,6 +101,6 @@ |
||
101 | 101 | }); |
102 | 102 | |
103 | 103 | // used for heartbeat |
104 | -$this->create('heartbeat', '/heartbeat')->action(function(){ |
|
104 | +$this->create('heartbeat', '/heartbeat')->action(function() { |
|
105 | 105 | // do nothing |
106 | 106 | }); |