Skip to content

Commit 5f34ef6

Browse files
Merge branch '2.2-develop' into cia-2.4.8-beta2-develop-2.4-develop-sync-01132025
# Conflicts: # AdminAdobeIms/Test/Unit/Command/AdminAdobeImsEnableCommandTest.php # AdminAdobeIms/Test/Unit/Plugin/Block/Adminhtml/SignInPluginTest.php # AdminAdobeIms/Test/Unit/Service/ImsCommandOptionServiceTest.php # AdobeIms/Test/Unit/Block/Adminhtml/SignInTest.php # AdobeIms/Test/Unit/Controller/Adminhtml/User/ProfileTest.php # AdobeIms/Test/Unit/Model/GetAccessTokenTest.php # AdobeIms/Test/Unit/Model/GetImageTest.php # AdobeIms/Test/Unit/Model/LoginTest.php
2 parents e82d61c + b180adb commit 5f34ef6

36 files changed

+80
-88
lines changed

AdminAdobeIms/Console/Command/AdminAdobeImsDisableCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2022 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);

AdminAdobeIms/Console/Command/AdminAdobeImsEnableCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2022 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);

AdminAdobeIms/Console/Command/AdminAdobeImsInfoCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2022 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);

AdminAdobeIms/Console/Command/AdminAdobeImsStatusCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2022 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);

AdminAdobeIms/Model/FlushUserTokens.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2022 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -60,7 +60,7 @@ public function __construct(
6060
/**
6161
* @inheritdoc
6262
*/
63-
public function execute(int $adminUserId = null): void
63+
public function execute(?int $adminUserId = null): void
6464
{
6565
try {
6666
$adminUserId = $adminUserId ?? (int) $this->userContext->getUserId();
@@ -82,7 +82,7 @@ public function execute(int $adminUserId = null): void
8282
* @throws NoSuchEntityException
8383
* @throws Exception
8484
*/
85-
private function revokeTokenForAdobeIms(int $adminUserId = null): void
85+
private function revokeTokenForAdobeIms(?int $adminUserId = null): void
8686
{
8787
$list = $this->imsWebapiRepository->getByAdminUserId($adminUserId);
8888
foreach ($list as $entity) {
@@ -102,7 +102,7 @@ private function revokeTokenForAdobeIms(int $adminUserId = null): void
102102
* @throws NoSuchEntityException
103103
* @throws LocalizedException
104104
*/
105-
private function removeTokensFromTable(int $adminUserId = null): void
105+
private function removeTokensFromTable(?int $adminUserId = null): void
106106
{
107107
$this->imsWebapiRepository->deleteByAdminUserId($adminUserId);
108108
}

AdminAdobeIms/Model/GetAccessTokenProxy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2022 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -49,7 +49,7 @@ public function __construct(
4949
/**
5050
* @inheritdoc
5151
*/
52-
public function execute(int $adminUserId = null): ?string
52+
public function execute(?int $adminUserId = null): ?string
5353
{
5454
if ($this->adminAdobeImsConfig->enabled()) {
5555
return $this->getAccessTokenFromSession->execute($adminUserId);

AdminAdobeIms/Model/GetAccessTokenSession.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2022 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -30,7 +30,7 @@ public function __construct(Auth $auth)
3030
/**
3131
* @inheritdoc
3232
*/
33-
public function execute(int $adminUserId = null): ?string
33+
public function execute(?int $adminUserId = null): ?string
3434
{
3535
return $this->auth->getAuthStorage()->getAdobeAccessToken() ?? null;
3636
}

AdminAdobeIms/Model/ImsConnection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2022 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);

AdminAdobeIms/Model/UserAuthorizedProxy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2022 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);
@@ -50,7 +50,7 @@ public function __construct(
5050
/**
5151
* @inheritdoc
5252
*/
53-
public function execute(int $adminUserId = null): bool
53+
public function execute(?int $adminUserId = null): bool
5454
{
5555
if ($this->adminAdobeImsConfig->enabled()) {
5656
return $this->userAuthorizedSession->execute($adminUserId);

AdminAdobeIms/Model/UserAuthorizedSession.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2022 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);
@@ -41,7 +41,7 @@ public function __construct(
4141
/**
4242
* @inheritdoc
4343
*/
44-
public function execute(int $adminUserId = null): bool
44+
public function execute(?int $adminUserId = null): bool
4545
{
4646
$token = $this->auth->getAuthStorage()->getAdobeAccessToken();
4747

0 commit comments

Comments
 (0)