@@ -23,10 +23,10 @@ |
||
| 23 | 23 | use Sylius\Component\Core\Model\ShipmentInterface; |
| 24 | 24 | use Sylius\Component\Core\OrderCheckoutStates; |
| 25 | 25 | use Sylius\Component\Core\OrderShippingStates; |
| 26 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
| 26 | 27 | use Sylius\Component\Order\Model\Order as BaseOrder; |
| 27 | 28 | use Sylius\Component\Order\Model\OrderInterface; |
| 28 | 29 | use Sylius\Component\Promotion\Model\PromotionCouponInterface; |
| 29 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use Doctrine\Common\Collections\Collection; |
| 17 | 17 | use Sylius\Component\Customer\Model\CustomerInterface as BaseCustomerInterface; |
| 18 | 18 | use Sylius\Component\User\Model\UserAwareInterface; |
| 19 | -use Sylius\Component\User\Model\UserInterface as BaseUserInterface; |
|
| 20 | 19 | |
| 21 | 20 | /** |
| 22 | 21 | * @author Michał Marcinkowski <[email protected]> |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Core\Model; |
| 15 | 15 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * {@inheritdoc} |
| 40 | 40 | */ |
| 41 | - public function setCustomer(?BaseCustomerInterface $customer): void |
|
| 41 | + public function setCustomer(?BaseCustomerInterface $customer) : void |
|
| 42 | 42 | { |
| 43 | 43 | if ($this->customer !== $customer) { |
| 44 | 44 | $this->customer = $customer; |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | /** |
| 57 | 57 | * {@inheritdoc} |
| 58 | 58 | */ |
| 59 | - public function setEmail(?string $email): void |
|
| 59 | + public function setEmail(?string $email) : void |
|
| 60 | 60 | { |
| 61 | 61 | $this->customer->setEmail($email); |
| 62 | 62 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * {@inheritdoc} |
| 74 | 74 | */ |
| 75 | - public function setEmailCanonical(?string $emailCanonical): void |
|
| 75 | + public function setEmailCanonical(?string $emailCanonical) : void |
|
| 76 | 76 | { |
| 77 | 77 | $this->customer->setEmailCanonical($emailCanonical); |
| 78 | 78 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Core\Model; |
| 15 | 15 | |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * {@inheritdoc} |
| 128 | 128 | */ |
| 129 | - public function setUser(?BaseUserInterface $user): void |
|
| 129 | + public function setUser(?BaseUserInterface $user) : void |
|
| 130 | 130 | { |
| 131 | 131 | if ($this->user !== $user) { |
| 132 | 132 | $this->user = $user; |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\User\Canonicalizer; |
| 15 | 15 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | final class Canonicalizer implements CanonicalizerInterface |
| 20 | 20 | { |
| 21 | - public function canonicalize(?string $string): ?string |
|
| 21 | + public function canonicalize(?string $string) : ?string |
|
| 22 | 22 | { |
| 23 | 23 | return null === $string ? null : mb_convert_case($string, MB_CASE_LOWER, mb_detect_encoding($string)); |
| 24 | 24 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\User\Canonicalizer; |
| 15 | 15 | |
@@ -18,5 +18,5 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | interface CanonicalizerInterface |
| 20 | 20 | { |
| 21 | - public function canonicalize(?string $string): ?string; |
|
| 21 | + public function canonicalize(?string $string) : ?string; |
|
| 22 | 22 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\User\Model; |
| 15 | 15 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * @param string|null $provider |
| 31 | 31 | */ |
| 32 | - public function setProvider(?string $provider): void; |
|
| 32 | + public function setProvider(?string $provider) : void; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @return string|null |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * @param string|null $identifier |
| 41 | 41 | */ |
| 42 | - public function setIdentifier(?string $identifier): void; |
|
| 42 | + public function setIdentifier(?string $identifier) : void; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * @return string|null |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * @param string|null $accessToken |
| 51 | 51 | */ |
| 52 | - public function setAccessToken(?string $accessToken): void; |
|
| 52 | + public function setAccessToken(?string $accessToken) : void; |
|
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * @return string|null |
@@ -59,5 +59,5 @@ discard block |
||
| 59 | 59 | /** |
| 60 | 60 | * @param string|null $refreshToken |
| 61 | 61 | */ |
| 62 | - public function setRefreshToken(?string $refreshToken): void; |
|
| 62 | + public function setRefreshToken(?string $refreshToken) : void; |
|
| 63 | 63 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\User\Model; |
| 15 | 15 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * @param string|null $email |
| 44 | 44 | */ |
| 45 | - public function setEmail(?string $email): void; |
|
| 45 | + public function setEmail(?string $email) : void; |
|
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * Gets normalized email (should be used in search and sort queries). |
@@ -54,12 +54,12 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * @param string|null $emailCanonical |
| 56 | 56 | */ |
| 57 | - public function setEmailCanonical(?string $emailCanonical): void; |
|
| 57 | + public function setEmailCanonical(?string $emailCanonical) : void; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @param string|null $username |
| 61 | 61 | */ |
| 62 | - public function setUsername(?string $username): void; |
|
| 62 | + public function setUsername(?string $username) : void; |
|
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * Gets normalized username (should be used in search and sort queries). |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * @param string|null $usernameCanonical |
| 73 | 73 | */ |
| 74 | - public function setUsernameCanonical(?string $usernameCanonical): void; |
|
| 74 | + public function setUsernameCanonical(?string $usernameCanonical) : void; |
|
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * @param bool $locked |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * @param string|null $verificationToken |
| 88 | 88 | */ |
| 89 | - public function setEmailVerificationToken(?string $verificationToken): void; |
|
| 89 | + public function setEmailVerificationToken(?string $verificationToken) : void; |
|
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * @return string|null |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | /** |
| 97 | 97 | * @param string|null $passwordResetToken |
| 98 | 98 | */ |
| 99 | - public function setPasswordResetToken(?string $passwordResetToken): void; |
|
| 99 | + public function setPasswordResetToken(?string $passwordResetToken) : void; |
|
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | 102 | * @return \DateTimeInterface|null |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | /** |
| 107 | 107 | * @param \DateTimeInterface|null $date |
| 108 | 108 | */ |
| 109 | - public function setPasswordRequestedAt(?\DateTimeInterface $date): void; |
|
| 109 | + public function setPasswordRequestedAt(?\DateTimeInterface $date) : void; |
|
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | 112 | * @param \DateInterval $ttl |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * @param \DateTimeInterface|null $verifiedAt |
| 130 | 130 | */ |
| 131 | - public function setVerifiedAt(?\DateTimeInterface $verifiedAt): void; |
|
| 131 | + public function setVerifiedAt(?\DateTimeInterface $verifiedAt) : void; |
|
| 132 | 132 | |
| 133 | 133 | /** |
| 134 | 134 | * @return \DateTimeInterface|null |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * @param \DateTimeInterface|null $date |
| 140 | 140 | */ |
| 141 | - public function setExpiresAt(?\DateTimeInterface $date): void; |
|
| 141 | + public function setExpiresAt(?\DateTimeInterface $date) : void; |
|
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | 144 | * @return \DateTimeInterface|null |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | /** |
| 149 | 149 | * @param \DateTimeInterface|null $date |
| 150 | 150 | */ |
| 151 | - public function setCredentialsExpireAt(?\DateTimeInterface $date): void; |
|
| 151 | + public function setCredentialsExpireAt(?\DateTimeInterface $date) : void; |
|
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | 154 | * @return \DateTimeInterface|null |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | /** |
| 159 | 159 | * @param \DateTimeInterface|null $time |
| 160 | 160 | */ |
| 161 | - public function setLastLogin(?\DateTimeInterface $time): void; |
|
| 161 | + public function setLastLogin(?\DateTimeInterface $time) : void; |
|
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | 164 | * Never use this to check if this user has access to anything! |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\User\Model; |
| 15 | 15 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * @param string|null $plainPassword |
| 28 | 28 | */ |
| 29 | - public function setPlainPassword(?string $plainPassword): void; |
|
| 29 | + public function setPlainPassword(?string $plainPassword) : void; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Returns the password used to authenticate the user. |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * @param string|null $encodedPassword |
| 43 | 43 | */ |
| 44 | - public function setPassword(?string $encodedPassword): void; |
|
| 44 | + public function setPassword(?string $encodedPassword) : void; |
|
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * Returns the salt that was originally used to encode the password. |