@@ -47,13 +47,13 @@ |
||
| 47 | 47 | $mockedShortcodeHandlerContainer = $this->createMock(Definition::class); |
| 48 | 48 | $mockedShortcodeHandlerContainer->expects($this->at(0)) |
| 49 | 49 | ->method('addMethodCall') |
| 50 | - ->with('add', $this->callback(function (array $argument) { |
|
| 50 | + ->with('add', $this->callback(function(array $argument) { |
|
| 51 | 51 | return 'shortcode1' === $argument[0] |
| 52 | 52 | && $argument[1] instanceof Reference; |
| 53 | 53 | })); |
| 54 | 54 | $mockedShortcodeHandlerContainer->expects($this->at(1)) |
| 55 | 55 | ->method('addMethodCall') |
| 56 | - ->with('add', $this->callback(function ($argument) { |
|
| 56 | + ->with('add', $this->callback(function($argument) { |
|
| 57 | 57 | return 'shortcode2' === $argument[0] |
| 58 | 58 | && $argument[1] instanceof Reference; |
| 59 | 59 | })); |
@@ -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 | } |