Completed
Pull Request — development (#705)
by Nick
05:03
created
htdocs/src/Oc/Page/BlockRepository.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             $databaseArray
94 94
         );
95 95
 
96
-        $entity->id = (int) $this->connection->lastInsertId();
96
+        $entity->id = (int)$this->connection->lastInsertId();
97 97
 
98 98
         return $entity;
99 99
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             ['id' => $entity->id]
121 121
         );
122 122
 
123
-        $entity->id = (int) $this->connection->lastInsertId();
123
+        $entity->id = (int)$this->connection->lastInsertId();
124 124
 
125 125
         return $entity;
126 126
     }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             'page_id' => $entity->pageId,
164 164
             'title' => $entity->title,
165 165
             'html' => $entity->html,
166
-            'position' => (int) $entity->position,
166
+            'position' => (int)$entity->position,
167 167
             'updated_at' => $entity->updatedAt->format(DateTime::ATOM),
168 168
             'active' => $entity->active,
169 169
         ];
@@ -179,13 +179,13 @@  discard block
 block discarded – undo
179 179
     public function getEntityFromDatabaseArray(array $data)
180 180
     {
181 181
         $entity = new BlockEntity();
182
-        $entity->id = (int) $data['id'];
183
-        $entity->pageId = (int) $data['page_id'];
182
+        $entity->id = (int)$data['id'];
183
+        $entity->pageId = (int)$data['page_id'];
184 184
         $entity->title = $data['title'];
185 185
         $entity->html = $data['html'];
186
-        $entity->position = (int) $data['position'];
186
+        $entity->position = (int)$data['position'];
187 187
         $entity->updatedAt = new DateTime($data['updated_at']);
188
-        $entity->active = (bool) $data['active'];
188
+        $entity->active = (bool)$data['active'];
189 189
 
190 190
         return $entity;
191 191
     }
Please login to merge, or discard this patch.
htdocs/src/Oc/Command/CreateWebCacheCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
         $scss = new Compiler();
127 127
         $scss->setIgnoreErrors(true);
128 128
         $scss->addImportPath($applicationScssPath);
129
-        $scss->addImportPath(function ($path) use ($projectDir) {
129
+        $scss->addImportPath(function($path) use ($projectDir) {
130 130
             //Check for tilde as this refers to the node_modules dir
131 131
             if (strpos($path, '~') === 0) {
132 132
                 $path = str_replace(
Please login to merge, or discard this patch.
htdocs/src/Oc/Command/CodeCoverageCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
         $checkedElements = 0;
57 57
 
58 58
         foreach ($metrics as $metric) {
59
-            $totalElements += (int) $metric['elements'];
60
-            $checkedElements += (int) $metric['coveredelements'];
59
+            $totalElements += (int)$metric['elements'];
60
+            $checkedElements += (int)$metric['coveredelements'];
61 61
         }
62 62
 
63 63
         $coverage = ($checkedElements / $totalElements) * 100;
Please login to merge, or discard this patch.
htdocs/src/Oc/FieldNotes/Import/ImportService.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
          */
119 119
         $expressionAst = (new ExpressionLanguage())->parse($violation->getPropertyPath(), [])->getNodes();
120 120
 
121
-        $line = ((int) $expressionAst->nodes['node']->nodes[1]->attributes['value']) + 1;
121
+        $line = ((int)$expressionAst->nodes['node']->nodes[1]->attributes['value']) + 1;
122 122
 
123 123
         $linePrefix = $this->translator->trans('field_notes.error.line_prefix', [
124 124
             '%line%' => $line,
Please login to merge, or discard this patch.
htdocs/src/Oc/FieldNotes/Persistence/FieldNoteRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $databaseArray
189 189
         );
190 190
 
191
-        $entity->id = (int) $this->connection->lastInsertId();
191
+        $entity->id = (int)$this->connection->lastInsertId();
192 192
 
193 193
         return $entity;
194 194
     }
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             ['id' => $entity->id]
216 216
         );
217 217
 
218
-        $entity->id = (int) $this->connection->lastInsertId();
218
+        $entity->id = (int)$this->connection->lastInsertId();
219 219
 
220 220
         return $entity;
221 221
     }
Please login to merge, or discard this patch.
htdocs/src/Oc/Util/CBench.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         list($uSec, $sec) = explode(' ', microtime());
30 30
 
31
-        return ((float) $uSec + (float) $sec);
31
+        return ((float)$uSec + (float)$sec);
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
htdocs/src/Oc/GeoCache/Persistence/GeoCache/GeoCacheRepository.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             $databaseArray
185 185
         );
186 186
 
187
-        $entity->cacheId = (int) $this->connection->lastInsertId();
187
+        $entity->cacheId = (int)$this->connection->lastInsertId();
188 188
 
189 189
         return $entity;
190 190
     }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
             ['cache_id' => $entity->cacheId]
212 212
         );
213 213
 
214
-        $entity->cacheId = (int) $this->connection->lastInsertId();
214
+        $entity->cacheId = (int)$this->connection->lastInsertId();
215 215
 
216 216
         return $entity;
217 217
     }
