Passed
Push — dependabot/composer/php-amqpli... ( 3e0675...28c26b )
by
unknown
22:03 queued 17:39
created
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/DataObjects/Domain.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,8 @@
 block discarded – undo
86 86
         return $result;
87 87
     }
88 88
 
89
-    public static function getAll(PdoDatabase $database) {
89
+    public static function getAll(PdoDatabase $database)
90
+    {
90 91
         $statement = $database->prepare("SELECT * FROM domain;");
91 92
         $statement->execute();
92 93
 
Please login to merge, or discard this patch.
includes/Pages/PageRequestFormManagement.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,8 @@
 block discarded – undo
56 56
         $this->setTemplate('form-management/main.tpl');
57 57
     }
58 58
 
59
-    protected function preview() {
59
+    protected function preview()
60
+    {
60 61
         $previewContent = WebRequest::getSessionContext('preview');
61 62
 
62 63
         $renderer = new MarkdownRenderingHelper();
Please login to merge, or discard this patch.
includes/Fragments/NavigationMenuAccessControl.php 1 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.
includes/DataObjects/UserPreference.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@  discard block
 block discarded – undo
28 28
     /** @var ?mixed */
29 29
     private $value;
30 30
 
31
-    public static function getLocalPreference(PdoDatabase $database, int $user, string $preference, int $domain) {
31
+    public static function getLocalPreference(PdoDatabase $database, int $user, string $preference, int $domain)
32
+    {
32 33
         $statement = $database->prepare('SELECT * FROM userpreference WHERE preference = :preference AND USER = :user AND domain = :domain');
33 34
         $statement->execute([
34 35
             ':user' => $user,
@@ -45,7 +46,8 @@  discard block
 block discarded – undo
45 46
         return $resultObject;
46 47
     }
47 48
 
48
-    public static function getGlobalPreference(PdoDatabase $database, int $user, string $preference) {
49
+    public static function getGlobalPreference(PdoDatabase $database, int $user, string $preference)
50
+    {
49 51
         $statement = $database->prepare('SELECT * FROM userpreference WHERE preference = :preference AND USER = :user AND domain IS NULL');
50 52
         $statement->execute([
51 53
             ':user' => $user,
@@ -88,7 +90,8 @@  discard block
 block discarded – undo
88 90
             else {
89 91
                 throw new Exception($statement->errorInfo());
90 92
             }
91
-        }else{
93
+        }
94
+        else {
92 95
             // update
93 96
             $statement = $this->dbObject->prepare(<<<SQL
94 97
                 UPDATE `userpreference` SET 
Please login to merge, or discard this patch.
includes/Pages/Request/PageRequestAccount.php 1 patch
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -320,11 +320,10 @@
 block discarded – undo
320 320
 
321 321
     private function savePrivateData(Request $request)
322 322
     {
323
-        foreach ($this->getSiteConfiguration()->getAcceptClientHints() as $header)
324
-        {
323
+        foreach ($this->getSiteConfiguration()->getAcceptClientHints() as $header) {
325 324
             $value = WebRequest::httpHeader($header);
326 325
 
327
-            if($value === null){
326
+            if($value === null) {
328 327
                 continue;
329 328
             }
330 329
 
Please login to merge, or discard this patch.