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

@@ -17,9 +17,6 @@ use Twig\Environment;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
use function array_key_exists;
use function ksort;
/**
* Add the function `chill_delegated_block`.
*
@@ -78,7 +75,7 @@ class WidgetRenderingTwig extends AbstractExtension
* which add the widget to this class when it is created by from DI, according
* to the given config under `chill_main`.
*
* @param string $place
* @param string $place
* @param WidgetInterface $widget
*/
public function addWidget($place, mixed $ordering, $widget, array $config = [])
@@ -127,9 +124,9 @@ class WidgetRenderingTwig extends AbstractExtension
// for old rendering events (deprecated)
$event = new DelegatedBlockRenderingEvent($context);
$this->eventDispatcher->dispatch($event, 'chill_block.' . $block);
$this->eventDispatcher->dispatch($event, 'chill_block.'.$block);
return $content . ' ' . $event->getContent();
return $content.' '.$event->getContent();
}
/**
@@ -139,11 +136,11 @@ class WidgetRenderingTwig extends AbstractExtension
*/
protected function getWidgetsArraysOrdered($place)
{
if (!array_key_exists($place, $this->widget)) {
if (!\array_key_exists($place, $this->widget)) {
$this->widget[$place] = [];
}
ksort($this->widget[$place]);
\ksort($this->widget[$place]);
return $this->widget[$place];
}