Passed
Push — master ( 75d456...236a2f )
by Michael
02:15
created
helper/db.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             'versions' => implode(',', $issue->getVersions()),
262 262
             'updated' => $issue->getUpdated(),
263 263
         ]);
264
-        return (bool)$ok;
264
+        return (bool) $ok;
265 265
     }
266 266
 
267 267
     /**
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
         if (!$util->isValidTimeStamp($rev)) {
394 394
             throw new InvalidArgumentException("Second parameter must be a valid timestamp!");
395 395
         }
396
-        if ((int)$rev === 0) {
396
+        if ((int) $rev === 0) {
397 397
             $rev = filemtime(wikiFN($page));
398 398
             $changelog = new PageChangelog($page);
399 399
             $rev_info = $changelog->getRevisionInfo($rev);
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
             $this->savePageRev($page, $rev, $rev_info['sum'], $user);
402 402
         }
403 403
         /** @noinspection TypeUnsafeComparisonInspection this is done to ensure $issue_id is a natural number */
404
-        if (!is_numeric($issue_id) || (int)$issue_id != $issue_id) {
404
+        if (!is_numeric($issue_id) || (int) $issue_id != $issue_id) {
405 405
             throw new InvalidArgumentException("IssueId must be an integer!");
406 406
         }
407 407
         $ok = $this->saveEntity('pagerev_issues', [
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
             'type' => $type,
415 415
         ]);
416 416
 
417
-        return (bool)$ok;
417
+        return (bool) $ok;
418 418
     }
419 419
 
420 420
     /**
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
             'summary' => $summary,
444 444
             'user' => $user,
445 445
         ]);
446
-        return (bool)$ok;
446
+        return (bool) $ok;
447 447
     }
448 448
 
449 449
     /**
Please login to merge, or discard this patch.