Passed
Push — main ( c5ed0e...ac9824 )
by
unknown
08:37
created
src/Twig/TopNavExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace App\Twig;
5 5
 
Please login to merge, or discard this patch.
src/Kernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace App;
6 6
 
Please login to merge, or discard this patch.
src/Controller/EditCounterController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Controller/LargestPagesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             ];
Please login to merge, or discard this patch.
src/Controller/QuoteController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
 
198 198
         // Number the quotes, since they somehow have significance.
199 199
         foreach ($quotes as $index => $quote) {
200
-            $numberedQuotes[(string)($index + 1)] = $quote;
200
+            $numberedQuotes[(string)($index+1)] = $quote;
201 201
         }
202 202
 
203 203
         return new JsonResponse($numberedQuotes, Response::HTTP_OK);
Please login to merge, or discard this patch.
src/Controller/CategoryEditsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
         // 'Category:', which sometimes is used cross-wiki (because it still works).
129 129
         $normalized = false;
130 130
         $nsName = $this->project->getNamespaces()[14].':';
131
-        $this->categories = array_map(function ($category) use ($nsName, &$normalized) {
131
+        $this->categories = array_map(function($category) use ($nsName, &$normalized) {
132 132
             if (0 === strpos($category, $nsName) || 0 === strpos($category, 'Category:')) {
133 133
                 $normalized = true;
134 134
             }
Please login to merge, or discard this patch.
src/Repository/ProjectRepository.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -330,9 +330,9 @@
 block discarded – undo
330 330
     {
331 331
         $pageTable = $this->getTableName($project->getDatabaseName(), 'page');
332 332
         $query = "SELECT page_id "
333
-             . " FROM $pageTable "
334
-             . " WHERE page_namespace = :ns AND page_title = :title AND page_len > 0 "
335
-             . " LIMIT 1";
333
+                . " FROM $pageTable "
334
+                . " WHERE page_namespace = :ns AND page_title = :title AND page_len > 0 "
335
+                . " LIMIT 1";
336 336
         $params = [
337 337
             'ns' => $namespaceId,
338 338
             'title' => str_replace(' ', '_', $pageTitle),
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace App\Repository;
6 6
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         }
165 165
 
166 166
         if ($this->parameterBag->has("database_meta_table")) {
167
-            $table = $this->parameterBag->get('database_meta_name') . '.' .
167
+            $table = $this->parameterBag->get('database_meta_name').'.'.
168 168
                 $this->parameterBag->get('database_meta_table');
169 169
         } else {
170 170
             $table = "meta_p.wiki";
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                     || $projMetadata['url'] == "https://$project"
214 214
                     || $projMetadata['url'] == "https://$project.org"
215 215
                     || $projMetadata['url'] == "https://www.$project") {
216
-                    $this->logger->debug(__METHOD__ . " Using cached data for $project");
216
+                    $this->logger->debug(__METHOD__." Using cached data for $project");
217 217
                     return $projMetadata;
218 218
                 }
219 219
             }
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
         ]])->getBody()->getContents(), true);
410 410
 
411 411
         $extensions = $res['query']['extensions'] ?? [];
412
-        return array_map(function ($extension) {
412
+        return array_map(function($extension) {
413 413
             return $extension['name'];
414 414
         }, $extensions);
415 415
     }
Please login to merge, or discard this patch.
src/Repository/LargestPagesRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace App\Repository;
5 5
 
Please login to merge, or discard this patch.
src/Model/Authorship.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -213,9 +213,9 @@
 block discarded – undo
213 213
         // Record character count and percentage for the remaining editors.
214 214
         if ($percentageSum < 100) {
215 215
             $this->data['others'] = [
216
-                'count' => $totalCount - $countSum,
217
-                'percentage' => round(100 - $percentageSum, 1),
218
-                'numEditors' => count($counts) - $numEditors,
216
+                'count' => $totalCount-$countSum,
217
+                'percentage' => round(100-$percentageSum, 1),
218
+                'numEditors' => count($counts)-$numEditors,
219 219
             ];
220 220
         }
221 221
     }
Please login to merge, or discard this patch.