Skip to content

Commit 917f791

Browse files
mychidarkogithub-actions[bot]
authored andcommitted
chore: fix styling
1 parent 6738e73 commit 917f791

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/Http/Session.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public static function retrieve($key, $default = null, $sanitize = false)
7474
public static function body()
7575
{
7676
static::start();
77+
7778
return $_SESSION;
7879
}
7980

@@ -188,6 +189,7 @@ public static function id($id = null)
188189
public static function regenerate($clearData = false)
189190
{
190191
session::start();
192+
191193
return session_regenerate_id($clearData);
192194
}
193195

@@ -199,6 +201,7 @@ public static function regenerate($clearData = false)
199201
public static function encode(): string
200202
{
201203
static::start();
204+
202205
return session_encode();
203206
}
204207

@@ -210,6 +213,7 @@ public static function encode(): string
210213
public static function decode($data)
211214
{
212215
static::start();
216+
213217
return session_decode($data);
214218
}
215219

tests/flash.test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@
3030
expect($flash->display())->toBe($message);
3131
expect($flash->display('message2'))->toBe($message2);
3232
});
33-

tests/write.test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$session = new \Leaf\Http\Session();
1717
$session->set([
1818
'name' => $name,
19-
'age' => $age
19+
'age' => $age,
2020
]);
2121

2222
expect($_SESSION['name'] ?? null)->toBe($name);

0 commit comments

Comments
 (0)