Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ Dockerfile linguist-detectable=false
/Dockerfile export-ignore
/docker-compose.yml export-ignore
/entrypoint.sh export-ignore
/phpcs.xml export-ignore
/phpunit.xml export-ignore
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
'no_empty_comment' => true,
'no_trailing_whitespace_in_comment' => true,
'single_line_comment_spacing' => true,
'single_line_comment_style' => ['comment_types' => ['asterisk', 'hash']]
'single_line_comment_style' => ['comment_types' => ['hash']]
];

$constantNotationRules = [
Expand Down
8 changes: 4 additions & 4 deletions src/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function write(string $id, string $data): bool

return true;
} catch (DatabaseException $e) {
throw new SessionException('could not update session: ' . $e->getMessage(), $e->getCode(), $e->getPrevious()); // phpcs:ignore
throw new SessionException('could not update session: ' . $e->getMessage(), $e->getCode(), $e->getPrevious());
}
}

Expand All @@ -105,7 +105,7 @@ public function destroy(string $id): bool

return true;
} catch (DatabaseException $e) {
throw new SessionException('could not delete session: ' . $e->getMessage(), $e->getCode(), $e->getPrevious()); // phpcs:ignore
throw new SessionException('could not delete session: ' . $e->getMessage(), $e->getCode(), $e->getPrevious());
}
}

Expand All @@ -120,7 +120,7 @@ public function gc(int $max_lifetime): bool

return true;
} catch (DatabaseException $e) {
throw new SessionException('could not clean old sessions: ' . $e->getMessage(), $e->getCode(), $e->getPrevious()); // phpcs:ignore
throw new SessionException('could not clean old sessions: ' . $e->getMessage(), $e->getCode(), $e->getPrevious());
}
}

Expand Down Expand Up @@ -161,7 +161,7 @@ public function updateTimestamp(string $id, string $data): bool
*
* @noinspection PhpMethodNamingConventionInspection
*/
public function create_sid(): string // phpcs:ignore
public function create_sid(): string
{
try {
$string = '';
Expand Down
4 changes: 2 additions & 2 deletions src/DriverManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static function useNewDatabaseEncryptionDriver(array|Configurator $config
}

/** @throws SessionException */
public static function useCurrentDatabaseEncryptionDriver(DB $databaseInstance, string $key, ?string $method = null): void // phpcs:ignore
public static function useCurrentDatabaseEncryptionDriver(DB $databaseInstance, string $key, ?string $method = null): void
{
static::throwExceptionIfHasStarted();

Expand Down Expand Up @@ -147,7 +147,7 @@ public static function useNewRedisEncryptionDriver(array|string $configuration,
}

/** @throws SessionException */
public static function useCurrentRedisEncryptionDriver(PredisClient $redisInstance, string $key, ?string $method = null): void // phpcs:ignore
public static function useCurrentRedisEncryptionDriver(PredisClient $redisInstance, string $key, ?string $method = null): void
{
static::throwExceptionIfHasStarted();

Expand Down
2 changes: 1 addition & 1 deletion src/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function encrypt(string $data): string

/** @noinspection CryptographicallySecureRandomnessInspection */
$iv = \openssl_random_pseudo_bytes($length, $cstrong);
// @noinspection PhpStrictComparisonWithOperandsOfDifferentTypesInspection
/** @noinspection PhpStrictComparisonWithOperandsOfDifferentTypesInspection */
if ($iv === false || $cstrong === false) {
// @codeCoverageIgnoreStart
// Could not reach this statement without mocking the function
Expand Down
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function updateTimestamp(string $id, string $data): bool
*
* @noinspection PhpMethodNamingConventionInspection
*/
public function create_sid(): string // phpcs:ignore
public function create_sid(): string
{
$string = '';
$characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-';
Expand Down
2 changes: 1 addition & 1 deletion src/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function updateTimestamp(string $id, string $data): bool
*
* @noinspection PhpMethodNamingConventionInspection
*/
public function create_sid(): string // phpcs:ignore
public function create_sid(): string
{
$string = '';
$characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-';
Expand Down