Completed
Branch next/optimize-sources (9e71e7)
by Jan
10:29
created
src/Administration/Search/AdministrationSearch.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Core/Checkout/Cart/Storefront/CartController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -241,6 +241,9 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Core/Checkout/Context/CheckoutRuleLoader.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -97,6 +97,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Core/Content/Catalog/ORM/CatalogField.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Core/Framework/Api/ApiDefinition/Generator/OpenApi3Generator.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
779 779
     }
780 780
 
781 781
     /**
782
-     * @param $schemaName
782
+     * @param string $schemaName
783 783
      *
784 784
      * @return array
785 785
      */
Please login to merge, or discard this patch.
src/Core/Framework/Api/EventListener/ResponseExceptionListener.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Core/Framework/Api/Firewall/User.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Core/Framework/ORM/Dbal/EntityForeignKeyResolver.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Core/Framework/ORM/Dbal/EntityWriteGateway.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.