Completed
Push — 1.3 ( 27ff26...49ce6f )
by Kamil
05:03
created
src/Sylius/Component/User/Model/CredentialsHolderInterface.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -15,8 +15,14 @@  discard block
 block discarded – undo
15 15
 
16 16
 interface CredentialsHolderInterface
17 17
 {
18
+    /**
19
+     * @return string|null
20
+     */
18 21
     public function getPlainPassword(): ?string;
19 22
 
23
+    /**
24
+     * @return void
25
+     */
20 26
     public function setPlainPassword(?string $plainPassword): void;
21 27
 
22 28
     /**
@@ -29,6 +35,9 @@  discard block
 block discarded – undo
29 35
      */
30 36
     public function getPassword();
31 37
 
38
+    /**
39
+     * @return void
40
+     */
32 41
     public function setPassword(?string $encodedPassword): void;
33 42
 
34 43
     /**
@@ -45,6 +54,7 @@  discard block
 block discarded – undo
45 54
      *
46 55
      * This is important if, at any given point, sensitive information like
47 56
      * the plain-text password is stored on this object.
57
+     * @return void
48 58
      */
49 59
     public function eraseCredentials();
50 60
 }
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/User.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -520,6 +520,9 @@
 block discarded – undo
520 520
         ] = $data;
521 521
     }
522 522
 
523
+    /**
524
+     * @param \DateTimeInterface|null $date
525
+     */
523 526
     protected function hasExpired(?\DateTimeInterface $date): bool
