Skip to content

Commit b80979a

Browse files
authored
Merge pull request #437 from magento-performance/cabpi-379-fix-static-tests
CABPI-379: fix failing static-tests
2 parents 5b87da4 + 2044c9c commit b80979a

File tree

8 files changed

+13
-8
lines changed

8 files changed

+13
-8
lines changed

app/code/Magento/AdminAdobeIms/Console/Command/AdminAdobeImsEnableCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
/**
2626
* Command to set Admin Adobe IMS Module mode
27+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2728
*/
2829
class AdminAdobeImsEnableCommand extends Command
2930
{
@@ -72,7 +73,7 @@ class AdminAdobeImsEnableCommand extends Command
7273
* @param ImsConnection $imsConnection
7374
* @param ImsCommandOptionService $imsCommandOptionService
7475
* @param TypeListInterface $cacheTypeList
75-
* @param UpdateTokensService $cleanupTokensService
76+
* @param UpdateTokensService $updateTokensService
7677
*/
7778
public function __construct(
7879
ImsConfig $imsConfig,

app/code/Magento/AdminAdobeIms/Model/ResourceModel/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ public function loadByEmail(string $email): array
3636

3737
return $result;
3838
}
39-
}
39+
}

app/code/Magento/AdminAdobeIms/Observer/AdminLogoutObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(
3333
*
3434
* @param Observer $observer
3535
* @return $this
36-
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
36+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3737
*/
3838
public function execute(Observer $observer)
3939
{

app/code/Magento/AdminAdobeIms/Plugin/AdminTokenPlugin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function __construct(
3535
* @param string $password
3636
* @return string
3737
* @throws AuthenticationException
38+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3839
*/
3940
public function aroundCreateAdminAccessToken(AdminTokenService $subject, callable $proceed, $username, $password)
4041
{

app/code/Magento/AdminAdobeIms/Plugin/ResetAttemptForBackendObserverPlugin.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ public function __construct(ImsConfig $imsConfig)
2828
}
2929

3030
/**
31+
* Reset Login attempts for backend only if AdminAdobeIms is disabled
32+
*
3133
* @param ResetAttemptForBackendObserver $subject
3234
* @param callable $proceed
3335
* @param Observer $observer
36+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3437
*/
3538
public function aroundExecute(ResetAttemptForBackendObserver $subject, callable $proceed, Observer $observer)
3639
{
3740
if (!$this->imsConfig->enabled()) {
3841
return $proceed($observer);
3942
}
4043
}
41-
}
44+
}

app/code/Magento/AdminAdobeIms/Service/UpdateTokensService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ public function __construct(RevokedRepositoryInterface $revokedRepo, CollectionF
4040
/**
4141
* Token invalidation for the admin users
4242
*
43-
* return @void
43+
* @return void
4444
*/
45-
public function execute()
45+
public function execute(): void
4646
{
4747
$adminUsers = $this->adminUserCollection->getItems();
4848
foreach ($adminUsers as $adminUser) {

app/code/Magento/AdminAdobeIms/Test/Unit/Command/AdminAdobeImsEnableCommandTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ public function testAdminAdobeImsModuleEnableWillClearCacheWhenSuccessful(
145145
->with($outputMessage, null)
146146
->willReturnSelf();
147147

148-
149148
$this->enableCommand->setHelperSet($this->getHelperSet());
150149
$this->enableCommand->run($inputMock, $outputMock);
151150
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
2-
32
/**
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76

7+
declare(strict_types=1);
8+
89
use Magento\Framework\Component\ComponentRegistrar;
910

1011
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_AdminAdobeIms', __DIR__);

0 commit comments

Comments
 (0)