Passed
Push — comments ( f72fc7...627e2d )
by Richard
08:29
created
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.
includes/Pages/PageDomainSwitch.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         try {
45 45
             $this->getDomainAccessManager()->switchDomain($currentUser, $newDomain);
46 46
         }
47
-        catch(DomainSwitchNotAllowedException $ex){
47
+        catch(DomainSwitchNotAllowedException $ex) {
48 48
             throw new AccessDeniedException($this->getSecurityManager(), $this->getDomainAccessManager());
49 49
         }
50 50
 
@@ -58,7 +58,8 @@  discard block
 block discarded – undo
58 58
 
59 59
         if ($this->barrierTest($route[1], $currentUser, $route[0])) {
60 60
             $this->redirect('/' . $referrer);
61
-        } else {
61
+        }
62
+        else {
62 63
             $this->redirect('/');
63 64
         }
64 65
     }
Please login to merge, or discard this patch.