Completed
Pull Request — master (#26)
by Sam
03:15
created
src/AppBundle/Controller/EditCounterController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
         $username = $request->query->get('username');
31 31
 
32 32
         if (($project || $queryProject) && $username) {
33
-            $routeParams = [ 'project'=>($project ?: $queryProject), 'username' => $username ];
33
+            $routeParams = ['project'=>($project ?: $queryProject), 'username' => $username];
34 34
             return $this->redirectToRoute("EditCounterResult", $routeParams);
35 35
         } elseif (!$project && $queryProject) {
36
-            return $this->redirectToRoute("EditCounterProject", [ 'project'=>$queryProject ]);
36
+            return $this->redirectToRoute("EditCounterProject", ['project'=>$queryProject]);
37 37
         }
38 38
 
39 39
         // Otherwise fall through.
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
             'rev_small' => $revisionCounts['small'],
115 115
             'rev_large' => $revisionCounts['large'],
116 116
             'with_comments' => $revisionCounts['with_comments'],
117
-            'without_comments' => $revisionCounts['live'] - $revisionCounts['with_comments'],
117
+            'without_comments' => $revisionCounts['live']-$revisionCounts['with_comments'],
118 118
             'minor_edits' => $revisionCounts['minor_edits'],
119
-            'nonminor_edits' => $revisionCounts['live'] - $revisionCounts['minor_edits'],
119
+            'nonminor_edits' => $revisionCounts['live']-$revisionCounts['minor_edits'],
120 120
 
121 121
             // Page counts.
122 122
             'uniquePages' => $pageCounts['unique'],
Please login to merge, or discard this patch.
src/AppBundle/Controller/ArticleInfoController.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
         $article = $request->query->get('article');
56 56
 
57 57
         if ($projectQuery != '' && $article != '') {
58
-            return $this->redirectToRoute('ArticleInfoResult', [ 'project'=>$projectQuery, 'article' => $article ]);
58
+            return $this->redirectToRoute('ArticleInfoResult', ['project'=>$projectQuery, 'article' => $article]);
59 59
         } elseif ($article != '') {
60
-            return $this->redirectToRoute('ArticleInfoProject', [ 'project'=>$projectQuery ]);
60
+            return $this->redirectToRoute('ArticleInfoProject', ['project'=>$projectQuery]);
61 61
         }
62 62
 
63 63
         return $this->render('articleInfo/index.html.twig', [
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             'url' => $basicInfo['fullurl']
103 103
         ];
104 104
 
105
-        $this->pageInfo['watchers'] = ( isset($basicInfo['watchers']) ) ? $basicInfo['watchers'] : "< 30";
105
+        $this->pageInfo['watchers'] = (isset($basicInfo['watchers'])) ? $basicInfo['watchers'] : "< 30";
106 106
 
107 107
         $pageProps = isset($basicInfo['pageprops']) ? $basicInfo['pageprops'] : [];
108 108
 
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
      */
165 165
     private function getRevCount()
166 166
     {
167
-        $query = "SELECT COUNT(*) AS count FROM " . $this->revisionTable
168
-                 . " WHERE rev_page = '" . $this->pageInfo['id'] . "'";
167
+        $query = "SELECT COUNT(*) AS count FROM ".$this->revisionTable
168
+                 . " WHERE rev_page = '".$this->pageInfo['id']."'";
169 169
         $res = $this->conn->query($query)->fetchAll();
170 170
         return $res[0]['count'];
171 171
     }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
                   FROM $this->revisionTable
198 198
                   LEFT JOIN $userGroupsTable ON rev_user = ug_user
199 199
                   LEFT JOIN $userFromerGroupsTable ON rev_user = ufg_user
200
-                  WHERE rev_page = " . $this->pageInfo['id'] . " AND (ug_group = 'bot' OR ufg_group = 'bot')
200
+                  WHERE rev_page = ".$this->pageInfo['id']." AND (ug_group = 'bot' OR ufg_group = 'bot')
201 201
                   GROUP BY rev_user_text";
202 202
         $res = $this->conn->query($query)->fetchAll();
203 203
 
@@ -206,14 +206,14 @@  discard block
 block discarded – undo
206 206
         $sum = 0;
207 207
         foreach ($res as $bot) {
208 208
             $bots[$bot['username']] = [
209
-                'count' => (int) $bot['count'],
209
+                'count' => (int)$bot['count'],
210 210
                 'current' => $bot['current'] === 'bot'
211 211
             ];
212 212
             $sum += $bot['count'];
213 213
         }
214 214
 
215
-        uasort($bots, function ($a, $b) {
216
-            return $b['count'] - $a['count'];
215
+        uasort($bots, function($a, $b) {
216
+            return $b['count']-$a['count'];
217 217
         });
218 218
 
219 219
         $this->pageInfo['general']['bot_revision_count'] = $sum;
@@ -249,10 +249,10 @@  discard block
 block discarded – undo
249 249
 
250 250
             if ($info['all'] > 1) {
251 251
                 // Number of seconds between first and last edit
252
-                $secs = intval(strtotime($info['last']) - strtotime($info['first']) / $info['all']);
252
+                $secs = intval(strtotime($info['last'])-strtotime($info['first']) / $info['all']);
253 253
 
254 254
                 // Average time between edits (in days)
255
-                $this->pageInfo['editors'][$editor]['atbe'] = $secs / ( 60 * 60 * 24 );
255
+                $this->pageInfo['editors'][$editor]['atbe'] = $secs / (60 * 60 * 24);
256 256
             }
257 257
 
258 258
             if (count($info['sizes'])) {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 
299 299
         // Transform to associative array by 'type'
300 300
         foreach ($res as $row) {
301
-            $data[$row['type'] . '_count'] = $row['value'];
301
+            $data[$row['type'].'_count'] = $row['value'];
302 302
         }
303 303
 
304 304
         return $data;
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         $title = str_replace(' ', '_', $this->pageInfo['title']);
315 315
         $query = "SELECT log_action, log_type, log_timestamp AS timestamp
316 316
                   FROM $loggingTable
317
-                  WHERE log_namespace = '" . $this->pageInfo['namespace'] . "'
317
+                  WHERE log_namespace = '".$this->pageInfo['namespace']."'
318 318
                   AND log_title = '$title' AND log_timestamp > 1
319 319
                   AND log_type IN ('delete', 'move', 'protect', 'stable')";
320 320
         $events = $this->conn->query($query)->fetchAll();
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
         $conn = $this->container->get('doctrine')->getManager('replicas')->getConnection();
396 396
         $res = $conn->query($query)->fetchAll();
397 397
 
398
-        $terms = array_map(function ($entry) {
398
+        $terms = array_map(function($entry) {
399 399
             return $entry['term'];
400 400
         }, $res);
401 401
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
                 'prio' => 2,
407 407
                 'name' => 'Wikidata',
408 408
                 'notice' => "Label for language <em>$lang</em> is missing", // FIXME: i18n
409
-                'explanation' => "See: <a target='_blank' " .
409
+                'explanation' => "See: <a target='_blank' ".
410 410
                     "href='//www.wikidata.org/wiki/Help:Label'>Help:Label</a>",
411 411
             ];
412 412
         }
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
                 'prio' => 3,
416 416
                 'name' => 'Wikidata',
417 417
                 'notice' => "Description for language <em>$lang</em> is missing", // FIXME: i18n
418
-                'explanation' => "See: <a target='_blank' " .
418
+                'explanation' => "See: <a target='_blank' ".
419 419
                     "href='//www.wikidata.org/wiki/Help:Description'>Help:Description</a>",
420 420
             ];
421 421
         }
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
         $query = "SELECT rev_id, rev_parent_id, rev_user_text, rev_user, rev_timestamp,
433 433
                   rev_minor_edit, rev_len, rev_comment
434 434
                   FROM $this->revisionTable
435
-                  WHERE rev_page = '" . $this->pageInfo['id'] . "' AND rev_timestamp > 1
435
+                  WHERE rev_page = '".$this->pageInfo['id']."' AND rev_timestamp > 1
436 436
                   ORDER BY rev_timestamp";
437 437
 
438 438
         $res = $this->conn->query($query)->fetchAll();
@@ -452,9 +452,9 @@  discard block
 block discarded – undo
452 452
             return $rev['rev_len'];
453 453
         }
454 454
 
455
-        $lastRev = $this->pageHistory[$revIndex - 1];
455
+        $lastRev = $this->pageHistory[$revIndex-1];
456 456
 
457
-        return $rev['rev_len'] - $lastRev['rev_len'];
457
+        return $rev['rev_len']-$lastRev['rev_len'];
458 458
     }
459 459
 
460 460
     /**
@@ -474,12 +474,12 @@  discard block
 block discarded – undo
474 474
         // The month of the first edit. Used as a comparison when building the per-month data
475 475
         $firstEditMonth = strtotime(date('Y-m-01, 00:00', strtotime($firstEdit['rev_timestamp'])));
476 476
 
477
-        $lastEdit = $this->pageHistory[ $revisionCount - 1 ];
478
-        $secondLastEdit = $revisionCount === 1 ? $lastEdit : $this->pageHistory[ $revisionCount - 2 ];
477
+        $lastEdit = $this->pageHistory[$revisionCount-1];
478
+        $secondLastEdit = $revisionCount === 1 ? $lastEdit : $this->pageHistory[$revisionCount-2];
479 479
 
480 480
         // Now we can start our master array. This one will be HUGE!
481 481
         $lastEditSize = ($revisionCount > 1)
482
-            ? $lastEdit['rev_len'] - $secondLastEdit['rev_len']
482
+            ? $lastEdit['rev_len']-$secondLastEdit['rev_len']
483 483
             : $lastEdit['rev_len'];
484 484
         $data = [
485 485
             'general' => [
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
             // Increment year and month counts for all edits
577 577
             $data['year_count'][$timestamp['year']]['all']++;
578 578
             $data['year_count'][$timestamp['year']]['months'][$timestamp['month']]['all']++;
579
-            $data['year_count'][$timestamp['year']]['size'] = (int) $rev['rev_len'];
579
+            $data['year_count'][$timestamp['year']]['size'] = (int)$rev['rev_len'];
580 580
 
581 581
             $editsThisMonth = $data['year_count'][$timestamp['year']]['months'][$timestamp['month']]['all'];
582 582
             if ($editsThisMonth > $data['max_edits_per_month']) {
@@ -620,9 +620,9 @@  discard block
 block discarded – undo
620 620
                 }
621 621
 
622 622
                 // determine if the next revision was a revert
623
-                $nextRevision = isset($this->pageHistory[$i + 1]) ? $this->pageHistory[$i + 1] : null;
623
+                $nextRevision = isset($this->pageHistory[$i+1]) ? $this->pageHistory[$i+1] : null;
624 624
                 $nextRevisionIsRevert = $nextRevision &&
625
-                    $this->getDiffSize($i + 1) === -$diffSize &&
625
+                    $this->getDiffSize($i+1) === -$diffSize &&
626 626
                     $this->aeh->isRevert($nextRevision['rev_comment']);
627 627
 
628 628
                 // don't count this edit as content removal if the next edit reverted it
Please login to merge, or discard this patch.
src/AppBundle/Twig/WikiExtension.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -14,25 +14,25 @@  discard block
 block discarded – undo
14 14
 
15 15
     public function intuitionMessage($message = "", $vars = [])
16 16
     {
17
-        return $this->getIntuition()->msg($message, [ "domain" => "xtools", "variables" => $vars ]);
17
+        return $this->getIntuition()->msg($message, ["domain" => "xtools", "variables" => $vars]);
18 18
     }
19 19
 
20 20
     /*********************************** FUNCTIONS ***********************************/
21 21
 
22 22
     public function getFunctions()
23 23
     {
24
-        $options = [ 'is_safe' => [ 'html']];
24
+        $options = ['is_safe' => ['html']];
25 25
         return [
26
-            new Twig_SimpleFunction('wiki_link', [ $this, 'wikiLink' ], $options),
27
-            new Twig_SimpleFunction('user_link', [ $this, 'userLink' ], $options),
28
-            new Twig_SimpleFunction('user_log_link', [ $this, 'userLogLink' ], $options),
29
-            new Twig_SimpleFunction('group_link', [ $this, 'groupLink' ], $options),
30
-            new Twig_SimpleFunction('wiki_history_link', [ $this, 'wikiHistoryLink' ], $options),
31
-            new Twig_SimpleFunction('wiki_log_link', [ $this, 'wikiLogLink' ], $options),
32
-            new Twig_SimpleFunction('pageviews_links', [ $this, 'pageviewsLinks' ], $options),
33
-            new Twig_SimpleFunction('diff_link', [ $this, 'diffLink' ], $options),
34
-            new Twig_SimpleFunction('perma_link', [ $this, 'permaLink' ], $options),
35
-            new Twig_SimpleFunction('edit_link', [ $this, 'editLink' ], $options),
26
+            new Twig_SimpleFunction('wiki_link', [$this, 'wikiLink'], $options),
27
+            new Twig_SimpleFunction('user_link', [$this, 'userLink'], $options),
28
+            new Twig_SimpleFunction('user_log_link', [$this, 'userLogLink'], $options),
29
+            new Twig_SimpleFunction('group_link', [$this, 'groupLink'], $options),
30
+            new Twig_SimpleFunction('wiki_history_link', [$this, 'wikiHistoryLink'], $options),
31
+            new Twig_SimpleFunction('wiki_log_link', [$this, 'wikiLogLink'], $options),
32
+            new Twig_SimpleFunction('pageviews_links', [$this, 'pageviewsLinks'], $options),
33
+            new Twig_SimpleFunction('diff_link', [$this, 'diffLink'], $options),
34
+            new Twig_SimpleFunction('perma_link', [$this, 'permaLink'], $options),
35
+            new Twig_SimpleFunction('edit_link', [$this, 'editLink'], $options),
36 36
         ];
37 37
     }
38 38
 
@@ -244,9 +244,9 @@  discard block
 block discarded – undo
244 244
     public function getFilters()
245 245
     {
246 246
         return [
247
-            new \Twig_SimpleFilter('percent_format', [ $this, 'percentFormat' ]),
248
-            new \Twig_SimpleFilter('diff_format', [ $this, 'diffFormat' ], [ 'is_safe' => [ 'html' ] ]),
249
-            new \Twig_SimpleFilter('wikify_comment', [ $this, 'wikifyComment' ], [ 'is_safe' => [ 'html' ] ]),
247
+            new \Twig_SimpleFilter('percent_format', [$this, 'percentFormat']),
248
+            new \Twig_SimpleFilter('diff_format', [$this, 'diffFormat'], ['is_safe' => ['html']]),
249
+            new \Twig_SimpleFilter('wikify_comment', [$this, 'wikifyComment'], ['is_safe' => ['html']]),
250 250
         ];
251 251
     }
252 252
 
@@ -282,10 +282,10 @@  discard block
 block discarded – undo
282 282
         if (!$denominator) {
283 283
             $quotient = $numerator;
284 284
         } else {
285
-            $quotient = ( $numerator / $denominator ) * 100;
285
+            $quotient = ($numerator / $denominator) * 100;
286 286
         }
287 287
 
288
-        return round($quotient, $precision) . '%';
288
+        return round($quotient, $precision).'%';
289 289
     }
