@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $replacements_reversed = array_reverse($replacements); |
| 32 | 32 | $result = array_reduce( |
| 33 | 33 | $replacements_reversed, |
| 34 | - function ($state, ReplacedShortcode $r) { |
|
| 34 | + function($state, ReplacedShortcode $r) { |
|
| 35 | 35 | $offset = $r->getOffset(); |
| 36 | 36 | $lengthOfShortcode = mb_strlen($r->getText(), 'utf-8'); |
| 37 | 37 | $sourceTextBeforeShortcode = mb_substr($state, 0, $offset, 'utf-8'); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | ->normalizeKeys(false) |
| 34 | 34 | ->arrayPrototype() |
| 35 | 35 | ->beforeNormalization() |
| 36 | - ->ifString()->then(static function ($v) { |
|
| 36 | + ->ifString()->then(static function($v) { |
|
| 37 | 37 | return ['controller' => $v]; |
| 38 | 38 | }) |
| 39 | 39 | ->end() |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function __construct(array $shortcodeTags, $twig, ?FormFactoryInterface $formFactory = null) |
| 46 | 46 | { |
| 47 | - $this->shortcodeTags = array_combine(array_map(function (array $definition): string { return $definition['shortcode']; }, $shortcodeTags), $shortcodeTags); |
|
| 47 | + $this->shortcodeTags = array_combine(array_map(function(array $definition): string { return $definition['shortcode']; }, $shortcodeTags), $shortcodeTags); |
|
| 48 | 48 | $this->twig = $twig; |
| 49 | 49 | $this->formFactory = $formFactory; |
| 50 | 50 | } |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $mockedShortcodeHandlerContainer = $this->createMock(Definition::class); |
| 49 | 49 | $mockedShortcodeHandlerContainer->expects($this->exactly(2)) |
| 50 | 50 | ->method('addMethodCall') |
| 51 | - ->with('add', $this->callback(function (array $argument) { |
|
| 51 | + ->with('add', $this->callback(function(array $argument) { |
|
| 52 | 52 | static $count = 0; |
| 53 | 53 | ++$count; |
| 54 | 54 | return 'shortcode'.$count === $argument[0] && $argument[1] instanceof Reference; |