Completed
Push — 1.4-autowiring-for-resource-bu... ( cfe966...176999 )
by Kamil
09:09
created
Sylius/Bundle/CoreBundle/Fixture/Factory/ShippingMethodExampleFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/EventListener/UserDeleteListener.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.