@@ -1,5 +1,5 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | -declare(strict_types = 1);  | 
                                                        |
| 2 | +declare(strict_types=1);  | 
                                                        |
| 3 | 3 | |
| 4 | 4 | namespace App\Twig;  | 
                                                        
| 5 | 5 | |
@@ -1,6 +1,6 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | |
| 3 | -declare(strict_types = 1);  | 
                                                        |
| 3 | +declare(strict_types=1);  | 
                                                        |
| 4 | 4 | |
| 5 | 5 | namespace App;  | 
                                                        
| 6 | 6 | |
@@ -118,7 +118,7 @@  | 
                                                    ||
| 118 | 118 |          $actions = is_array($actionsQuery) ? $actionsQuery : explode('|', $actionsQuery); | 
                                                        
| 119 | 119 | |
| 120 | 120 | // Filter out any invalid section IDs.  | 
                                                        
| 121 | -        $actions = array_filter($actions, function ($action) use ($group) { | 
                                                        |
| 121 | +        $actions = array_filter($actions, function($action) use ($group) { | 
                                                        |
| 122 | 122 | return in_array($action, $this->getActionNames($group));  | 
                                                        
| 123 | 123 | });  | 
                                                        
| 124 | 124 | |
@@ -172,7 +172,7 @@ discard block  | 
                                                    ||
| 172 | 172 |          $sections = is_array($sectionsQuery) ? $sectionsQuery : explode('|', $sectionsQuery); | 
                                                        
| 173 | 173 | |
| 174 | 174 | // Filter out any invalid section IDs.  | 
                                                        
| 175 | -        $sections = array_filter($sections, function ($section) { | 
                                                        |
| 175 | +        $sections = array_filter($sections, function($section) { | 
                                                        |
| 176 | 176 | return in_array($section, $this->getSectionNames());  | 
                                                        
| 177 | 177 | });  | 
                                                        
| 178 | 178 | |
@@ -242,7 +242,7 @@ discard block  | 
                                                    ||
| 242 | 242 | }  | 
                                                        
| 243 | 243 | |
| 244 | 244 | $ret = [  | 
                                                        
| 245 | - 'xtTitle' => $this->user->getUsername() . ' - ' . $this->project->getTitle(),  | 
                                                        |
| 245 | + 'xtTitle' => $this->user->getUsername().' - '.$this->project->getTitle(),  | 
                                                        |
| 246 | 246 | 'xtPage' => 'EditCounter',  | 
                                                        
| 247 | 247 | 'user' => $this->user,  | 
                                                        
| 248 | 248 | 'project' => $this->project,  | 
                                                        
@@ -166,7 +166,7 @@  | 
                                                    ||
| 166 | 166 | // Send all to the template.  | 
                                                        
| 167 | 167 |          return $this->getFormattedResponse('topedits/result_article', [ | 
                                                        
| 168 | 168 | 'xtPage' => 'TopEdits',  | 
                                                        
| 169 | - 'xtTitle' => $this->user->getUsername() . ' - ' . $this->page->getTitle(),  | 
                                                        |
| 169 | + 'xtTitle' => $this->user->getUsername().' - '.$this->page->getTitle(),  | 
                                                        |
| 170 | 170 | 'te' => $topEdits,  | 
                                                        
| 171 | 171 | ]);  | 
                                                        
| 172 | 172 | }  | 
                                                        
@@ -272,7 +272,7 @@  | 
                                                    ||
| 272 | 272 | 'total_editcount' => $this->autoEdits->getEditCount(),  | 
                                                        
| 273 | 273 | 'automated_editcount' => $this->autoEdits->getAutomatedCount(),  | 
                                                        
| 274 | 274 | ];  | 
                                                        
| 275 | - $ret['nonautomated_editcount'] = $ret['total_editcount'] - $ret['automated_editcount'];  | 
                                                        |
| 275 | + $ret['nonautomated_editcount'] = $ret['total_editcount']-$ret['automated_editcount'];  | 
                                                        |
| 276 | 276 | |
| 277 | 277 |          if (isset($this->params['tools'])) { | 
                                                        
| 278 | 278 | $tools = $this->autoEdits->getToolCounts();  | 
                                                        
@@ -136,8 +136,8 @@  | 
                                                    ||
| 136 | 136 | $titles = [];  | 
                                                        
| 137 | 137 | |
| 138 | 138 |              while ($row = $sth->fetch()) { | 
                                                        
| 139 | - $titles[] = $namespaces[$row['page_namespace']] .  | 
                                                        |
| 140 | - ':' .$row['page_title'];  | 
                                                        |
| 139 | + $titles[] = $namespaces[$row['page_namespace']].  | 
                                                        |
| 140 | + ':'.$row['page_title'];  | 
                                                        |
| 141 | 141 | }  | 
                                                        
| 142 | 142 | |
| 143 | 143 | // Chunking... it's possible to make a URI too long  | 
                                                        
@@ -1,5 +1,5 @@ discard block  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | -declare(strict_types = 1);  | 
                                                        |
| 2 | +declare(strict_types=1);  | 
                                                        |
| 3 | 3 | |
| 4 | 4 | namespace App\Controller;  | 
                                                        
| 5 | 5 | |
@@ -128,7 +128,7 @@ discard block  | 
                                                    ||
| 128 | 128 | $pages = [];  | 
                                                        
| 129 | 129 |          foreach ($lp->getResults() as $index => $page) { | 
                                                        
| 130 | 130 | $pages[] = [  | 
                                                        
| 131 | - 'rank' => $index + 1,  | 
                                                        |
| 131 | + 'rank' => $index+1,  | 
                                                        |
| 132 | 132 | 'page_title' => $page->getTitle(true),  | 
                                                        
| 133 | 133 | 'length' => $page->getLength(),  | 
                                                        
| 134 | 134 | ];  | 
                                                        
@@ -94,7 +94,7 @@ discard block  | 
                                                    ||
| 94 | 94 | public function loginAction(Request $request, SessionInterface $session): RedirectResponse  | 
                                                        
| 95 | 95 |      { | 
                                                        
| 96 | 96 |          try { | 
                                                        
| 97 | - [ $next, $token ] = $this->getOauthClient($request)->initiate();  | 
                                                        |
| 97 | + [$next, $token] = $this->getOauthClient($request)->initiate();  | 
                                                        |
| 98 | 98 |          } catch (Exception $oauthException) { | 
                                                        
| 99 | 99 | throw $oauthException;  | 
                                                        
| 100 | 100 | // @TODO Make this work.  | 
                                                        
@@ -175,7 +175,7 @@ discard block  | 
                                                    ||
| 175 | 175 | . '?title=Special:OAuth';  | 
                                                        
| 176 | 176 | $conf = new ClientConfig($endpoint);  | 
                                                        
| 177 | 177 |          $consumerKey = $this->getParameter('oauth_key'); | 
                                                        
| 178 | -        $consumerSecret =  $this->getParameter('oauth_secret'); | 
                                                        |
| 178 | +        $consumerSecret = $this->getParameter('oauth_secret'); | 
                                                        |
| 179 | 179 | $conf->setConsumer(new Consumer($consumerKey, $consumerSecret));  | 
                                                        
| 180 | 180 | $this->oauthClient = new Client($conf);  | 
                                                        
| 181 | 181 | |