@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * @param array $codes |
| 28 | 28 | * |
| 29 | - * @return bool |
|
| 29 | + * @return integer |
|
| 30 | 30 | */ |
| 31 | 31 | public function releaseUsedVoucherCodes(array $codes) |
| 32 | 32 | { |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | |
| 220 | 220 | /** |
| 221 | 221 | * @param \Generated\Shared\Transfer\ProductSearchAttributeTransfer $productSearchAttributeTransfer |
| 222 | - * @param \Generated\Shared\Transfer\ProductAttributeKeyTransfer $productAttributeKeyTransfer |
|
| 222 | + * @param ProductAttributeKeyTransfer|null $productAttributeKeyTransfer |
|
| 223 | 223 | * |
| 224 | 224 | * @return \Generated\Shared\Transfer\ProductSearchAttributeTransfer |
| 225 | 225 | */ |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | |
| 238 | 238 | /** |
| 239 | 239 | * @param \Generated\Shared\Transfer\ProductSearchAttributeTransfer $productSearchAttributeTransfer |
| 240 | - * @param \Generated\Shared\Transfer\ProductAttributeKeyTransfer $productAttributeKeyTransfer |
|
| 240 | + * @param ProductAttributeKeyTransfer|null $productAttributeKeyTransfer |
|
| 241 | 241 | * |
| 242 | 242 | * @return \Generated\Shared\Transfer\ProductSearchAttributeTransfer |
| 243 | 243 | */ |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | /** |
| 260 | - * @param \Generated\Shared\Transfer\ProductAttributeKeyTransfer $productAttributeKeyTransfer |
|
| 260 | + * @param ProductAttributeKeyTransfer|null $productAttributeKeyTransfer |
|
| 261 | 261 | * |
| 262 | 262 | * @return void |
| 263 | 263 | */ |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use Generated\Shared\Transfer\OrderTransfer; |
| 11 | 11 | use Generated\Shared\Transfer\RatepayPaymentInitTransfer; |
| 12 | 12 | use Generated\Shared\Transfer\RatepayPaymentRequestTransfer; |
| 13 | -use Spryker\Zed\Ratepay\Business\Api\Constants; |
|
| 14 | 13 | use Spryker\Zed\Ratepay\Business\Api\Constants as ApiConstants; |
| 15 | 14 | use Spryker\Zed\Ratepay\Business\Api\Mapper\MapperFactory; |
| 16 | 15 | use Spryker\Zed\Ratepay\Business\Api\Model\RequestModelFactoryInterface; |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | */ |
| 145 | 145 | protected function getStatus(SpyDiscount $discountEntity) |
| 146 | 146 | { |
| 147 | - return $discountEntity->getIsActive() ? 'Active' : 'Inactive'; |
|
| 147 | + return $discountEntity->getIsActive() ? 'Active' : 'Inactive'; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | ); |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | - return $this->persistVoucherCodes($discountVoucherTransfer, $discountEntity); |
|
| 124 | + return $this->persistVoucherCodes($discountVoucherTransfer, $discountEntity); |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $discountEntity = $this->createDiscountEntity(); |
| 64 | 64 | $this->hydrateDiscountEntity($discountConfiguratorTransfer, $discountEntity); |
| 65 | 65 | |
| 66 | - $this->handleDatabaseTransaction(function () use ($discountEntity, $discountConfiguratorTransfer) { |
|
| 66 | + $this->handleDatabaseTransaction(function() use ($discountEntity, $discountConfiguratorTransfer) { |
|
| 67 | 67 | $this->executeSaveDiscountTransaction($discountEntity, $discountConfiguratorTransfer); |
| 68 | 68 | }); |
| 69 | 69 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | ); |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | - $affectedRows = $this->handleDatabaseTransaction(function () use ($discountEntity, $discountConfiguratorTransfer) { |
|
| 122 | + $affectedRows = $this->handleDatabaseTransaction(function() use ($discountEntity, $discountConfiguratorTransfer) { |
|
| 123 | 123 | return $this->executeUpdateDiscountTransaction($discountEntity, $discountConfiguratorTransfer); |
| 124 | 124 | }); |
| 125 | 125 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | $process = new Process($command, APPLICATION_ROOT_DIR); |
| 49 | 49 | |
| 50 | - return $process->run(function ($type, $buffer) { |
|
| 50 | + return $process->run(function($type, $buffer) { |
|
| 51 | 51 | echo $buffer; |
| 52 | 52 | }); |
| 53 | 53 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | $process = new Process($command, APPLICATION_ROOT_DIR); |
| 53 | 53 | $process->setTimeout(self::PROCESS_TIMEOUT); |
| 54 | 54 | |
| 55 | - return $process->run(function ($type, $buffer) { |
|
| 55 | + return $process->run(function($type, $buffer) { |
|
| 56 | 56 | echo $buffer; |
| 57 | 57 | }); |
| 58 | 58 | } |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | if ($options[static::OPTION_INITIALIZE]) { |
| 135 | 135 | $command = 'vendor/bin/codecept build'; |
| 136 | 136 | $process = new Process($command, $this->applicationRoot, null, null, 4800); |
| 137 | - $process->run(function ($type, $buffer) use ($options) { |
|
| 137 | + $process->run(function($type, $buffer) use ($options) { |
|
| 138 | 138 | if ($options[static::OPTION_VERBOSE]) { |
| 139 | 139 | echo $buffer; |
| 140 | 140 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $command = 'vendor/bin/codecept run' . $config; |
| 147 | 147 | |
| 148 | 148 | $process = new Process($command, $this->applicationRoot, null, null, 4800); |
| 149 | - $process->run(function ($type, $buffer) { |
|
| 149 | + $process->run(function($type, $buffer) { |
|
| 150 | 150 | echo $buffer; |
| 151 | 151 | }); |
| 152 | 152 | } |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | $process = new Process($command, $this->applicationRoot, null, null, 4800); |
| 151 | - $process->run(function ($type, $buffer) { |
|
| 151 | + $process->run(function($type, $buffer) { |
|
| 152 | 152 | echo $buffer; |
| 153 | 153 | }); |
| 154 | 154 | |