@@ -300,38 +300,38 @@  discard block
 block discarded – undo
300 300
         $entity = new GeoCacheEntity();
301 301
         $entity->cacheId = $data['cache_id'];
302 302
         $entity->uuid = $data['uuid'];
303
-        $entity->node = (int) $data['node'];
303
+        $entity->node = (int)$data['node'];
304 304
         $entity->dateCreated = new DateTime($data['date_created']);
305
-        $entity->isPublishdate = (bool) $data['is_publishdate'];
305
+        $entity->isPublishdate = (bool)$data['is_publishdate'];
306 306
         $entity->lastModified = new DateTime($data['last_modified']);
307
-        $entity->okapiSyncbase = (int) $data['okapi_syncbase'];
307
+        $entity->okapiSyncbase = (int)$data['okapi_syncbase'];
308 308
         $entity->listingLastModified = new DateTime($data['listing_last_modified']);
309 309
         $entity->metaLastModified = new DateTime($data['meta_last_modified']);
310
-        $entity->userId = (int) $data['user_id'];
310
+        $entity->userId = (int)$data['user_id'];
311 311
         $entity->name = $data['name'];
312
-        $entity->longitude = (double) $data['longitude'];
313
-        $entity->latitude = (double) $data['latitude'];
314
-        $entity->type = (int) $data['type'];
315
-        $entity->status = (int) $data['status'];
312
+        $entity->longitude = (double)$data['longitude'];
313
+        $entity->latitude = (double)$data['latitude'];
314
+        $entity->type = (int)$data['type'];
315
+        $entity->status = (int)$data['status'];
316 316
         $entity->country = $data['country'];
317 317
         $entity->dateHidden = new DateTime($data['date_hidden']);
318
-        $entity->size = (int) $data['size'];
319
-        $entity->difficulty = (int) $data['difficulty'];
320
-        $entity->terrain = (int) $data['terrain'];
318
+        $entity->size = (int)$data['size'];
319
+        $entity->difficulty = (int)$data['difficulty'];
320
+        $entity->terrain = (int)$data['terrain'];
321 321
         $entity->logpw = $data['logpw'];
322
-        $entity->searchTime = (float) $data['search_time'];
323
-        $entity->wayLength = (float) $data['way_length'];
322
+        $entity->searchTime = (float)$data['search_time'];
323
+        $entity->wayLength = (float)$data['way_length'];
324 324
         $entity->wpGc = $data['wp_gc'];
325 325
         $entity->wpGcMaintained = $data['wp_gc_maintained'];
326 326
         $entity->wpOc = $data['wp_oc'];
327 327
         $entity->descLanguages = $data['desc_languages'];
328 328
         $entity->defaultDesclang = $data['default_desclang'];
329 329
         $entity->dateActivate = new DateTime($data['date_activate']);
330
-        $entity->needNpaRecalc = (bool) $data['need_npa_recalc'];
331
-        $entity->showCachelists = (bool) $data['show_cachelists'];
332
-        $entity->protectOldCoords = (bool) $data['protect_old_coords'];
333
-        $entity->needsMaintenance = (bool) $data['needs_maintenance'];
334
-        $entity->listingOutdated = (bool) $data['listing_outdated'];
330
+        $entity->needNpaRecalc = (bool)$data['need_npa_recalc'];
331
+        $entity->showCachelists = (bool)$data['show_cachelists'];
332
+        $entity->protectOldCoords = (bool)$data['protect_old_coords'];
333
+        $entity->needsMaintenance = (bool)$data['needs_maintenance'];
334
+        $entity->listingOutdated = (bool)$data['listing_outdated'];
335 335
         $entity->flagsLastModified = new DateTime($data['flags_last_modified']);
