Passed
Push — new-search ( 216863 )
by Simon
15:12 queued 11:18
created
includes/DataObjects/Domain.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,8 @@
 block discarded – undo
63 63
     }
64 64
 
65 65
 
66
-    public static function getAll(PdoDatabase $database) {
66
+    public static function getAll(PdoDatabase $database)
67
+    {
67 68
         $statement = $database->prepare("SELECT * FROM domain;");
68 69
         $statement->execute();
69 70
 
Please login to merge, or discard this patch.
includes/Validation/RequestValidationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@
 block discarded – undo
248 248
                 /** @var RequestQueue|false $targetQueue */
249 249
                 $targetQueue = RequestQueue::getById($ban->getTargetQueue(), $this->database);
250 250
 
251
-                if ($targetQueue === false ) {
251
+                if ($targetQueue === false) {
252 252
                     $comment = new Comment();
253 253
                     $comment->setDatabase($this->database);
254 254
                     $comment->setRequest($request->getId());
Please login to merge, or discard this patch.
includes/Pages/PageDomainSwitch.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,8 @@
 block discarded – undo
51 51
 
52 52
         if ($this->barrierTest($route[1], $currentUser, $route[0])) {
53 53
             $this->redirect('/' . $referrer);
54
-        } else {
54
+        }
55
+        else {
55 56
             $this->redirect('/');
56 57
         }
57 58
     }
Please login to merge, or discard this patch.
includes/Fragments/NavigationMenuAccessControl.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,13 +116,13 @@
 block discarded – undo
116 116
         $countOfJobQueue = 0;
117 117
 
118 118
         // Count of flagged comments:
119
-        if($this->barrierTest(RoleConfiguration::MAIN, $currentUser, PageListFlaggedComments::class)) {
119
+        if ($this->barrierTest(RoleConfiguration::MAIN, $currentUser, PageListFlaggedComments::class)) {
120 120
             // We want all flagged comments that haven't been acknowledged if we can visit the page.
121 121
             $countOfFlagged = sizeof(Comment::getFlaggedComments($database));
122 122
         }
123 123
 
124 124
         // Count of failed job queue changes:
125
-        if($this->barrierTest(RoleConfiguration::MAIN, $currentUser, PageJobQueue::class)) {
125
+        if ($this->barrierTest(RoleConfiguration::MAIN, $currentUser, PageJobQueue::class)) {
126 126
             // We want all failed jobs that haven't been acknowledged if we can visit the page.
127 127
             JobQueueSearchHelper::get($database)
128 128
                 ->statusIn([JobQueue::STATUS_FAILED])
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,8 @@
 block discarded – undo
109 109
      *
110 110
      * @return void
111 111
      */
112
-    public function setUpNavBarBadges(User $currentUser, PdoDatabase $database) {
112
+    public function setUpNavBarBadges(User $currentUser, PdoDatabase $database)
113
+    {
113 114
         // Set up some variables.
114 115
         // A size of 0 causes nothing to show up on the page (checked on navigation-menu.tpl) so leaving it 0 here is fine.
115 116
         $countOfFlagged = 0;
Please login to merge, or discard this patch.