@@ -102,7 +102,7 @@ |
||
| 102 | 102 | |
| 103 | 103 | public static function findBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure |
| 104 | 104 | { |
| 105 | - return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria): ?iterable { |
|
| 105 | + return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria) : ?iterable { |
|
| 106 | 106 | if (null === $previousValues || [] === $previousValues) { |
| 107 | 107 | return $previousValues; |
| 108 | 108 | } |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | |
| 167 | 167 | private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure |
| 168 | 168 | { |
| 169 | - return function (Options $options, array $couponDefinitions) use ($couponFactory): array { |
|
| 169 | + return function (Options $options, array $couponDefinitions) use ($couponFactory) : array { |
|
| 170 | 170 | if (null === $couponFactory) { |
| 171 | 171 | throw new \RuntimeException('You must configure a $couponFactory'); |
| 172 | 172 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | ]; |
| 73 | 73 | |
| 74 | 74 | if ($zone->getType() === ZoneInterface::TYPE_ZONE) { |
| 75 | - $entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone): bool { |
|
| 75 | + $entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone) : bool { |
|
| 76 | 76 | return $subZone !== null && $zone->getId() !== $subZone->getId(); |
| 77 | 77 | }; |
| 78 | 78 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | string $message, |
| 43 | 43 | ?int $timeout = null |
| 44 | 44 | ): void { |
| 45 | - $callable = function () use ($notificationChecker, $message, $type): void { |
|
| 45 | + $callable = function () use ($notificationChecker, $message, $type) : void { |
|
| 46 | 46 | $notificationChecker->checkNotification($message, $type); |
| 47 | 47 | }; |
| 48 | 48 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | public function waitUntilPageOpens(PageInterface $page, ?array $options = [], ?int $timeout = null): void |
| 53 | 53 | { |
| 54 | - $callable = function () use ($page, $options): void { |
|
| 54 | + $callable = function () use ($page, $options) : void { |
|
| 55 | 55 | $page->open($options); |
| 56 | 56 | }; |
| 57 | 57 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * with keys "data" and "priority". |
| 52 | 52 | * @var array |
| 53 | 53 | */ |
| 54 | - protected $items = []; |
|
| 54 | + protected $items = []; |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Inner queue object |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | unset($this->items[$key]); |
| 114 | 114 | $this->queue = null; |
| 115 | 115 | |
| 116 | - if (! $this->isEmpty()) { |
|
| 116 | + if (!$this->isEmpty()) { |
|
| 117 | 117 | $queue = $this->getQueue(); |
| 118 | 118 | foreach ($this->items as $item) { |
| 119 | 119 | $queue->insert($item['data'], $item['priority']); |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | { |
| 325 | 325 | if (null === $this->queue) { |
| 326 | 326 | $this->queue = new $this->queueClass(); |
| 327 | - if (! $this->queue instanceof \SplPriorityQueue) { |
|
| 327 | + if (!$this->queue instanceof \SplPriorityQueue) { |
|
| 328 | 328 | throw new Exception\DomainException(sprintf( |
| 329 | 329 | 'PriorityQueue expects an internal queue of type SplPriorityQueue; received "%s"', |
| 330 | 330 | get_class($this->queue) |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $orderRepository = $container->get('sylius.repository.order'); |
| 48 | 48 | |
| 49 | 49 | /** @var FactoryInterface $customerFactory */ |
| 50 | - $customerFactory = $container->get('sylius.factory.customer'); |
|
| 50 | + $customerFactory = $container->get('sylius.factory.customer'); |
|
| 51 | 51 | |
| 52 | 52 | /** @var ObjectManager $manager */ |
| 53 | 53 | $manager = $container->get('doctrine.orm.default_entity_manager'); |