10000 [Cache] Coding standard fixes · symfony/symfony@14fd937 · GitHub
[go: up one dir, main page]

Skip to content

Commit 14fd937

Browse files
committed
[Cache] Coding standard fixes
1 parent e21cf28 commit 14fd937

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Symfony/Component/Cache/Adapter/AbstractAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ abstract class AbstractAdapter implements AdapterInterface, CacheInterface, Logg
4242

4343
protected function __construct(string $namespace = '', int $defaultLifetime = 0)
4444
{
45-
if (static::$reservedChars === null) {
45+
if (null === static::$reservedChars) {
4646
static::$reservedChars = str_replace(self::NS_SEPARATOR, '', CacheItem::RESERVED_CHARACTERS);
4747
}
4848
$this->namespace = '' === $namespace ? '' : CacheItem::validateKey($namespace, static::$reservedChars).static::NS_SEPARATOR;

src/Symfony/Component/Cache/Adapter/AbstractTagAwareAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ abstract class AbstractTagAwareAdapter implements TagAwareAdapterInterface, TagA
4949

5050
protected function __construct(string $namespace = '', int $defaultLifetime = 0)
5151
{
52-
if (static::$reservedChars === null) {
52+
if (null === static::$reservedChars) {
5353
static::$reservedChars = str_replace(self::NS_SEPARATOR, '', CacheItem::RESERVED_CHARACTERS);
5454
}
5555
$this->namespace = '' === $namespace ? '' : CacheItem::validateKey($namespace, static::$reservedChars).static::NS_SEPARATOR;

src/Symfony/Component/Cache/Adapter/ArrayAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(
5555
private float $maxLifetime = 0,
5656
private int $maxItems = 0,
5757
) {
58-
if (static::$reservedChars === null) {
58+
if (null === static::$reservedChars) {
5959
static::$reservedChars = str_replace(self::NS_SEPARATOR, '', CacheItem::RESERVED_CHARACTERS);
6060
}
6161

src/Symfony/Component/Cache/CacheItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function getMetadata(): array
123123
/**
124124
* Validates a cache key according to PSR-6.
125125
*
126-
* @param mixed $key The key to validate
126+
* @param mixed $key The key to validate
127127
* @param string $reservedChars Can be used to override the list of reserved characters
128128
*
129129
* @throws InvalidArgumentException When $key is not valid

0 commit comments

Comments
 (0)
0