@@ -51,7 +51,7 @@ |
||
| 51 | 51 | ->setDescription('Installs Sylius in your preferred environment.') |
| 52 | 52 | ->setHelp(<<<EOT |
| 53 | 53 | The <info>%command.name%</info> command installs Sylius. |
| 54 | -EOT |
|
| 54 | +eot |
|
| 55 | 55 | ) |
| 56 | 56 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
| 57 | 57 | ; |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ->setDescription('Install Sylius database.') |
| 31 | 31 | ->setHelp(<<<EOT |
| 32 | 32 | The <info>%command.name%</info> command creates Sylius database. |
| 33 | -EOT |
|
| 33 | +eot |
|
| 34 | 34 | ) |
| 35 | 35 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
| 36 | 36 | ; |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | public function getFunctions(): array |
| 34 | 34 | { |
| 35 | 35 | return [ |
| 36 | - new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 37 | - new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 36 | + new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 37 | + new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 38 | 38 | ]; |
| 39 | 39 | } |
| 40 | 40 | } |
@@ -36,7 +36,9 @@ discard block |
||
| 36 | 36 | * @psalm-param T $data |
| 37 | 37 | * @psalm-return PriorityQueue<T> |
| 38 | 38 | */ |
| 39 | - public function insert($data, $priority = 1) { } |
|
| 39 | + public function insert($data, $priority = 1) |
|
| 40 | + { |
|
| 41 | +} |
|
| 40 | 42 | |
| 41 | 43 | /** |
| 42 | 44 | * @param mixed $datum |
@@ -45,53 +47,71 @@ discard block |
||
| 45 | 47 | * |
| 46 | 48 | * @psalm-param T $datum |
| 47 | 49 | */ |
| 48 | - public function remove($datum) { } |
|
| 50 | + public function remove($datum) |
|
| 51 | + { |
|
| 52 | +} |
|
| 49 | 53 | |
| 50 | 54 | /** |
| 51 | 55 | * @return bool |
| 52 | 56 | */ |
| 53 | - public function isEmpty() { } |
|
| 57 | + public function isEmpty() |
|
| 58 | + { |
|
| 59 | +} |
|
| 54 | 60 | |
| 55 | 61 | /** |
| 56 | 62 | * @return int |
| 57 | 63 | */ |
| 58 | - public function count() { } |
|
| 64 | + public function count() |
|
| 65 | + { |
|
| 66 | +} |
|
| 59 | 67 | |
| 60 | 68 | /** |
| 61 | 69 | * @return mixed |
| 62 | 70 | */ |
| 63 | - public function top() { } |
|
| 71 | + public function top() |
|
| 72 | + { |
|
| 73 | +} |
|
| 64 | 74 | |
| 65 | 75 | /** |
| 66 | 76 | * @return mixed |
| 67 | 77 | */ |
| 68 | - public function extract() { } |
|
| 78 | + public function extract() |
|
| 79 | + { |
|
| 80 | +} |
|
| 69 | 81 | |
| 70 | 82 | /** |
| 71 | 83 | * @return SplPriorityQueue |
| 72 | 84 | * |
| 73 | 85 | * @psalm-return SplPriorityQueue<T> |
| 74 | 86 | */ |
| 75 | - public function getIterator() { } |
|
| 87 | + public function getIterator() |
|
| 88 | + { |
|
| 89 | +} |
|
| 76 | 90 | |
| 77 | 91 | /** |
| 78 | 92 | * @return string |
| 79 | 93 | */ |
| 80 | - public function serialize() { } |
|
| 94 | + public function serialize() |
|
| 95 | + { |
|
| 96 | +} |
|
| 81 | 97 | |
| 82 | 98 | /** |
| 83 | 99 | * @param string $data |
| 84 | 100 | * |
| 85 | 101 | * @return void |
| 86 | 102 | */ |
| 87 | - public function unserialize($data) { } |
|
| 103 | + public function unserialize($data) |
|
| 104 | + { |
|
| 105 | +} |
|
| 88 | 106 | |
| 89 | 107 | /** |
| 90 | 108 | * @param int $flag |
| 91 | 109 | * |
| 92 | 110 | * @return array |
| 93 | 111 | */ |
| 94 | - public function toArray($flag = self::EXTR_DATA) { } |
|
| 112 | + public function toArray($flag = self::EXTR_DATA) |
|
| 113 | + { |
|
| 114 | +} |
|
| 95 | 115 | |
| 96 | 116 | /** |
| 97 | 117 | * @param string $class |
@@ -100,7 +120,9 @@ discard block |
||
| 100 | 120 | * |
| 101 | 121 | * @psalm-return PriorityQueue<T> |
| 102 | 122 | */ |
| 103 | - public function setInternalQueueClass($class) { } |
|
| 123 | + public function setInternalQueueClass($class) |
|
| 124 | + { |
|
| 125 | +} |
|
| 104 | 126 | |
| 105 | 127 | /** |
| 106 | 128 | * @param mixed $datum |
@@ -109,17 +131,23 @@ discard block |
||
| 109 | 131 | * |
| 110 | 132 | * @psalm-param T $datum |
| 111 | 133 | */ |
| 112 | - public function contains($datum) { } |
|
| 134 | + public function contains($datum) |
|
| 135 | + { |
|
| 136 | +} |
|
| 113 | 137 | |
| 114 | 138 | /** |
| 115 | 139 | * @param int $priority |
| 116 | 140 | * |
| 117 | 141 | * @return bool |
| 118 | 142 | */ |
| 119 | - public function hasPriority($priority) { } |
|
| 143 | + public function hasPriority($priority) |
|
| 144 | + { |
|
| 145 | +} |
|
| 120 | 146 | |
| 121 | 147 | /** |
| 122 | 148 | * @return void |
| 123 | 149 | */ |
| 124 | - public function __clone() { } |
|
| 150 | + public function __clone() |
|
| 151 | + { |
|
| 152 | +} |
|
| 125 | 153 | } |
@@ -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 | } |
@@ -170,9 +170,9 @@ |
||
| 170 | 170 | { |
| 171 | 171 | $id = (string) $this->sharedStorage->get('product_review_id'); |
| 172 | 172 | Assert::false( |
| 173 | - $this->isItemOnIndex('id', $id), |
|
| 174 | - sprintf('Product review with id %s exist', $id) |
|
| 175 | - ); |
|
| 173 | + $this->isItemOnIndex('id', $id), |
|
| 174 | + sprintf('Product review with id %s exist', $id) |
|
| 175 | + ); |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | /** |
@@ -65,10 +65,10 @@ |
||
| 65 | 65 | { |
| 66 | 66 | $this->client->updateRequestData([ |
| 67 | 67 | 'translations' => [ |
| 68 | - $localeCode => [ |
|
| 69 | - 'name' => $productAssociationTypeName, |
|
| 70 | - 'locale' => $localeCode, |
|
| 71 | - ], |
|
| 68 | + $localeCode => [ |
|
| 69 | + 'name' => $productAssociationTypeName, |
|
| 70 | + 'locale' => $localeCode, |
|
| 71 | + ], |
|
| 72 | 72 | ], |
| 73 | 73 | ]); |
| 74 | 74 | } |
@@ -150,10 +150,10 @@ |
||
| 150 | 150 | public function iShouldSeeTheShippingDateAs(OrderInterface $order, string $dateTime): void |
| 151 | 151 | { |
| 152 | 152 | Assert::eq( |
| 153 | - new \DateTime($this->responseChecker->getValue($this->client->show((string) $order->getShipments()->first()->getId()), 'shippedAt')), |
|
| 154 | - new \DateTime($dateTime), |
|
| 155 | - 'Shipment was shipped in different date' |
|
| 156 | - ); |
|
| 153 | + new \DateTime($this->responseChecker->getValue($this->client->show((string) $order->getShipments()->first()->getId()), 'shippedAt')), |
|
| 154 | + new \DateTime($dateTime), |
|
| 155 | + 'Shipment was shipped in different date' |
|
| 156 | + ); |
|
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | /** |
@@ -48,7 +48,8 @@ |
||
| 48 | 48 | |
| 49 | 49 | function it_throws_an_exception_if_constraint_is_not_of_expected_type(): void |
| 50 | 50 | { |
| 51 | - $this->shouldThrow(\InvalidArgumentException::class)->during('validate', ['', new class() extends Constraint { |
|
| 51 | + $this->shouldThrow(\InvalidArgumentException::class)->during('validate', ['', new class() extends Constraint |
|
| 52 | + { |
|
| 52 | 53 | }]); |
| 53 | 54 | } |
| 54 | 55 | |