336 336
 
337 337
         return $entity;
Please login to merge, or discard this patch.
htdocs/src/Oc/GeoCache/Persistence/GeoCacheLog/GeoCacheLogRepository.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             $databaseArray
181 181
         );
182 182
 
183
-        $entity->id = (int) $this->connection->lastInsertId();
183
+        $entity->id = (int)$this->connection->lastInsertId();
184 184
 
185 185
         return $entity;
186 186
     }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             ['id' => $entity->id]
208 208
         );
209 209
 
210
-        $entity->id = (int) $this->connection->lastInsertId();
210
+        $entity->id = (int)$this->connection->lastInsertId();
211 211
 
212 212
         return $entity;
213 213
     }
@@ -280,27 +280,27 @@  discard block
 block discarded – undo
280 280
     public function getEntityFromDatabaseArray(array $data)
281 281
     {
282 282
         $entity = new GeoCacheLogEntity();
283
-        $entity->id = (int) $data['id'];
283
+        $entity->id = (int)$data['id'];
284 284
         $entity->uuid = $data['uuid'];
285
-        $entity->node = (int) $data['node'];
285
+        $entity->node = (int)$data['node'];
286 286
         $entity->dateCreated = new DateTime($data['date_created']);
287 287
         $entity->entryLastModified = new DateTime($data['entry_last_modified']);
288 288
         $entity->lastModified = new DateTime($data['last_modified']);
289
-        $entity->okapiSyncbase = (int) $data['okapi_syncbase'];
289
+        $entity->okapiSyncbase = (int)$data['okapi_syncbase'];
290 290
         $entity->logLastModified = new DateTime($data['log_last_modified']);
291
-        $entity->cacheId = (int) $data['cache_id'];
292
-        $entity->userId = (int) $data['user_id'];
293
-        $entity->type = (int) $data['type'];
294
-        $entity->ocTeamComment = (bool) $data['oc_team_comment'];
291
+        $entity->cacheId = (int)$data['cache_id'];
292
+        $entity->userId = (int)$data['user_id'];
293
+        $entity->type = (int)$data['type'];
294
+        $entity->ocTeamComment = (bool)$data['oc_team_comment'];
295 295
         $entity->date = new DateTime($data['date']);
296 296
         $entity->orderDate = new DateTime($data['order_date']);
297
-        $entity->needsMaintenance = (bool) $data['needs_maintenance'];
298
-        $entity->listingOutdated = (bool) $data['listing_outdated'];
297
+        $entity->needsMaintenance = (bool)$data['needs_maintenance'];
298
+        $entity->listingOutdated = (bool)$data['listing_outdated'];
299 299
         $entity->text = $data['text'];
300
-        $entity->textHtml = (bool) $data['text_html'];
301
-        $entity->textHtmledit = (bool) $data['text_htmledit'];
302
-        $entity->ownerNotified = (bool) $data['owner_notified'];
303
-        $entity->picture = (int) $data['picture'];
300
+        $entity->textHtml = (bool)$data['text_html'];
301
+        $entity->textHtmledit = (bool)$data['text_htmledit'];
302
+        $entity->ownerNotified = (bool)$data['owner_notified'];
303
+        $entity->picture = (int)$data['picture'];
304 304
 
305 305
         return $entity;
306 306
     }
Please login to merge, or discard this patch.
htdocs/lib2/rowEditor.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
         }
385 385
 
386 386
         if ($type == RE_TYPE_INT) {
387
-            $value = (int) $value + 0;
387
+            $value = (int)$value + 0;
388 388
         } elseif ($type == RE_TYPE_FLOAT) {
389 389
             $value = $value + 0;
390 390
         } elseif ($type == RE_TYPE_DOUBLE) {
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
     public function pFormatValueSql($type, $value)
410 410
     {
411 411
         if ($type == RE_TYPE_INT) {
412
-            $value = (int) $value + 0;
412
+            $value = (int)$value + 0;
413 413
         } elseif ($type == RE_TYPE_FLOAT) {
414 414
             $value = $value + 0;
415 415
         } elseif ($type == RE_TYPE_DOUBLE) {
Please login to merge, or discard this patch.