Passed
Push — master ( b90897...8b18d2 )
by
unknown
12:53
created
sysext/beuser/Classes/Domain/Repository/BackendUserSessionRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         // Map array to correct keys
42 42
         $allSessions = array_map(
43
-            function ($session) {
43
+            function($session) {
44 44
                 return [
45 45
                     'id' => $session['ses_id'], // this is the hashed sessionId
46 46
                     'ip' => $session['ses_iplock'],
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         );
53 53
 
54 54
         // Sort by timestamp
55
-        usort($allSessions, function ($session1, $session2) {
55
+        usort($allSessions, function($session1, $session2) {
56 56
             return $session1['timestamp'] <=> $session2['timestamp'];
57 57
         });
58 58
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         return array_filter(
73 73
             $allActive,
74
-            function ($session) use ($backendUser) {
74
+            function($session) use ($backendUser) {
75 75
                 return (int)$session['ses_userid'] === $backendUser->getUid();
76 76
             }
77 77
         );
Please login to merge, or discard this patch.