@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace App\Model; |
6 | 6 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | ); |
178 | 178 | |
179 | 179 | if ($forJson) { |
180 | - return array_map(function (Edit $edit) { |
|
180 | + return array_map(function(Edit $edit) { |
|
181 | 181 | return $edit->getForJson(); |
182 | 182 | }, $this->nonAutomatedEdits); |
183 | 183 | } |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | ); |
218 | 218 | |
219 | 219 | if ($forJson) { |
220 | - return array_map(function (Edit $edit) { |
|
220 | + return array_map(function(Edit $edit) { |
|
221 | 221 | return $edit->getForJson(); |
222 | 222 | }, $this->automatedEdits); |
223 | 223 | } |
@@ -269,8 +269,8 @@ discard block |
||
269 | 269 | public function getToolsTotal(): int |
270 | 270 | { |
271 | 271 | if (!isset($this->toolsTotal)) { |
272 | - $this->toolsTotal = array_reduce($this->getToolCounts(), function ($a, $b) { |
|
273 | - return $a + $b['count']; |
|
272 | + $this->toolsTotal = array_reduce($this->getToolCounts(), function($a, $b) { |
|
273 | + return $a+$b['count']; |
|
274 | 274 | }); |
275 | 275 | } |
276 | 276 |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | string $centralAuthProject |
68 | 68 | ): RedirectResponse { |
69 | 69 | try { |
70 | - [ $next, $token ] = $this->getOauthClient($request, $projectRepo, $centralAuthProject)->initiate(); |
|
70 | + [$next, $token] = $this->getOauthClient($request, $projectRepo, $centralAuthProject)->initiate(); |
|
71 | 71 | } catch (Exception $oauthException) { |
72 | 72 | $this->addFlashMessage('notice', 'error-login'); |
73 | 73 | return $this->redirectToRoute('homepage'); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | . '?title=Special:OAuth'; |
155 | 155 | $conf = new ClientConfig($endpoint); |
156 | 156 | $consumerKey = $this->getParameter('oauth_key'); |
157 | - $consumerSecret = $this->getParameter('oauth_secret'); |
|
157 | + $consumerSecret = $this->getParameter('oauth_secret'); |
|
158 | 158 | $conf->setConsumer(new Consumer($consumerKey, $consumerSecret)); |
159 | 159 | $this->oauthClient = new Client($conf); |
160 | 160 |