524 527
     {
525 528
         return null !== $date && new \DateTime() >= $date;
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/UserInterface.php 1 patch
Doc Comments   +73 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function getEmail(): ?string;
33 33
 
34
+    /**
35
+     * @return void
36
+     */
34 37
     public function setEmail(?string $email): void;
35 38
 
36 39
     /**
@@ -38,49 +41,110 @@  discard block
 block discarded – undo
38 41
      */
39 42
     public function getEmailCanonical(): ?string;
40 43
 
44
+    /**
45
+     * @return void
46
+     */
41 47
     public function setEmailCanonical(?string $emailCanonical): void;
42 48
 
49
+    /**
50
+     * @return void
51
+     */
43 52
     public function setUsername(?string $username): void;
44 53
 
45 54
     /**
46 55
      * Gets normalized username (should be used in search and sort queries).
56
+     * @return string|null
47 57
      */
48 58
     public function getUsernameCanonical(): ?string;
49 59
 
60
+    /**
61
+     * @return void
62
+     */
50 63
     public function setUsernameCanonical(?string $usernameCanonical): void;
51 64
 
65
+    /**
66
+     * @return void
67
+     */
52 68
     public function setLocked(bool $locked): void;
53 69
 
70
+    /**
71
+     * @return string|null
72
+     */
54 73
     public function getEmailVerificationToken(): ?string;
55 74
 
75
+    /**
76
+     * @return void
77
+     */
56 78
     public function setEmailVerificationToken(?string $verificationToken): void;
57 79
 
80
+    /**
81
+     * @return string|null
82
+     */
58 83
     public function getPasswordResetToken(): ?string;
59 84
 
85
+    /**
86
+     * @param string|null $passwordResetToken
87
+     *
88
+     * @return void
89
+     */
60 90
     public function setPasswordResetToken(?string $passwordResetToken): void;
61 91
 
92
+    /**
93
+     * @return \DateTimeInterface|null
94
+     */
62 95
     public function getPasswordRequestedAt(): ?\DateTimeInterface;
63 96
 
97
+    /**
98
+     * @param \DateTime|null $date
99
+     *
100
+     * @return void
101
+     */
64 102
     public function setPasswordRequestedAt(?\DateTimeInterface $date): void;
65 103
 
66 104
     public function isPasswordRequestNonExpired(\DateInterval $ttl): bool;
67 105
 
68 106
     public function isVerified(): bool;
69 107
 
108
+    /**
109
+     * @return \DateTimeInterface|null
110
+     */
70 111
     public function getVerifiedAt(): ?\DateTimeInterface;
71 112
 
113
+    /**
114
+     * @param \DateTime|null $verifiedAt
115
+     *
116
+     * @return void
117
+     */
72 118
     public function setVerifiedAt(?\DateTimeInterface $verifiedAt): void;
73 119
 
120
+    /**
121
+     * @return \DateTimeInterface|null
122
+     */
74 123
     public function getExpiresAt(): ?\DateTimeInterface;
75 124
 
125
+    /**
126
+     * @return void
127
+     */
76 128
     public function setExpiresAt(?\DateTimeInterface $date): void;
77 129
 
130
+    /**
131
+     * @return \DateTimeInterface|null
132
+     */
78 133
     public function getCredentialsExpireAt(): ?\DateTimeInterface;
79 134
 
135
+    /**
136
+     * @return void
137
+     */
80 138
     public function setCredentialsExpireAt(?\DateTimeInterface $date): void;
81 139
 
140
+    /**
141
+     * @return \DateTimeInterface|null
142
+     */
82 143
     public function getLastLogin(): ?\DateTimeInterface;
83 144
 
145
+    /**
146
+     * @return void
147
+     */
84 148
     public function setLastLogin(?\DateTimeInterface $time): void;
85 149
 
86 150
     /**
@@ -93,8 +157,14 @@  discard block
 block discarded – undo
93 157
      */
94 158
     public function hasRole(string $role): bool;
95 159
 
160
+    /**
161
+     * @return void
162
+     */
96 163
     public function addRole(string $role): void;
97 164
 
165
+    /**
166
+     * @return void
167
+     */
98 168
     public function removeRole(string $role): void;
99 169
 
100 170
     /**
@@ -104,5 +174,8 @@  discard block
 block discarded – undo
104 174
 
105 175
     public function getOAuthAccount(string $provider): ?UserOAuthInterface;
106 176
 
177
+    /**
178
+     * @return void
179
+     */
107 180
     public function addOAuthAccount(UserOAuthInterface $oauth): void;
108 181
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Product/ShowPageInterface.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@  discard block
 block discarded – undo
22 22
 {
23 23
     /**
24 24
      * @throws ElementNotFoundException
25
+     * @return void
25 26
      */
26 27
     public function addToCart();
27 28
 
@@ -29,6 +30,7 @@  discard block
 block discarded – undo
29 30
      * @param string $quantity
30 31
      *
31 32
      * @throws ElementNotFoundException
33
+     * @return void
32 34
      */
33 35
     public function addToCartWithQuantity($quantity);
34 36
 
@@ -36,6 +38,7 @@  discard block
 block discarded – undo
36 38
      * @param string $variant
37 39
      *
38 40
      * @throws ElementNotFoundException
41
+     * @return void
39 42
      */
40 43
     public function addToCartWithVariant($variant);
41 44
 
@@ -43,6 +46,7 @@  discard block
 block discarded – undo
43 46
      * @param string $optionValue
44 47
      *
45 48
      * @throws ElementNotFoundException
49
+     * @return void
46 50
      */
47 51
     public function addToCartWithOption(ProductOptionInterface $option, $optionValue);
48 52
 
@@ -58,9 +62,13 @@  discard block
 block discarded – undo
58 62
 
59 63
     /**
60 64
      * @param string $url
65
+     * @return void
61 66
      */
62 67
     public function visit($url);
63 68
 
69
+    /**
70
+     * @return null|string
71
+     */
64 72
     public function getAttributeByName(string $name): ?string;
65 73
 
66 74
     /**
@@ -75,6 +83,7 @@  discard block
 block discarded – undo
75 83
 
76 84
     /**
77 85
      * @param int $timeout
86
+     * @return void
78 87
      */
79 88
     public function waitForValidationErrors($timeout);
80 89
 
@@ -118,11 +127,13 @@  discard block
 block discarded – undo
118 127
     /**
119 128
      * @param string $optionName
120 129
      * @param string $optionValue
130
+     * @return void
121 131
      */
122 132
     public function selectOption($optionName, $optionValue);
123 133
 
124 134
     /**
125 135
      * @param string $variantName
136
+     * @return void
126 137
      */
127 138
     public function selectVariant($variantName);
128 139
 
Please login to merge, or discard this patch.
ChannelBundle/Context/FakeChannel/FakeChannelCodeProviderInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,5 +17,8 @@
 block discarded – undo
17 17
 
18 18
 interface FakeChannelCodeProviderInterface
19 19
 {
20
+    /**
21
+     * @return string
22
+     */
20 23
     public function getCode(Request $request): ?string;
21 24
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,7 @@  discard block
 block discarded – undo
16 16
 use Doctrine\ORM\EntityManager;
17 17
 use Doctrine\ORM\Mapping;
18 18
 use Doctrine\ORM\QueryBuilder;
19
+use SyliusLabs\AssociationHydrator\AssociationHydrator;
19 20
 use Sylius\Bundle\OrderBundle\Doctrine\ORM\OrderRepository as BaseOrderRepository;
20 21
 use Sylius\Component\Core\Model\ChannelInterface;
21 22
 use Sylius\Component\Core\Model\CustomerInterface;
@@ -24,7 +25,6 @@  discard block
 block discarded – undo
24 25
 use Sylius\Component\Core\OrderCheckoutStates;
25 26
 use Sylius\Component\Core\OrderPaymentStates;
26 27
 use Sylius\Component\Core\Repository\OrderRepositoryInterface;
27
-use SyliusLabs\AssociationHydrator\AssociationHydrator;
28 28
 
29 29
 class OrderRepository extends BaseOrderRepository implements OrderRepositoryInterface
30 30
 {
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductRepository.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
 use Doctrine\ORM\EntityManager;
17 17
 use Doctrine\ORM\Mapping;
18 18
 use Doctrine\ORM\QueryBuilder;
19
+use SyliusLabs\AssociationHydrator\AssociationHydrator;
19 20
 use Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductRepository as BaseProductRepository;
20 21
 use Sylius\Component\Core\Model\ChannelInterface;
21 22
 use Sylius\Component\Core\Model\ProductInterface;
22 23
 use Sylius\Component\Core\Model\TaxonInterface;
23 24
 use Sylius\Component\Core\Repository\ProductRepositoryInterface;
24
-use SyliusLabs\AssociationHydrator\AssociationHydrator;
25 25
 
26 26
 class ProductRepository extends BaseProductRepository implements ProductRepositoryInterface
27 27
 {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,10 +105,10 @@
 block discarded – undo
105 105
         if (isset($sorting['price'])) {
106 106
             // Another hack, the subquery to get the first position variant
107 107
             $subQuery = $this->createQueryBuilder('m')
108
-                 ->select('min(v.position)')
109
-                 ->innerJoin('m.variants', 'v')
110
-                 ->andWhere('m.id = :product_id')
111
-             ;
108
+                    ->select('min(v.position)')
109
+                    ->innerJoin('m.variants', 'v')
110
+                    ->andWhere('m.id = :product_id')
111
+                ;
112 112
 
113 113
             $queryBuilder
114 114
                 ->addSelect('variant')
Please login to merge, or discard this patch.
Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -95,6 +95,7 @@
 block discarded – undo
95 95
 
96 96
     /**
97 97
      * @param object $entity
98
+     * @param string|null $manager
98 99
      */
99 100
     private function getProperObjectManager(?string $manager, $entity): ?ObjectManager
100 101
     {
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Provider/AbstractUserProvider.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -91,6 +91,7 @@
 block discarded – undo
91 91
 
92 92
     /**
93 93
      * {@inheritdoc}
94
+     * @param string $class
94 95
      */
95 96
     public function supportsClass($class): bool
96 97
     {
Please login to merge, or discard this patch.