@@ -125,7 +125,7 @@ |
||
| 125 | 125 | * @param SearchResultInterface[] $results |
| 126 | 126 | * @param string $userId |
| 127 | 127 | * |
| 128 | - * @return array |
|
| 128 | + * @return SearchResultInterface[] |
|
| 129 | 129 | */ |
| 130 | 130 | private function applyAuditLog(array $results, string $userId, Context $context): array |
| 131 | 131 | { |
@@ -241,6 +241,9 @@ |
||
| 241 | 241 | ); |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | + /** |
|
| 245 | + * @param string $token |
|
| 246 | + */ |
|
| 244 | 247 | private function loadCart(?string $token, CheckoutContext $context): Cart |
| 245 | 248 | { |
| 246 | 249 | if (!$token) { |
@@ -97,6 +97,9 @@ |
||
| 97 | 97 | $this->storeFrontCartService = $storeFrontCartService; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $cartToken |
|
| 102 | + */ |
|
| 100 | 103 | public function loadMatchingRules(CheckoutContext $context, ?string $cartToken) |
| 101 | 104 | { |
| 102 | 105 | $context = clone $context; |
@@ -32,9 +32,9 @@ |
||
| 32 | 32 | use Shopware\Core\Framework\ORM\Write\FieldException\InvalidFieldException; |
| 33 | 33 | use Shopware\Core\Framework\ORM\Write\Flag\Required; |
| 34 | 34 | use Shopware\Core\Framework\Struct\Uuid; |
| 35 | -use Symfony\Component\Validator\Constraints\Choice; |
|
| 36 | 35 | use Symfony\Component\Validator\ConstraintViolation; |
| 37 | 36 | use Symfony\Component\Validator\ConstraintViolationList; |
| 37 | +use Symfony\Component\Validator\Constraints\Choice; |
|
| 38 | 38 | |
| 39 | 39 | class CatalogField extends FkField |
| 40 | 40 | { |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | |
| 413 | 413 | /** |
| 414 | 414 | * @param array $openapi |
| 415 | - * @param string|EntityDefinition $definition |
|
| 415 | + * @param EntityDefinition $definition |
|
| 416 | 416 | * |
| 417 | 417 | * @return array |
| 418 | 418 | */ |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | |
| 530 | 530 | /** |
| 531 | 531 | * @param array $openapi |
| 532 | - * @param string|EntityDefinition $definition |
|
| 532 | + * @param EntityDefinition $definition |
|
| 533 | 533 | * |
| 534 | 534 | * @return array |
| 535 | 535 | */ |
@@ -779,7 +779,7 @@ discard block |
||
| 779 | 779 | } |
| 780 | 780 | |
| 781 | 781 | /** |
| 782 | - * @param $schemaName |
|
| 782 | + * @param string $schemaName |
|
| 783 | 783 | * |
| 784 | 784 | * @return array |
| 785 | 785 | */ |
@@ -5,8 +5,8 @@ |
||
| 5 | 5 | use Psr\Log\LoggerInterface; |
| 6 | 6 | use Shopware\Core\Framework\Api\Response\ResponseFactory; |
| 7 | 7 | use Shopware\Core\Framework\ShopwareException; |
| 8 | -use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; |
|
| 9 | 8 | use Symfony\Component\HttpKernel\EventListener\ExceptionListener; |
| 9 | +use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; |
|
| 10 | 10 | use Symfony\Component\HttpKernel\Exception\HttpException; |
| 11 | 11 | use Symfony\Component\HttpKernel\KernelEvents; |
| 12 | 12 | |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * and populated in any number of different ways when the user object |
| 60 | 60 | * is created. |
| 61 | 61 | * |
| 62 | - * @return (Role|string)[] The user roles |
|
| 62 | + * @return string[] The user roles |
|
| 63 | 63 | */ |
| 64 | 64 | public function getRoles() |
| 65 | 65 | { |
@@ -6,11 +6,11 @@ |
||
| 6 | 6 | use Shopware\Core\Defaults; |
| 7 | 7 | use Shopware\Core\Framework\Context; |
| 8 | 8 | use Shopware\Core\Framework\ORM\EntityDefinition; |
| 9 | +use Shopware\Core\Framework\ORM\FieldCollection; |
|
| 9 | 10 | use Shopware\Core\Framework\ORM\Field\AssociationInterface; |
| 10 | 11 | use Shopware\Core\Framework\ORM\Field\ManyToManyAssociationField; |
| 11 | 12 | use Shopware\Core\Framework\ORM\Field\ManyToOneAssociationField; |
| 12 | 13 | use Shopware\Core\Framework\ORM\Field\OneToManyAssociationField; |
| 13 | -use Shopware\Core\Framework\ORM\FieldCollection; |
|
| 14 | 14 | use Shopware\Core\Framework\ORM\Write\Flag\CascadeDelete; |
| 15 | 15 | use Shopware\Core\Framework\ORM\Write\Flag\RestrictDelete; |
| 16 | 16 | use Shopware\Core\Framework\Struct\Uuid; |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * @param string|EntityDefinition $definition |
|
| 146 | + * @param string $definition |
|
| 147 | 147 | * @param array $primaryKey |
| 148 | 148 | * @param WriteCommandQueue $commandQueue |
| 149 | 149 | * |