Skip to content

Commit a9f1814

Browse files
author
Oleksii Korshenko
authored
Merge pull request #1047 from magento-engcom/develop-prs
Public Pull Requests: #9321 #9320 #9319 #9318
2 parents c1b3580 + 46149bd commit a9f1814

File tree

15 files changed

+69
-74
lines changed

15 files changed

+69
-74
lines changed

lib/internal/Magento/Framework/Api/Test/Unit/Api/ImageContentValidatorTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\Api\Test\Unit\Api;
108

119
/**

lib/internal/Magento/Framework/Api/Test/Unit/Api/ImageProcessorTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\Api\Test\Unit\Api;
108

119
/**
@@ -67,7 +65,8 @@ protected function setUp()
6765
->method('getDirectoryWrite')
6866
->willReturn($this->directoryWriteMock);
6967
$this->contentValidatorMock = $this->getMockBuilder(
70-
\Magento\Framework\Api\ImageContentValidatorInterface::class)
68+
\Magento\Framework\Api\ImageContentValidatorInterface::class
69+
)
7170
->disableOriginalConstructor()
7271
->getMock();
7372
$this->dataObjectHelperMock = $this->getMockBuilder(\Magento\Framework\Api\DataObjectHelper::class)

lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/ExtensionAttributesGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
// @codingStandardsIgnoreFile
6+
77
namespace Magento\Framework\Api\Test\Unit\Code\Generator;
88

99
use Magento\Framework\Api\ExtensionAttribute\Config\Converter;

lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/ExtensionAttributesInterfaceGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
// @codingStandardsIgnoreFile
6+
77
namespace Magento\Framework\Api\Test\Unit\Code\Generator;
88

99
use Magento\Framework\Api\ExtensionAttribute\Config\Converter;

lib/internal/Magento/Framework/Api/Test/Unit/DataObjectHelperTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\Api\Test\Unit;
108

119
use Magento\Framework\Api\CustomAttributesDataInterface;
@@ -144,7 +142,8 @@ public function testPopulateWithArrayWithSimpleAttributes()
144142

145143
$this->dataObjectHelper->populateWithArray(
146144
$addressDataObject,
147-
$data, \Magento\Customer\Api\Data\AddressInterface::class
145+
$data,
146+
\Magento\Customer\Api\Data\AddressInterface::class
148147
);
149148

150149
$this->assertEquals($id, $addressDataObject->getId());
@@ -198,7 +197,8 @@ public function testPopulateWithArrayWithCustomAttribute()
198197
->willReturn($customAttribute);
199198
$this->dataObjectHelper->populateWithArray(
200199
$addressDataObject,
201-
$data, \Magento\Customer\Api\Data\AddressInterface::class
200+
$data,
201+
\Magento\Customer\Api\Data\AddressInterface::class
202202
);
203203

204204
$this->assertEquals($id, $addressDataObject->getId());
@@ -260,7 +260,8 @@ public function testPopulateWithArrayWithCustomAttributes()
260260
->willReturn($customAttribute);
261261
$this->dataObjectHelper->populateWithArray(
262262
$addressDataObject,
263-
$data, \Magento\Customer\Api\Data\AddressInterface::class
263+
$data,
264+
\Magento\Customer\Api\Data\AddressInterface::class
264265
);
265266

266267
$this->assertEquals($id, $addressDataObject->getId());

lib/internal/Magento/Framework/Autoload/Test/Unit/ClassLoaderWrapperTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\Autoload\Test\Unit;
108

119
use Composer\Autoload\ClassLoader;
@@ -32,7 +30,8 @@ class ClassLoaderWrapperTest extends \PHPUnit_Framework_TestCase
3230
protected function setUp()
3331
{
3432
$this->autoloaderMock = $this->getMock(\Composer\Autoload\ClassLoader::class);
35-
$this->model = (new ObjectManager($this))->getObject(\Magento\Framework\Autoload\ClassLoaderWrapper::class,
33+
$this->model = (new ObjectManager($this))->getObject(
34+
\Magento\Framework\Autoload\ClassLoaderWrapper::class,
3635
[
3736
'autoloader' => $this->autoloaderMock
3837
]

lib/internal/Magento/Framework/Backup/Archive/Tar.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
/**
108
* Extended version of \Magento\Framework\Archive\Tar that supports filtering
119
*
@@ -23,14 +21,15 @@ class Tar extends \Magento\Framework\Archive\Tar
2321
protected $_skipFiles = [];
2422

2523
/**
26-
* Overridden \Magento\Framework\Archive\Tar::_createTar method that does the same actions as it's parent but filters
27-
* files using \Magento\Framework\Backup\Filesystem\Iterator\Filter
24+
* Overridden \Magento\Framework\Archive\Tar::_createTar method that does the same actions as it's parent but
25+
* filters files using \Magento\Framework\Backup\Filesystem\Iterator\Filter
2826
*
2927
* @param bool $skipRoot
3028
* @param bool $finalize
3129
* @return void
3230
*
3331
* @see \Magento\Framework\Archive\Tar::_createTar()
32+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3433
*/
3534
protected function _createTar($skipRoot = false, $finalize = false)
3635
{
@@ -41,7 +40,10 @@ protected function _createTar($skipRoot = false, $finalize = false)
4140
\RecursiveIteratorIterator::SELF_FIRST
4241
);
4342

