Passed
Pull Request — development (#676)
by Thomas
07:19
created
htdocs/childwp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 $isSubmit = isset($_POST['submitform']);
21 21
 $redirect = isset($_POST['back']);
22 22
 
23
-$cacheManager = AppKernel::Container()->get(Oc\Libse\Cache\ManagerCache::class);;
23
+$cacheManager = AppKernel::Container()->get(Oc\Libse\Cache\ManagerCache::class); ;
24 24
 $handler = new HandlerChildWp();
25 25
 $controller = new ControllerChildWp();
26 26
 $presenter = $controller->createPresenter($tpl, $cacheManager, $handler);
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/Cache/ManagerCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             return false;
26 26
         }
27 27
 
28
-        return (int) $this->connection
28
+        return (int)$this->connection
29 29
                 ->fetchColumn(
30 30
                     'SELECT COUNT(*) FROM `caches` WHERE `cache_id` = :cacheId',
31 31
                     ['cacheId' => $cacheId]
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $login->verify();
40 40
 
41
-        $cacheOwner = (int) $this->connection
41
+        $cacheOwner = (int)$this->connection
42 42
             ->fetchColumn(
43 43
                 'SELECT `user_id` FROM `caches` WHERE `cache_id`= :cacheId',
44 44
                 ['cacheId' => $cacheId]
Please login to merge, or discard this patch.
htdocs/lib2/login.class.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@  discard block
 block discarded – undo
15 15
 
16 16
 use OcLegacy\Util\PasswordCrypt;
17 17
 
18
-define('LOGIN_UNKNOWN_ERROR', -1);     // unknown error occurred
19
-define('LOGIN_OK', 0);                 // login succeeded
20
-define('LOGIN_BADUSERPW', 1);          // bad username or password
21
-define('LOGIN_TOOMUCHLOGINS', 2);      // too many logins in short time
22
-define('LOGIN_USERNOTACTIVE', 3);      // the userAccount locked
18
+define('LOGIN_UNKNOWN_ERROR', -1); // unknown error occurred
19
+define('LOGIN_OK', 0); // login succeeded
20
+define('LOGIN_BADUSERPW', 1); // bad username or password
21
+define('LOGIN_TOOMUCHLOGINS', 2); // too many logins in short time
22
+define('LOGIN_USERNOTACTIVE', 3); // the userAccount locked
23 23
 define('LOGIN_EMPTY_USERPASSWORD', 4); // given username/password was empty
24
-define('LOGIN_LOGOUT_OK', 5);          // logout was successful
24
+define('LOGIN_LOGOUT_OK', 5); // logout was successful
25 25
 
26 26
 // login times in seconds
27 27
 define('LOGIN_TIME', 60 * 60);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         // TODO good input evaluation
71 71
         if ($cookie->is_set('userid') && $cookie->is_set('username')) {
72
-            $this->userid = (int) $cookie->get('userid');
72
+            $this->userid = (int)$cookie->get('userid');
73 73
             $this->username = $cookie->get('username');
74 74
             $this->permanent = (($cookie->get('permanent') + 0) == 1);
75 75
             $this->lastlogin = $cookie->get('lastlogin');
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
                     $rUser['user_id'],
298 298
                     ($permanent != false ? 1 : 0)
299 299
                 );
300
-                $this->userid = (int) $rUser['user_id'];
300
+                $this->userid = (int)$rUser['user_id'];
301 301
                 $this->username = $rUser['username'];
302 302
                 $this->permanent = $permanent;
303 303
                 $this->lastlogin = date('Y-m-d H:i:s');
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
             );
344 344
             if ($rUser = sql_fetch_assoc($rs)) {
345 345
                 $this->username = $rUser['username'];
346
-                $this->userid = (int) $rUser['user_id'];
346
+                $this->userid = (int)$rUser['user_id'];
347 347
                 $this->admin = $rUser['admin'];
348 348
                 $this->verified = true;
349 349
                 sqlf("UPDATE `user` SET `user`.`last_login`=NOW() WHERE `user`.`user_id`='&1'", $this->userid);
Please login to merge, or discard this patch.