Completed
Push — master ( 7f5780...cadf6d )
by Joao
19s
created
webtest/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 </div>
16 16
 
17 17
 <div>
18
-    <textarea cols="50" rows="20"><?php print_r($_SESSION);?>
18
+    <textarea cols="50" rows="20"><?php print_r($_SESSION); ?>
19 19
     </textarea>
20 20
 </div>
21 21
 
Please login to merge, or discard this patch.
tests/JwtSessionTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,19 +66,19 @@  discard block
 block discarded – undo
66 66
             ],
67 67
             [
68 68
                 [
69
-                    "text" => [ 1, 2, 3 ]
69
+                    "text" => [1, 2, 3]
70 70
                 ],
71 71
                 "text|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}"
72 72
             ],
73 73
             [
74 74
                 [
75
-                    "text" => [ "a" => 1, "b" => 2, "c" => 3 ]
75
+                    "text" => ["a" => 1, "b" => 2, "c" => 3]
76 76
                 ],
77 77
                 "text|a:3:{s:1:\"a\";i:1;s:1:\"b\";i:2;s:1:\"c\";i:3;}"
78 78
             ],
79 79
             [
80 80
                 [
81
-                    "text" => [ "a" => 1, "b" => 2, "c" => 3 ],
81
+                    "text" => ["a" => 1, "b" => 2, "c" => 3],
82 82
                     "single" => 2000
83 83
                 ],
84 84
                 "text|a:3:{s:1:\"a\";i:1;s:1:\"b\";i:2;s:1:\"c\";i:3;}single|i:2000;"
@@ -91,13 +91,13 @@  discard block
 block discarded – undo
91 91
             ],
92 92
             [
93 93
                 [
94
-                    "text" => [ "a" => $obj ]
94
+                    "text" => ["a" => $obj]
95 95
                 ],
96 96
                 "text|a:1:{s:1:\"a\";O:8:\"stdClass\":2:{s:5:\"prop1\";s:6:\"value1\";s:5:\"prop2\";s:6:\"value2\";}}"
97 97
             ],
98 98
             [
99 99
                 [
100
-                    "text" => [ $obj ]
100
+                    "text" => [$obj]
101 101
                 ],
102 102
                 "text|a:1:{i:0;O:8:\"stdClass\":2:{s:5:\"prop1\";s:6:\"value1\";s:5:\"prop2\";s:6:\"value2\";}}"
103 103
             ]
Please login to merge, or discard this patch.
src/JwtSession.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
     /**
25 25
      * JwtSession constructor.
26 26
      *
27
-     * @param $serverName
28
-     * @param $secretKey
27
+     * @param string $serverName
28
+     * @param string $secretKey
29 29
      * @param int $timeOutMinutes
30 30
      */
31 31
     public function __construct($serverName, $secretKey, $timeOutMinutes = null, $sessionContext = null, $cookieDomain = null, $path = "/")
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             setcookie(
89 89
                 self::COOKIE_PREFIX . $this->suffix,
90 90
                 null,
91
-                (time()-3000),
91
+                (time() - 3000),
92 92
                 $this->path,
93 93
                 $this->cookieDomain
94 94
             );
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             setcookie(
189 189
                 self::COOKIE_PREFIX . $this->suffix,
190 190
                 $token,
191
-                (time()+$this->timeOutMinutes*60) ,
191
+                (time() + $this->timeOutMinutes * 60),
192 192
                 $this->path,
193 193
                 $this->cookieDomain,
194 194
                 false,
Please login to merge, or discard this patch.