Completed
Push — development ( 1f2cfc...95da5f )
by Thomas
01:33 queued 12s
created
htdocs_symfony/src/Controller/Backend/OCOnly81Controller.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
     private function ocOnly81_get_matrixData()
58 58
     : array
59 59
     {
60
-        for ($i = 0; $i <= 8; $i ++) {
61
-            for ($j = 0; $j <= 8; $j ++) {
60
+        for ($i = 0; $i <= 8; $i++) {
61
+            for ($j = 0; $j <= 8; $j++) {
62 62
                 $matrix[$i][$j] = 0;
63 63
                 $dsum[$i] = 0;
64 64
                 $tsum[$i] = 0;
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
         $data = $qb->execute()->fetchAll();
76 76
 
77 77
         foreach ($data as $item) {
78
-            $matrix[$item['difficulty'] - 2][$item['terrain'] - 2] ++;
78
+            $matrix[$item['difficulty'] - 2][$item['terrain'] - 2]++;
79 79
         }
80 80
 
81
-        for ($i = 0; $i <= 8; $i ++) {
81
+        for ($i = 0; $i <= 8; $i++) {
82 82
             $dsum[$i] = $dsum[$i] + array_sum($matrix[$i]);
83 83
             $tsum[$i] = $tsum[$i] + array_sum(array_column($matrix, $i));
84 84
         }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                     'count' => 1
119 119
                 ];
120 120
             } else {
121
-                $result[$item['user_id']]['count'] ++;
121
+                $result[$item['user_id']]['count']++;
122 122
             }
123 123
         }
124 124
 
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/UserRolesRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             $databaseArray
145 145
         );
146 146
 
147
-        $entity->id = (int) $this->connection->lastInsertId();
147
+        $entity->id = (int)$this->connection->lastInsertId();
148 148
 
149 149
         return $entity;
150 150
     }
@@ -219,9 +219,9 @@  discard block
 block discarded – undo
219 219
     public function getEntityFromDatabaseArray(array $data) : UserRolesEntity
220 220
     {
221 221
         $entity = new UserRolesEntity();
222
-        $entity->id = (int) $data['id'];
223
-        $entity->userId = (string) $data['user_id'];
224
-        $entity->roleId = (string) $data['role_id'];
222
+        $entity->id = (int)$data['id'];
223
+        $entity->userId = (string)$data['user_id'];
224
+        $entity->roleId = (string)$data['role_id'];
225 225
 
226 226
         return $entity;
227 227
     }
Please login to merge, or discard this patch.