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

@@ -11,8 +11,6 @@ declare(strict_types=1);
namespace Chill\MainBundle\Templating\Events;
use ArrayAccess;
use RuntimeException;
use Symfony\Component\EventDispatcher\Event;
/**
@@ -30,7 +28,7 @@ use Symfony\Component\EventDispatcher\Event;
* The keys are read-only: if you try to update the context using array access
* (example, using `$event['context_key'] = $bar;`, an error will be thrown.
*/
class DelegatedBlockRenderingEvent extends \Symfony\Contracts\EventDispatcher\Event implements ArrayAccess
class DelegatedBlockRenderingEvent extends \Symfony\Contracts\EventDispatcher\Event implements \ArrayAccess
{
/**
* The returned content of the event.
@@ -82,13 +80,11 @@ class DelegatedBlockRenderingEvent extends \Symfony\Contracts\EventDispatcher\Ev
public function offsetSet($offset, $value): never
{
throw new RuntimeException('The event context is read-only, you are not '
. 'allowed to update it.');
throw new \RuntimeException('The event context is read-only, you are not allowed to update it.');
}
public function offsetUnset($offset): never
{
throw new RuntimeException('The event context is read-only, you are not '
. 'allowed to update it.');
throw new \RuntimeException('The event context is read-only, you are not allowed to update it.');
}
}