Skip to content

Commit e020ab7

Browse files
committed
Mark blocks customer, store, cms as API
update update update update update
1 parent 6ac4cda commit e020ab7

27 files changed

+61
-12
lines changed

app/code/Magento/Cms/Block/Adminhtml/Wysiwyg/Images/Content/Files.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content;
79

810
/**

app/code/Magento/Cms/Block/Adminhtml/Wysiwyg/Images/Tree.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Cms\Block\Adminhtml\Wysiwyg\Images;
79

810
/**
@@ -73,7 +75,7 @@ public function getTreeJson()
7375
$data = [
7476
'text' => $this->_cmsWysiwygImages->getShortFilename($item->getBasename(), 20),
7577
'id' => $this->_cmsWysiwygImages->convertPathToId($item->getFilename()),
76-
'path' => substr($item->getFilename(), strlen($storageRoot)),
78+
'path' => substr($item->getFilename(), strlen((string) $storageRoot)),
7779
'cls' => 'folder',
7880
];
7981
$nestedDirectories = $this->getMediaDirectory()->readRecursively($item->getFilename());
@@ -100,7 +102,7 @@ public function getTreeLoaderUrl()
100102

101103
$currentTreePath = $this->getRequest()->getParam('current_tree_path');
102104

103-
if (strlen($currentTreePath)) {
105+
if (strlen((string) $currentTreePath)) {
104106
$params['current_tree_path'] = $currentTreePath;
105107
}
106108

@@ -135,7 +137,7 @@ public function getTreeCurrentPath()
135137
$path = $this->_coreRegistry->registry('storage')->getSession()->getCurrentPath();
136138
}
137139

138-
if (strlen($path)) {
140+
if (strlen((string) $path)) {
139141
$path = str_replace($this->_cmsWysiwygImages->getStorageRoot(), '', $path);
140142
$relative = [];
141143
foreach (explode('/', $path) as $dirName) {

app/code/Magento/Cms/Block/Page.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Cms\Block;
79

810
use Magento\Store\Model\ScopeInterface;

app/code/Magento/Customer/Block/Account/AuthenticationPopup.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Account;
79

810
use Magento\Customer\Model\Form;
911
use Magento\Store\Model\ScopeInterface;
1012

1113
/**
14+
* Class for authentication popup
15+
*
1216
* @api
1317
* @since 100.0.2
1418
*/

app/code/Magento/Customer/Block/Account/AuthorizationLink.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Account;
79

810
use Magento\Customer\Model\Context;

app/code/Magento/Customer/Block/Account/Customer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Account;
79

810
use Magento\Customer\Api\CustomerRepositoryInterface;
911

1012
/**
13+
* Class for account customer block
14+
*
1115
* @api
1216
* @since 100.0.2
1317
*/

app/code/Magento/Customer/Block/Account/Dashboard.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Account;
79

810
use Magento\Customer\Api\AccountManagementInterface;

app/code/Magento/Customer/Block/Account/Dashboard/Address.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Account\Dashboard;
79

810
use Magento\Customer\Api\Data\AddressInterface;

app/code/Magento/Customer/Block/Account/Dashboard/Info.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Account\Dashboard;
79

810
use Magento\Customer\Api\Data\CustomerInterface;

app/code/Magento/Customer/Block/Account/Delimiter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Customer\Block\Account;
89

@@ -15,7 +16,7 @@
1516
class Delimiter extends \Magento\Framework\View\Element\Template implements SortLinkInterface
1617
{
1718
/**
18-
* {@inheritdoc}
19+
* @inheritdoc
1920
* @since 101.0.0
2021
*/
2122
public function getSortOrder()

app/code/Magento/Customer/Block/Account/Forgotpassword.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Account;
79

810
use Magento\Customer\Model\Url;

app/code/Magento/Customer/Block/Account/Link.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Account;
79

810
use Magento\Customer\Block\Account\SortLinkInterface;

app/code/Magento/Customer/Block/Account/Resetpassword.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Account;
79

810
use Magento\Customer\Model\AccountManagement;

app/code/Magento/Customer/Block/Account/SortLinkInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Customer\Block\Account;
89

910
/**
1011
* Interface for sortable links.
12+
*
1113
* @api
1214
* @since 101.0.0
1315
*/

app/code/Magento/Customer/Block/Address/Book.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Address;
79

810
use Magento\Customer\Api\AddressRepositoryInterface;
@@ -13,7 +15,6 @@
1315
* Customer address book block
1416
*
1517
* @api
16-
* @author Magento Core Team <[email protected]>
1718
* @since 100.0.2
1819
*/
1920
class Book extends \Magento\Framework\View\Element\Template

app/code/Magento/Customer/Block/Address/Edit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Address;
79

810
use Magento\Customer\Api\AddressMetadataInterface;

app/code/Magento/Customer/Block/CustomerData.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block;
79

810
/**

app/code/Magento/Customer/Block/CustomerScopeData.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block;
79

810
use Magento\Framework\App\ObjectManager;

app/code/Magento/Customer/Block/Form/Edit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Form;
79

810
use Magento\Customer\Api\CustomerRepositoryInterface;

app/code/Magento/Customer/Block/Form/Login.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Form;
79

810
/**
911
* Customer login form block
1012
*
1113
* @api
12-
* @author Magento Core Team <[email protected]>
1314
* @since 100.0.2
1415
*/
1516
class Login extends \Magento\Framework\View\Element\Template

app/code/Magento/Customer/Block/Form/Login/Info.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Form\Login;
79

810
/**

app/code/Magento/Customer/Block/Form/Register.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block\Form;
79

810
use Magento\Customer\Helper\Address;

app/code/Magento/Customer/Block/Newsletter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block;
79

810
use Magento\Customer\Api\AccountManagementInterface;

app/code/Magento/Customer/Block/SectionConfig.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Customer\Block;
79

810
/**

app/code/Magento/Directory/Block/Currency.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

7-
/**
8-
* Currency dropdown block
9-
*/
108
namespace Magento\Directory\Block;
119

1210
use Magento\Framework\Locale\Bundle\CurrencyBundle as CurrencyBundle;
1311

1412
/**
13+
* Currency dropdown block
14+
*
1515
* @api
1616
* @since 100.0.2
1717
*/

app/code/Magento/Store/Block/Switcher.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

7-
/**
8-
* Store and language switcher block
9-
*/
108
namespace Magento\Store\Block;
119

1210
use Magento\Directory\Helper\Data;

app/code/Magento/User/Block/Buttons.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\User\Block;
79

810
/**

0 commit comments

Comments
 (0)