apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -16,4 +16,4 @@ use Redis;
/**
* Redis client configured by chill main.
*/
class ChillRedis extends Redis {}
class ChillRedis extends \Redis {}

View File

@@ -11,7 +11,6 @@ declare(strict_types=1);
namespace Chill\MainBundle\Redis;
use RuntimeException;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
final class RedisConnectionFactory implements EventSubscriberInterface
@@ -37,7 +36,7 @@ final class RedisConnectionFactory implements EventSubscriberInterface
$result = $this->redis->connect($this->host, $this->port, $this->timeout);
if (false === $result) {
throw new RuntimeException('Could not connect to redis instance');
throw new \RuntimeException('Could not connect to redis instance');
}
return $this->redis;