Skip to content

Commit 8a006b3

Browse files
authored
chore: remove comments about phpcs (#262)
1 parent 3cf62b9 commit 8a006b3

7 files changed

Lines changed: 10 additions & 11 deletions

File tree

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ Dockerfile linguist-detectable=false
1212
/Dockerfile export-ignore
1313
/docker-compose.yml export-ignore
1414
/entrypoint.sh export-ignore
15-
/phpcs.xml export-ignore
1615
/phpunit.xml export-ignore

.php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
'no_empty_comment' => true,
112112
'no_trailing_whitespace_in_comment' => true,
113113
'single_line_comment_spacing' => true,
114-
'single_line_comment_style' => ['comment_types' => ['asterisk', 'hash']]
114+
'single_line_comment_style' => ['comment_types' => ['hash']]
115115
];
116116

117117
$constantNotationRules = [

src/Database.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function write(string $id, string $data): bool
9191

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

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

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

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

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

@@ -161,7 +161,7 @@ public function updateTimestamp(string $id, string $data): bool
161161
*
162162
* @noinspection PhpMethodNamingConventionInspection
163163
*/
164-
public function create_sid(): string // phpcs:ignore
164+
public function create_sid(): string
165165
{
166166
try {
167167
$string = '';

src/DriverManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static function useNewDatabaseEncryptionDriver(array|Configurator $config
9898
}
9999

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

@@ -147,7 +147,7 @@ public static function useNewRedisEncryptionDriver(array|string $configuration,
147147
}
148148

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

src/Encryption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function encrypt(string $data): string
153153

154154
/** @noinspection CryptographicallySecureRandomnessInspection */
155155
$iv = \openssl_random_pseudo_bytes($length, $cstrong);
156-
// @noinspection PhpStrictComparisonWithOperandsOfDifferentTypesInspection
156+
/** @noinspection PhpStrictComparisonWithOperandsOfDifferentTypesInspection */
157157
if ($iv === false || $cstrong === false) {
158158
// @codeCoverageIgnoreStart
159159
// Could not reach this statement without mocking the function

src/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function updateTimestamp(string $id, string $data): bool
115115
*
116116
* @noinspection PhpMethodNamingConventionInspection
117117
*/
118-
public function create_sid(): string // phpcs:ignore
118+
public function create_sid(): string
119119
{
120120
$string = '';
121121
$characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-';

src/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function updateTimestamp(string $id, string $data): bool
103103
*
104104
* @noinspection PhpMethodNamingConventionInspection
105105
*/
106-
public function create_sid(): string // phpcs:ignore
106+
public function create_sid(): string
107107
{
108108
$string = '';
109109
$characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-';

0 commit comments

Comments
 (0)