Passed
Push — dependabot/composer/fortawesom... ( b43113 )
by
unknown
05:17
created
includes/Providers/TorExitProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@
 block discarded – undo
44 44
 
45 45
         if ($count > 0) {
46 46
             return true;
47
-        }
48
-        else {
47
+        } else {
49 48
             return false;
50 49
         }
51 50
     }
Please login to merge, or discard this patch.
includes/Providers/CachedApiAntispoofProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
             $cacheEntry->save();
62 62
 
63 63
             $cacheResult = $cacheEntry;
64
-        }
65
-        else {
64
+        } else {
66 65
             $data = $cacheResult->getData();
67 66
         }
68 67
 
Please login to merge, or discard this patch.
includes/ConsoleTasks/RecreateTrustedIpTableTask.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
             $hashPos = strpos($rawline, '#');
102 102
             if ($hashPos !== false) {
103 103
                 $line = substr($rawline, 0, $hashPos);
104
-            }
105
-            else {
104
+            } else {
106 105
                 $line = $rawline;
107 106
             }
108 107
 
Please login to merge, or discard this patch.
includes/ConsoleTasks/MigrateToRoles.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
         foreach ($users as $user) {
30 30
             $toAdd = array('user');
31 31
 
32
-            if($user['status'] === 'Admin'){
32
+            if($user['status'] === 'Admin') {
33 33
                 $toAdd[] = 'admin';
34 34
             }
35 35
 
36
-            if($user['checkuser'] == 1){
36
+            if($user['checkuser'] == 1) {
37 37
                 $toAdd[] = 'checkuser';
38 38
             }
39 39
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             $log->setComment($logData);
61 61
             $log->save();
62 62
 
63
-            if($user['status'] === 'Admin' || $user['status'] === 'User'){
63
+            if($user['status'] === 'Admin' || $user['status'] === 'User') {
64 64
                 $update->execute(array('id' => $user['id']));
65 65
             }
66 66
         }
Please login to merge, or discard this patch.
includes/ApplicationBase.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,8 +142,7 @@
 block discarded – undo
142 142
 
143 143
         if ($siteConfiguration->getLocationProviderApiKey() === null) {
144 144
             $page->setLocationProvider(new FakeLocationProvider());
145
-        }
146
-        else {
145
+        } else {
147 146
             $page->setLocationProvider(
148 147
                 new IpLocationProvider(
149 148
                     $database,
Please login to merge, or discard this patch.
includes/PdoDatabase.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@
 block discarded – undo
89 89
         // all over the rest of the code
90 90
         if ($this->hasActiveTransaction) {
91 91
             return false;
92
-        }
93
-        else {
92
+        } else {
94 93
             // set the transaction isolation level for every transaction.
95 94
             $this->exec("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;");
96 95
 
Please login to merge, or discard this patch.
includes/DataObjects/GeoLocation.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,12 +60,10 @@
 block discarded – undo
60 60
 
61 61
             if ($statement->execute()) {
62 62
                 $this->id = (int)$this->dbObject->lastInsertId();
63
-            }
64
-            else {
63
+            } else {
65 64
                 throw new Exception($statement->errorInfo());
66 65
             }
67
-        }
68
-        else {
66
+        } else {
69 67
             // update
70 68
             $statement = $this->dbObject->prepare(<<<SQL
71 69
 UPDATE `geolocation`
Please login to merge, or discard this patch.
includes/DataObjects/RDnsCache.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,12 +59,10 @@
 block discarded – undo
59 59
 
60 60
             if ($statement->execute()) {
61 61
                 $this->id = (int)$this->dbObject->lastInsertId();
62
-            }
63
-            else {
62
+            } else {
64 63
                 throw new Exception($statement->errorInfo());
65 64
             }
66
-        }
67
-        else {
65
+        } else {
68 66
             // update
69 67
             $statement = $this->dbObject->prepare(<<<SQL
70 68
 UPDATE `rdnscache`
Please login to merge, or discard this patch.
includes/DataObjects/UserRole.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,12 +61,10 @@
 block discarded – undo
61 61
 
62 62
             if ($statement->execute()) {
63 63
                 $this->id = (int)$this->dbObject->lastInsertId();
64
-            }
65
-            else {
64
+            } else {
66 65
                 throw new Exception($statement->errorInfo());
67 66
             }
68
-        }
69
-        else {
67
+        } else {
70 68
             // update
71 69
             throw new Exception('Updating roles is not available');
72 70
         }
Please login to merge, or discard this patch.