@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $this->zoneRepository = $zoneRepository; |
| 67 | 67 | $this->shippingCategoryRepository = $shippingCategoryRepository; |
| 68 | 68 | $this->taxCategoryRepository = $taxCategoryRepository; |
| 69 | - if($this->taxCategoryRepository === null) { |
|
| 69 | + if ($this->taxCategoryRepository === null) { |
|
| 70 | 70 | @trigger_error(sprintf('Not passing a $taxCategoryRepository to %s constructor is deprecated since Sylius 1.4 and will be removed in Sylius 2.0.', self::class), \E_USER_DEPRECATED); |
| 71 | 71 | } |
| 72 | 72 | $this->localeRepository = $localeRepository; |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | ->setDefault('archived_at', null) |
| 163 | 163 | ->setAllowedTypes('archived_at', ['null', \DateTimeInterface::class]) |
| 164 | 164 | ; |
| 165 | - if($this->taxCategoryRepository !== null) { |
|
| 165 | + if ($this->taxCategoryRepository !== null) { |
|
| 166 | 166 | $resolver->setNormalizer('tax_category', LazyOption::findOneBy($this->taxCategoryRepository, 'code')); |
| 167 | 167 | } |
| 168 | 168 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | private function isTryingToDeleteLoggedInAdminUser(UserInterface $user): bool |
| 59 | 59 | { |
| 60 | - if (!$user->hasRole('ROLE_ADMINISTRATION_ACCESS') && !$user->hasRole('ROLE_API_ACCESS')){ |
|
| 60 | + if (!$user->hasRole('ROLE_ADMINISTRATION_ACCESS') && !$user->hasRole('ROLE_API_ACCESS')) { |
|
| 61 | 61 | return false; |
| 62 | 62 | } |
| 63 | 63 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | private function isTryingToDeleteLoggedInAdminUser(UserInterface $user): bool |
| 59 | 59 | { |
| 60 | - if (!$user->hasRole('ROLE_ADMINISTRATION_ACCESS') && !$user->hasRole('ROLE_API_ACCESS')){ |
|
| 60 | + if (!$user->hasRole('ROLE_ADMINISTRATION_ACCESS') && !$user->hasRole('ROLE_API_ACCESS')) { |
|
| 61 | 61 | return false; |
| 62 | 62 | } |
| 63 | 63 | |