290 290
 
291 291
     /**
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         if ($isSection) {
304 304
             $sectionTitle = $sectionMatch[1][0];
305 305
             $sectionTitleLink = str_replace(' ', '_', $sectionTitle);
306
-            $sectionWikitext = "<a target='_blank' href='$projectUrl/wiki/$title#$sectionTitleLink'>&rarr;</a>" .
306
+            $sectionWikitext = "<a target='_blank' href='$projectUrl/wiki/$title#$sectionTitleLink'>&rarr;</a>".
307 307
                 "<em class='text-muted'>$sectionTitle:</em> ";
308 308
             $wikitext = str_replace($sectionMatch[0][0], $sectionWikitext, $wikitext);
309 309
         }
Please login to merge, or discard this patch.
src/AppBundle/Controller/QuoteController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             'quote/all.html.twig',
112 112
             [
113 113
                 'base_dir' => realpath(
114
-                    $this->getParameter('kernel.root_dir') . '/..'
114
+                    $this->getParameter('kernel.root_dir').'/..'
115 115
                 ),
116 116
                 "xtPage" => "bash",
117 117
                 "quotes" => $quotes,
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             'quote/view.html.twig',
161 161
             [
162 162
                 'base_dir' => realpath(
163
-                    $this->getParameter('kernel.root_dir') . '/..'
163
+                    $this->getParameter('kernel.root_dir').'/..'
164 164
                 ),
165 165
                 "xtPage" => "bash",
166 166
                 "text" => $text,
Please login to merge, or discard this patch.
src/AppBundle/Helper/LabsHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->dbName = $dbName;
72 72
         $this->url = $url;
73 73
 
74
-        return [ 'dbName' => $dbName, 'wikiName' => $wikiName, 'url' => $url, 'lang' => $lang ];
74
+        return ['dbName' => $dbName, 'wikiName' => $wikiName, 'url' => $url, 'lang' => $lang];
75 75
     }
76 76
 
77 77
     /**
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         // Create the query we're going to run against the meta database
100 100
         $wikiQuery = $this->client->createQueryBuilder();
101 101
         $wikiQuery
102
-            ->select([ 'dbname', 'name', 'url', 'lang' ])
102
+            ->select(['dbname', 'name', 'url', 'lang'])
103 103
             ->from('wiki')
104 104
             ->where($wikiQuery->expr()->eq('dbname', ':project'))
105 105
             // The meta database will have the project's URL stored as https://en.wikipedia.org
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     public function allProjects()
150 150
     {
151 151
         $wikiQuery = $this->client->createQueryBuilder();
152
-        $wikiQuery->select([ 'dbName', 'name', 'url' ])->from('wiki');
152
+        $wikiQuery->select(['dbName', 'name', 'url'])->from('wiki');
153 153
         $stmt = $wikiQuery->execute();
154 154
         $out = $stmt->fetchAll();
155 155
         return $out;
Please login to merge, or discard this patch.
src/Xtools/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     public function userRightsUrl(Project $project)
62 62
     {
63
-        return $project->getUrl() . $project->getScriptPath() . "?title=Special:UserRights&user=" .
63
+        return $project->getUrl().$project->getScriptPath()."?title=Special:UserRights&user=".
64 64
                $this->getUsername();
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
src/AppBundle/Controller/AdminScoreController.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
         $username = $request->query->get('username');
28 28
 
29 29
         if ($projectQuery != "" && $username != "") {
30
-            return $this->redirectToRoute("AdminScoreResult", [ 'project'=>$projectQuery, 'username' => $username ]);
30
+            return $this->redirectToRoute("AdminScoreResult", ['project'=>$projectQuery, 'username' => $username]);
31 31
         } elseif ($projectQuery != "") {
32
-            return $this->redirectToRoute("AdminScoreProject", [ 'project'=>$projectQuery ]);
32
+            return $this->redirectToRoute("AdminScoreProject", ['project'=>$projectQuery]);
33 33
         }
34 34
 
35 35
         // Otherwise fall through.
@@ -67,20 +67,20 @@  discard block
 block discarded – undo
67 67
         $archiveTable = $lh->getTable("archive", $dbName);
68 68
 
69 69
         // MULTIPLIERS (to review)
70
-        $ACCT_AGE_MULT = 1.25;   # 0 if = 365 jours
71
-        $EDIT_COUNT_MULT = 1.25;     # 0 if = 10 000
72
-        $USER_PAGE_MULT = 0.1;     # 0 if =
70
+        $ACCT_AGE_MULT = 1.25; # 0 if = 365 jours
71
+        $EDIT_COUNT_MULT = 1.25; # 0 if = 10 000
72
+        $USER_PAGE_MULT = 0.1; # 0 if =
73 73
         $PATROLS_MULT = 1; # 0 if =
74
-        $BLOCKS_MULT = 1.4;     # 0 if = 10
74
+        $BLOCKS_MULT = 1.4; # 0 if = 10
75 75
         $AFD_MULT = 1.15;
76
-        $RECENT_ACTIVITY_MULT = 0.9;     # 0 if =
76
+        $RECENT_ACTIVITY_MULT = 0.9; # 0 if =
77 77
         $AIV_MULT = 1.15;
78
-        $EDIT_SUMMARIES_MULT = 0.8;   # 0 if =
79
-        $NAMESPACES_MULT = 1.0;     # 0 if =
78
+        $EDIT_SUMMARIES_MULT = 0.8; # 0 if =
79
+        $NAMESPACES_MULT = 1.0; # 0 if =
80 80
         $PAGES_CREATED_LIVE_MULT = 1.4; # 0 if =
81 81
         $PAGES_CREATED_ARCHIVE_MULT = 1.4; # 0 if =
82
-        $RPP_MULT = 1.15;     # 0 if =
83
-        $USERRIGHTS_MULT = 0.75;   # 0 if =
82
+        $RPP_MULT = 1.15; # 0 if =
83
+        $USERRIGHTS_MULT = 0.75; # 0 if =
84 84
 
85 85
         // Grab the connection to the replica database (which is separate from the above)
86 86
         $conn = $this->get('doctrine')->getManager("replicas")->getConnection();
@@ -156,15 +156,15 @@  discard block
 block discarded – undo
156 156
                 $now = new DateTime();
157 157
                 $date = new DateTime($value);
158 158
                 $diff = $date->diff($now);
159
-                $formula = 365*$diff->format("%y")+30*$diff->format("%m")+$diff->format("%d");
159
+                $formula = 365 * $diff->format("%y")+30 * $diff->format("%m")+$diff->format("%d");
160 160
                 $value = $formula-365;
161 161
             }
162 162
 
163 163
             if ($key == "id") {
164 164
                 $id = $value;
165 165
             } else {
166
-                $multiplierKey = strtoupper($row["source"] . "_MULT");
167
-                $multiplier = ( isset($$multiplierKey) ? $$multiplierKey : 1 );
166
+                $multiplierKey = strtoupper($row["source"]."_MULT");
167
+                $multiplier = (isset($$multiplierKey) ? $$multiplierKey : 1);
168 168
                 $score = max(min($value * $multiplier, 100), -100);
169 169
                 $master[$key]["mult"] = $multiplier;
170 170
                 $master[$key]["value"] = $value;
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
         }
175 175
 
176 176
         if ($id == 0) {
177
-            $this->addFlash("notice", [ "noresult", $username ]);
178
-            return $this->redirectToRoute("AdminScore", [ "project"=>$project ]);
177
+            $this->addFlash("notice", ["noresult", $username]);
178
+            return $this->redirectToRoute("AdminScore", ["project"=>$project]);
179 179
         }
180 180
 
181 181
         // replace this example code with whatever you need
Please login to merge, or discard this patch.
src/Xtools/Project.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     public function getUrl()
57 57
     {
58
-        return rtrim($this->getMetadata()['url'], '/') . '/';
58
+        return rtrim($this->getMetadata()['url'], '/').'/';
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
src/AppBundle/Controller/TopEditsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 'username' => $username,
69 69
             ]);
70 70
         } elseif ($project != "") {
71
-            return $this->redirectToRoute("TopEditsResults", [ 'project'=>$project ]);
71
+            return $this->redirectToRoute("TopEditsResults", ['project'=>$project]);
72 72
         }
73 73
 
74 74
         // set default wiki so we can populate the namespace selector
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         }
144 144
 
145 145
         // Get page info about these 100 pages, so we can use their display title.
146
-        $titles = array_map(function ($e) {
146
+        $titles = array_map(function($e) {
147 147
             return $e['page_title'];
148 148
         }, $editData);
149 149
         /** @var ApiHelper $apiHelper */
Please login to merge, or discard this patch.