Skip to content

Commit 68cd29f

Browse files
author
Jonathon Hill
committed
Whitespace
1 parent 299e530 commit 68cd29f

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

src/Handlers/ArrayHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ArrayHandler implements
2828
use SessionIdTrait;
2929

3030
private SessionId $sid;
31-
31+
3232
/**
3333
* @var array [string $data, array $meta = [string $id, int $last_modified, bool? $destroyed]]
3434
*/
@@ -102,7 +102,7 @@ public function write_cas($token, $id, $data): bool
102102
) {
103103
return false;
104104
}
105-
105+
106106
return $this->write($id, $data);
107107
}
108108

src/Handlers/FileHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function read($id)
6565
if (!$this->validateId($id)) {
6666
return false;
6767
}
68-
68+
6969
return (string) file_get_contents($this->getFilePath($id));
7070
}
7171

src/Handlers/RedisHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function open($path, $name): bool
4141
if (!empty($config['query'])) {
4242
parse_str($config['query'], $query);
4343
}
44-
44+
4545
$redis = new Redis();
4646

4747
if (!$redis->connect($config['host'], (int) $config['port'])) {

src/Handlers/ScrapbookHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class ScrapbookHandler implements
3838
protected float $lastWriteTimestamp;
3939

4040
public function __construct(
41-
Config $config,
42-
KeyValueStore $store,
41+
Config $config,
42+
KeyValueStore $store,
4343
bool $disableCollections = false
4444
) {
4545
$this->config = $config; // still required by SessionIdTrait

src/Manager.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function commit(): bool
7373
$this->currentSession->close();
7474
return false;
7575
}
76-
76+
7777
if (!$this->currentSession->isModified() && $this->config->getLazyWrite()) {
7878
return false;
7979
}
@@ -353,7 +353,7 @@ public function start(): bool
353353

354354
if (is_string($contents)) {
355355
$isDecoded = $this->decode($contents);
356-
356+
357357
if (!$isDecoded) {
358358
$handler->destroy($id);
359359
$handler->close();
@@ -392,7 +392,7 @@ public function status(): int
392392
if (!isset($this->currentSession) || !$this->currentSession->isInitialized()) {
393393
return \PHP_SESSION_NONE;
394394
}
395-
395+
396396
return \PHP_SESSION_ACTIVE;
397397
}
398398

@@ -444,7 +444,7 @@ public function write_close(): bool
444444
} else {
445445
$success = $handler->write($id, $contents);
446446
}
447-
447+
448448
if ($success) {
449449
$this->currentSession->close();
450450
return true;

src/SessionId.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function validate_sid(string $id): bool
7777
if ($prefix) {
7878
$id = substr($id, strlen($prefix));
7979
}
80-
80+
8181
switch ($this->config->getSidBitsPerCharacter()) {
8282
case 4:
8383
// 0123456789abcdef

0 commit comments

Comments
 (0)