Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 4, 2020
1 parent 340d604 commit c8fe2c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Store/CombinedStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function save(Key $key)

public function waitAndSave(Key $key)
{
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', static::class));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Store/MemcachedStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function save(Key $key)

public function waitAndSave(Key $key)
{
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', static::class));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Store/RedisStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function save(Key $key)

public function waitAndSave(Key $key)
{
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', static::class));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Store/SemaphoreStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private function lock(Key $key, $blocking)
if (\PHP_VERSION_ID >= 50601) {
$acquired = @sem_acquire($resource, !$blocking);
} elseif (!$blocking) {
throw new NotSupportedException(sprintf('The store "%s" does not supports non blocking locks.', \get_class($this)));
throw new NotSupportedException(sprintf('The store "%s" does not supports non blocking locks.', static::class));
} else {
$acquired = @sem_acquire($resource);
}
Expand Down

0 comments on commit c8fe2c2

Please sign in to comment.