Skip to content

Commit 015a33c

Browse files
committed
formatting
1 parent bdac8cf commit 015a33c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Illuminate/Cache/DatabaseStore.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ protected function serialize($value)
488488
{
489489
$result = serialize($value);
490490

491-
if (($this->connection instanceof PostgresConnection || $this->connection instanceof SQLiteConnection) && str_contains($result, "\0")) {
491+
if (($this->connection instanceof PostgresConnection ||
492+
$this->connection instanceof SQLiteConnection) &&
493+
str_contains($result, "\0")) {
492494
$result = base64_encode($result);
493495
}
494496

@@ -503,7 +505,9 @@ protected function serialize($value)
503505
*/
504506
protected function unserialize($value)
505507
{
506-
if (($this->connection instanceof PostgresConnection || $this->connection instanceof SQLiteConnection) && ! Str::contains($value, [':', ';'])) {
508+
if (($this->connection instanceof PostgresConnection ||
509+
$this->connection instanceof SQLiteConnection) &&
510+
! Str::contains($value, [':', ';'])) {
507511
$value = base64_decode($value);
508512
}
509513

0 commit comments

Comments
 (0)