Completed
Push — next ( 8119eb...ae8da3 )
by Thomas
19s queued 12s
created
htdocs/lib/login.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
         // user.last_login gives the overall last login date, including OKAPI logins.
122 122
 
123 123
         if ($rUser = sql_fetch_assoc($rs)) {
124
-            if ((($this->permanent == true) && (strtotime($rUser['last_login']) + LOGIN_TIME_PERMANENT  / 2 < time())) ||
124
+            if ((($this->permanent == true) && (strtotime($rUser['last_login']) + LOGIN_TIME_PERMANENT / 2 < time())) ||
125 125
                 (($this->permanent == false) && (strtotime($rUser['last_login']) + LOGIN_TIME / 2 < time()))
126 126
             ) {
127 127
                 sql(
Please login to merge, or discard this patch.
htdocs/src/Oc/Language/LanguageRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -218,10 +218,10 @@
 block discarded – undo
218 218
         $entity->nativeName = $data['native_name'];
219 219
         $entity->de = $data['de'];
220 220
         $entity->en = $data['en'];
221
-        $entity->translationId = (int) $data['trans_id'];
222
-        $entity->listDefaultDe = (bool) $data['list_default_de'];
223
-        $entity->listDefaultEn = (bool) $data['list_default_en'];
224
-        $entity->isTranslated = (bool) $data['is_translated'];
221
+        $entity->translationId = (int)$data['trans_id'];
222
+        $entity->listDefaultDe = (bool)$data['list_default_de'];
223
+        $entity->listDefaultEn = (bool)$data['list_default_en'];
224
+        $entity->isTranslated = (bool)$data['is_translated'];
225 225
 
226 226
         return $entity;
227 227
     }
Please login to merge, or discard this patch.
htdocs/src/Oc/Country/CountryRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -181,9 +181,9 @@
 block discarded – undo
181 181
         $entity->name = $data['name'];
182 182
         $entity->de = $data['de'];
183 183
         $entity->en = $data['en'];
184
-        $entity->translationId = (int) $data['trans_id'];
185
-        $entity->listDefaultDe = (bool) $data['list_default_de'];
186
-        $entity->listDefaultEn = (bool) $data['list_default_en'];
184
+        $entity->translationId = (int)$data['trans_id'];
185
+        $entity->listDefaultDe = (bool)$data['list_default_de'];
186
+        $entity->listDefaultEn = (bool)$data['list_default_en'];
187 187
         $entity->sortDe = $data['sort_de'];
188 188
         $entity->sortEn = $data['sort_en'];
189 189
 
Please login to merge, or discard this patch.
htdocs/lib2/logic/user.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public static function fromEMail($email)
28 28
     {
29
-        $userId = (int) sql_value("SELECT `user_id` FROM `user` WHERE `email`='&1'", 0, $email);
29
+        $userId = (int)sql_value("SELECT `user_id` FROM `user` WHERE `email`='&1'", 0, $email);
30 30
         if ($userId === 0) {
31 31
             return null;
32 32
         }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public static function fromUsername($username)
43 43
     {
44
-        $userId = (int) sql_value("SELECT `user_id` FROM `user` WHERE `username`='&1'", 0, $username);
44
+        $userId = (int)sql_value("SELECT `user_id` FROM `user` WHERE `username`='&1'", 0, $username);
45 45
         if ($userId === 0) {
46 46
             return null;
47 47
         }
Please login to merge, or discard this patch.
htdocs/adminhistory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
         [':wp' => $_REQUEST['wp']]
29 29
     );
30 30
 } else {
31
-    $cacheId = isset($_REQUEST['cacheid']) ? (int) $_REQUEST['cacheid'] : -1;
31
+    $cacheId = isset($_REQUEST['cacheid']) ? (int)$_REQUEST['cacheid'] : -1;
32 32
 }
33 33
 
34 34
 $showHistory = false;
35 35
 $error = '';
36 36
 
37 37
 if ($cacheId >= 0 &&
38
-    $connection->fetchColumn('SELECT COUNT(*) FROM `caches` WHERE `cache_id`=:id',[':id' => $cacheId]) <> 1)
38
+    $connection->fetchColumn('SELECT COUNT(*) FROM `caches` WHERE `cache_id`=:id', [':id' => $cacheId]) <> 1)
39 39
 {
40 40
     $error = $translate->t('Cache not found', '', '', 0);
41 41
 } elseif ($cacheId > 0) {
Please login to merge, or discard this patch.
htdocs/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,16 +66,16 @@  discard block
 block discarded – undo
66 66
     // current cache and log-counters
67 67
     $tpl->assign(
68 68
         'count_hiddens',
69
-        number1000((int) $connection->fetchColumn('SELECT COUNT(*) AS `hiddens` FROM `caches` WHERE `status` = 1'))
69
+        number1000((int)$connection->fetchColumn('SELECT COUNT(*) AS `hiddens` FROM `caches` WHERE `status` = 1'))
70 70
     );
71 71
     $tpl->assign(
72 72
         'count_founds',
73
-        number1000((int) $connection->fetchColumn('SELECT COUNT(*) AS `founds` FROM `cache_logs` WHERE `type` = 1'))
73
+        number1000((int)$connection->fetchColumn('SELECT COUNT(*) AS `founds` FROM `cache_logs` WHERE `type` = 1'))
74 74
     );
75 75
     $tpl->assign(
76 76
         'count_users',
77 77
         number1000(
78
-            (int) $connection->fetchColumn(
78
+            (int)$connection->fetchColumn(
79 79
                 'SELECT COUNT(*) AS `users`
80 80
                  FROM (
81 81
                        SELECT DISTINCT `user_id`
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     // get total event count for all countries
94 94
     $tpl->assign(
95 95
         'total_events',
96
-        (int) $connection->fetchColumn(
96
+        (int)$connection->fetchColumn(
97 97
             'SELECT COUNT(*)
98 98
              FROM `caches`
99 99
              WHERE `type` = 6
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/Validator/RealValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
     {
38 38
         $value = str_replace(',', '.', $value);
39 39
 
40
-        return (float) $value;
40
+        return (float)$value;
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
htdocs/src/Oc/Command/CodeCoverageCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
         $checkedElements = 0;
57 57
 
58 58
         foreach ($metrics as $metric) {
59
-            $totalElements += (int) $metric['elements'];
60
-            $checkedElements += (int) $metric['coveredelements'];
59
+            $totalElements += (int)$metric['elements'];
60
+            $checkedElements += (int)$metric['coveredelements'];
61 61
         }
62 62
 
63 63
         $coverage = ($checkedElements / $totalElements) * 100;
Please login to merge, or discard this patch.
htdocs/src/Oc/FieldNotes/Persistence/FieldNoteRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $databaseArray
189 189
         );
190 190
 
191
-        $entity->id = (int) $this->connection->lastInsertId();
191
+        $entity->id = (int)$this->connection->lastInsertId();
192 192
 
193 193
         return $entity;
194 194
     }
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             ['id' => $entity->id]
216 216
         );
217 217
 
218
-        $entity->id = (int) $this->connection->lastInsertId();
218
+        $entity->id = (int)$this->connection->lastInsertId();
219 219
 
220 220
         return $entity;
221 221
     }
Please login to merge, or discard this patch.