Passed
Push — articleinfo-bot-percentages ( 0613da )
by MusikAnimal
09:12
created
src/AppCache.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
 use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
5 5
 
Please login to merge, or discard this patch.
src/DoctrineMigrations/Version20170623205224.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 Application\Migrations;
5 5
 
Please login to merge, or discard this patch.
src/DoctrineMigrations/Version20170623203059.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 Application\Migrations;
5 5
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/MetaController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $timeline = [];
102 102
         $startObj = new DateTime($start);
103 103
         $endObj = new DateTime($end);
104
-        $numDays = (int) $endObj->diff($startObj)->format("%a");
104
+        $numDays = (int)$endObj->diff($startObj)->format("%a");
105 105
         $grandSum = 0;
106 106
 
107 107
         // Generate array of date labels
@@ -111,17 +111,17 @@  discard block
 block discarded – undo
111 111
 
112 112
         foreach ($data as $entry) {
113 113
             if (!isset($totals[$entry['tool']])) {
114
-                $totals[$entry['tool']] = (int) $entry['count'];
114
+                $totals[$entry['tool']] = (int)$entry['count'];
115 115
 
116 116
                 // Create arrays for each tool, filled with zeros for each date in the timeline
117 117
                 $timeline[$entry['tool']] = array_fill(0, $numDays, 0);
118 118
             } else {
119
-                $totals[$entry['tool']] += (int) $entry['count'];
119
+                $totals[$entry['tool']] += (int)$entry['count'];
120 120
             }
121 121
 
122 122
             $date = new DateTime($entry['date']);
123
-            $dateIndex = (int) $date->diff($startObj)->format("%a");
124
-            $timeline[$entry['tool']][$dateIndex] = (int) $entry['count'];
123
+            $dateIndex = (int)$date->diff($startObj)->format("%a");
124
+            $timeline[$entry['tool']][$dateIndex] = (int)$entry['count'];
125 125
 
126 126
             $grandSum += $entry['count'];
127 127
         }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $timeline = [];
160 160
         $startObj = new DateTime($start);
161 161
         $endObj = new DateTime($end);
162
-        $numDays = (int) $endObj->diff($startObj)->format("%a");
162
+        $numDays = (int)$endObj->diff($startObj)->format("%a");
163 163
         $grandSum = 0;
164 164
 
165 165
         // Generate array of date labels
@@ -169,17 +169,17 @@  discard block
 block discarded – undo
169 169
 
170 170
         foreach ($data as $entry) {
171 171
             if (!isset($totals[$entry['endpoint']])) {
172
-                $totals[$entry['endpoint']] = (int) $entry['count'];
172
+                $totals[$entry['endpoint']] = (int)$entry['count'];
173 173
 
174 174
                 // Create arrays for each endpoint, filled with zeros for each date in the timeline
175 175
                 $timeline[$entry['endpoint']] = array_fill(0, $numDays, 0);
176 176
             } else {
177
-                $totals[$entry['endpoint']] += (int) $entry['count'];
177
+                $totals[$entry['endpoint']] += (int)$entry['count'];
178 178
             }
179 179
 
180 180
             $date = new DateTime($entry['date']);
181
-            $dateIndex = (int) $date->diff($startObj)->format("%a");
182
-            $timeline[$entry['endpoint']][$dateIndex] = (int) $entry['count'];
181
+            $dateIndex = (int)$date->diff($startObj)->format("%a");
182
+            $timeline[$entry['endpoint']][$dateIndex] = (int)$entry['count'];
183 183
 
184 184
             $grandSum += $entry['count'];
185 185
         }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 
232 232
         /** @var Connection $conn */
233 233
         $conn = $this->container->get('doctrine')->getManager('default')->getConnection();
234
-        $date =  date('Y-m-d');
234
+        $date = date('Y-m-d');
235 235
 
236 236
         // Tool name needs to be lowercase.
237 237
         $tool = strtolower($tool);
Please login to merge, or discard this patch.
src/AppBundle/Controller/AdminStatsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/AppBundle/Model/SimpleEditCounter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * This file contains only the SimpleEditCounter class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Model;
9 9
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function getTotalEditCount(): int
150 150
     {
151
-        return $this->data['total_edit_count'] ?? $this->data['deleted_edit_count'] + $this->data['live_edit_count'];
151
+        return $this->data['total_edit_count'] ?? $this->data['deleted_edit_count']+$this->data['live_edit_count'];
152 152
     }
153 153
 
154 154
     /**
Please login to merge, or discard this patch.
src/AppBundle/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.
src/AppBundle/Repository/AuthorshipRepository.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 AppBundle\Repository;
5 5
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/GlobalContribsController.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 AppBundle\Controller;
5 5
 
Please login to merge, or discard this patch.