Passed
Push — master ( e5e99a...698028 )
by
unknown
58:31
created
SecurityMerchantPortalGui/SecurityMerchantPortalGuiDependencyProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     protected function addSecurityBlockerClient(Container $container): Container
93 93
     {
94
-        $container->set(static::CLIENT_SECURITY_BLOCKER, function (Container $container) {
94
+        $container->set(static::CLIENT_SECURITY_BLOCKER, function(Container $container) {
95 95
             return new SecurityMerchantPortalGuiToSecurityBlockerClientBridge($container->getLocator()->securityBlocker()->client());
96 96
         });
97 97
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     protected function addMerchantUserFacade(Container $container): Container
107 107
     {
108
-        $container->set(static::FACADE_MERCHANT_USER, function (Container $container) {
108
+        $container->set(static::FACADE_MERCHANT_USER, function(Container $container) {
109 109
             return new SecurityMerchantPortalGuiToMerchantUserFacadeBridge(
110 110
                 $container->getLocator()->merchantUser()->facade(),
111 111
             );
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function addMerchantUserLoginRestrictionPlugins(Container $container): Container
123 123
     {
124
-        $container->set(static::PLUGINS_MERCHANT_USER_LOGIN_RESTRICTION, function () {
124
+        $container->set(static::PLUGINS_MERCHANT_USER_LOGIN_RESTRICTION, function() {
125 125
             return $this->getMerchantUserLoginRestrictionPlugins();
126 126
         });
127 127
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     protected function addMessengerFacade(Container $container): Container
137 137
     {
138
-        $container->set(static::FACADE_MESSENGER, function (Container $container) {
138
+        $container->set(static::FACADE_MESSENGER, function(Container $container) {
139 139
             return new SecurityMerchantPortalGuiToMessengerFacadeBridge(
140 140
                 $container->getLocator()->messenger()->facade(),
141 141
             );
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     protected function addSecurityFacade(Container $container): Container
153 153
     {
154
-        $container->set(static::FACADE_SECURITY, function (Container $container) {
154
+        $container->set(static::FACADE_SECURITY, function(Container $container) {
155 155
             return new SecurityMerchantPortalGuiToSecurityFacadeBridge(
156 156
                 $container->getLocator()->security()->facade(),
157 157
             );
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     protected function addTokenStorage(Container $container): Container
177 177
     {
178
-        $container->set(static::SERVICE_SECURITY_TOKEN_STORAGE, function (Container $container) {
178
+        $container->set(static::SERVICE_SECURITY_TOKEN_STORAGE, function(Container $container) {
179 179
             return $container->getApplicationService(static::SERVICE_SECURITY_TOKEN_STORAGE);
180 180
         });
181 181
 
Please login to merge, or discard this patch.
SecurityGui/src/Spryker/Zed/SecurityGui/SecurityGuiDependencyProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     protected function addSecurityBlockerClient(Container $container)
104 104
     {
105
-        $container->set(static::CLIENT_SECURITY_BLOCKER, function (Container $container) {
105
+        $container->set(static::CLIENT_SECURITY_BLOCKER, function(Container $container) {
106 106
             return new SecurityGuiToSecurityBlockerClientBridge(
107 107
                 $container->getLocator()->securityBlocker()->client(),
108 108
             );
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     protected function addUserFacade(Container $container): Container
120 120
     {
121
-        $container->set(static::FACADE_USER, function (Container $container) {
121
+        $container->set(static::FACADE_USER, function(Container $container) {
122 122
             return new SecurityGuiToUserFacadeBridge(
123 123
                 $container->getLocator()->user()->facade(),
124 124
             );
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     protected function addMessengerFacade(Container $container): Container
136 136
     {
137
-        $container->set(static::FACADE_MESSENGER, function (Container $container) {
137
+        $container->set(static::FACADE_MESSENGER, function(Container $container) {
138 138
             return new SecurityGuiToMessengerFacadeBridge(
139 139
                 $container->getLocator()->messenger()->facade(),
140 140
             );
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     protected function addUserPasswordResetFacade(Container $container): Container
152 152
     {
153
-        $container->set(static::FACADE_USER_PASSWORD_RESET, function (Container $container) {
153
+        $container->set(static::FACADE_USER_PASSWORD_RESET, function(Container $container) {
154 154
             return new SecurityGuiToUserPasswordResetFacadeBridge(
155 155
                 $container->getLocator()->userPasswordReset()->facade(),
156 156
             );
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     protected function addSecurityFacade(Container $container): Container
168 168
     {
169
-        $container->set(static::FACADE_SECURITY, function (Container $container) {
169
+        $container->set(static::FACADE_SECURITY, function(Container $container) {
170 170
             return new SecurityGuiToSecurityFacadeBridge(
171 171
                 $container->getLocator()->security()->facade(),
172 172
             );
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     protected function addAuthenticationLinkPlugins(Container $container): Container
184 184
     {
185
-        $container->set(static::PLUGINS_AUTHENTICATION_LINK, function () {
185
+        $container->set(static::PLUGINS_AUTHENTICATION_LINK, function() {
186 186
             return $this->getAuthenticationLinkPlugins();
187 187
         });
188 188
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     protected function addUserRoleFilterPlugins(Container $container): Container
198 198
     {
199
-        $container->set(static::PLUGINS_USER_ROLE_FILTER, function () {
199
+        $container->set(static::PLUGINS_USER_ROLE_FILTER, function() {
200 200
             return $this->getUserRoleFilterPlugins();
201 201
         });
202 202
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     protected function addUserLoginRestrictionPlugins(Container $container): Container
212 212
     {
213
-        $container->set(static::PLUGINS_USER_LOGIN_RESTRICTION, function () {
213
+        $container->set(static::PLUGINS_USER_LOGIN_RESTRICTION, function() {
214 214
             return $this->getUserLoginRestrictionPlugins();
215 215
         });
216 216
 
Please login to merge, or discard this patch.
Customer/src/Spryker/Zed/Customer/Communication/Form/CustomerForm.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
             'help' => 'Used to provide context in email templates.',
338 338
             'constraints' => [
339 339
                 new Callback([
340
-                    'callback' => function ($object, ExecutionContextInterface $context) {
340
+                    'callback' => function($object, ExecutionContextInterface $context) {
341 341
                         $form = $context->getRoot();
342 342
                         if ($form[self::FIELD_SEND_PASSWORD_TOKEN]->getData() === true && !$object) {
343 343
                             $context->buildViolation('This field is required.')->addViolation();
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
         $customerQuery = $this->getQueryContainer()->queryCustomers();
409 409
 
410 410
         $emailConstraints[] = new Callback([
411
-            'callback' => function ($email, ExecutionContextInterface $context) use ($customerQuery) {
411
+            'callback' => function($email, ExecutionContextInterface $context) use ($customerQuery) {
412 412
                 if ($customerQuery->findByEmail($email)->count() > 0) {
413 413
                     $context->addViolation('Email is already used');
414 414
                 }
@@ -460,12 +460,12 @@  discard block
 block discarded – undo
460 460
     protected function createDateTimeModelTransformer(): CallbackTransformer
461 461
     {
462 462
         return new CallbackTransformer(
463
-            function ($dateAsString) {
463
+            function($dateAsString) {
464 464
                 if ($dateAsString !== null) {
465 465
                     return new DateTime($dateAsString);
466 466
                 }
467 467
             },
468
-            function ($dateAsObject) {
468
+            function($dateAsObject) {
469 469
                 return $dateAsObject;
470 470
             },
471 471
         );
@@ -477,12 +477,12 @@  discard block
 block discarded – undo
477 477
     protected function createLocaleModelTransformer(): CallbackTransformer
478 478
     {
479 479
         return new CallbackTransformer(
480
-            function ($localeAsObject) {
480
+            function($localeAsObject) {
481 481
                 if ($localeAsObject !== null) {
482 482
                     return $localeAsObject->getIdLocale();
483 483
                 }
484 484
             },
485
-            function ($localeAsInt) {
485
+            function($localeAsInt) {
486 486
                 if ($localeAsInt !== null) {
487 487
                     return $this->getFactory()->getLocaleFacade()->getLocaleById($localeAsInt);
488 488
                 }
Please login to merge, or discard this patch.
Bundles/Customer/src/Spryker/Zed/Customer/Business/Customer/Customer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -513,7 +513,7 @@
 block discarded – undo
513 513
             ->checkPasswordResetExpiration($customerEntity, $customerResponseTransfer);
514 514
 
515 515
         if (!$customerResponseTransfer->getIsSuccess()) {
516
-             return $customerResponseTransfer;
516
+                return $customerResponseTransfer;
517 517
         }
518 518
 
519 519
         $customerEntity->setRestorePasswordDate(null);
Please login to merge, or discard this patch.