44-
$iterator = new \Magento\Framework\Backup\Filesystem\Iterator\Filter($filesystemIterator, $this->_skipFiles);
43+
$iterator = new \Magento\Framework\Backup\Filesystem\Iterator\Filter(
44+
$filesystemIterator,
45+
$this->_skipFiles
46+
);
4547

4648
foreach ($iterator as $item) {
4749
$this->_setCurrentFile($item->getPathname());

lib/internal/Magento/Framework/Backup/Db/BackupFactory.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\Backup\Db;
108

119
class BackupFactory
@@ -32,8 +30,11 @@ class BackupFactory
3230
* @param string $backupInstanceName
3331
* @param string $backupDbInstanceName
3432
*/
35-
public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, $backupInstanceName, $backupDbInstanceName)
36-
{
33+
public function __construct(
34+
\Magento\Framework\ObjectManagerInterface $objectManager,
35+
$backupInstanceName,
36+
$backupDbInstanceName
37+
) {
3738
$this->_objectManager = $objectManager;
3839
$this->_backupInstanceName = $backupInstanceName;
3940
$this->_backupDbInstanceName = $backupDbInstanceName;

lib/internal/Magento/Framework/Backup/Factory.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?php
22
/**
3-
* Backup object factory.
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
86

9-
// @codingStandardsIgnoreFile
10-
7+
/**
8+
* Backup object factory.
9+
*/
1110
namespace Magento\Framework\Backup;
1211

1312
class Factory

lib/internal/Magento/Framework/Backup/Filesystem.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\Backup;
108

119
use Magento\Framework\App\ObjectManager;
@@ -108,7 +106,8 @@ public function create()
108106

109107
$filesInfo = $fsHelper->getInfo(
110108
$this->getRootDir(),
111-
\Magento\Framework\Backup\Filesystem\Helper::INFO_READABLE | \Magento\Framework\Backup\Filesystem\Helper::INFO_SIZE,
109+
\Magento\Framework\Backup\Filesystem\Helper::INFO_READABLE |
110+
\Magento\Framework\Backup\Filesystem\Helper::INFO_SIZE,
112111
$this->getIgnorePaths()
113112
);
114113

@@ -162,8 +161,8 @@ public function validateAvailableDiscSpace($backupDir, $size)
162161
if ($requiredSpace > $freeSpace) {
163162
throw new \Magento\Framework\Backup\Exception\NotEnoughFreeSpace(
164163
new \Magento\Framework\Phrase(
165-
'Warning: necessary space for backup is ' . (ceil($requiredSpace) / 1024)
166-
. 'MB, but your free disc space is ' . (ceil($freeSpace) / 1024) . 'MB.'
164+
'Warning: necessary space for backup is ' . (ceil($requiredSpace) / 1024)
165+
. 'MB, but your free disc space is ' . (ceil($freeSpace) / 1024) . 'MB.'
167166
)
168167
);
169168
}

0 commit comments

Comments
 (0)