mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 02:25:00 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user