@@ -115,7 +115,8 @@ |
||
| 115 | 115 | |
| 116 | 116 | $decoratedChannelContext |
| 117 | 117 | ->getChannel() |
| 118 | - ->will(new class($channel->getWrappedObject()) { |
|
| 118 | + ->will(new class($channel->getWrappedObject()) |
|
| 119 | + { |
|
| 119 | 120 | /** @var int */ |
| 120 | 121 | private $counter = 0; |
| 121 | 122 | |
@@ -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 | |
@@ -40,7 +40,8 @@ discard block |
||
| 40 | 40 | { |
| 41 | 41 | $this |
| 42 | 42 | ->shouldThrow(\InvalidArgumentException::class) |
| 43 | - ->during('validate', [new CompleteOrder(), new class() extends Constraint { |
|
| 43 | + ->during('validate', [new CompleteOrder(), new class() extends Constraint |
|
| 44 | + { |
|
| 44 | 45 | }]) |
| 45 | 46 | ; |
| 46 | 47 | } |
@@ -49,7 +50,8 @@ discard block |
||
| 49 | 50 | { |
| 50 | 51 | $this |
| 51 | 52 | ->shouldThrow(\InvalidArgumentException::class) |
| 52 | - ->during('validate', ['', new class() extends Constraint { |
|
| 53 | + ->during('validate', ['', new class() extends Constraint |
|
| 54 | + { |
|
| 53 | 55 | }]) |
| 54 | 56 | ; |
| 55 | 57 | } |
@@ -40,7 +40,8 @@ discard block |
||
| 40 | 40 | { |
| 41 | 41 | $this |
| 42 | 42 | ->shouldThrow(\InvalidArgumentException::class) |
| 43 | - ->during('validate', [new CompleteOrder(), new class() extends Constraint { |
|
| 43 | + ->during('validate', [new CompleteOrder(), new class() extends Constraint |
|
| 44 | + { |
|
| 44 | 45 | }]) |
| 45 | 46 | ; |
| 46 | 47 | } |
@@ -49,7 +50,8 @@ discard block |
||
| 49 | 50 | { |
| 50 | 51 | $this |
| 51 | 52 | ->shouldThrow(\InvalidArgumentException::class) |
| 52 | - ->during('validate', ['', new class() extends Constraint { |
|
| 53 | + ->during('validate', ['', new class() extends Constraint |
|
| 54 | + { |
|
| 53 | 55 | }]) |
| 54 | 56 | ; |
| 55 | 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) |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | ->setHelp( |
| 32 | 32 | <<<EOT |
| 33 | 33 | The <info>%command.name%</info> command loads the sample data for Sylius. |
| 34 | -EOT |
|
| 34 | +eot |
|
| 35 | 35 | ) |
| 36 | 36 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
| 37 | 37 | ; |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | ->setHelp( |
| 30 | 30 | <<<EOT |
| 31 | 31 | The <info>%command.name%</info> command creates Sylius database. |
| 32 | -EOT |
|
| 32 | +eot |
|
| 33 | 33 | ) |
| 34 | 34 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
| 35 | 35 | ; |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | ->setHelp( |
| 55 | 55 | <<<EOT |
| 56 | 56 | The <info>%command.name%</info> command installs Sylius. |
| 57 | -EOT |
|
| 57 | +eot |
|
| 58 | 58 | ) |
| 59 | 59 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
| 60 | 60 | ; |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | '@type' => 'hydra:Collection', |
| 42 | 42 | 'hydra:member' => [ |
| 43 | 43 | [ |
| 44 | - '@type' => 'Promotion', |
|
| 45 | - 'name' => 'Sunday promotion', |
|
| 44 | + '@type' => 'Promotion', |
|
| 45 | + 'name' => 'Sunday promotion', |
|
| 46 | 46 | ], |
| 47 | 47 | ], |
| 48 | 48 | 'hydra:totalItems' => 1, |