Skip to content

Commit 24e6743

Browse files
committed
- Ran phpcbf over all files in order to automatically fix coding standards
1 parent 7d7c327 commit 24e6743

File tree

126 files changed

+411
-242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+411
-242
lines changed

lib/internal/Magento/Framework/Api/DataObjectHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ protected function setComplexValue(
176176
if (is_subclass_of($returnType, \Magento\Framework\Api\ExtensibleDataInterface::class)) {
177177
$object = $this->objectFactory->create($returnType, []);
178178
$this->populateWithArray($object, $value, $returnType);
179-
} else if (is_subclass_of($returnType, \Magento\Framework\Api\ExtensionAttributesInterface::class)) {
179+
} elseif (is_subclass_of($returnType, \Magento\Framework\Api\ExtensionAttributesInterface::class)) {
180180
foreach ($value as $extensionAttributeKey => $extensionAttributeValue) {
181181
$extensionAttributeGetterMethodName
182182
= 'get' . \Magento\Framework\Api\SimpleDataObjectConverter::snakeCaseToUpperCamelCase(

lib/internal/Magento/Framework/Api/ExtensibleDataObjectConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function toNestedArray(
4848
if (!empty($dataObjectArray[AbstractExtensibleObject::CUSTOM_ATTRIBUTES_KEY])) {
4949
/** @var AttributeValue[] $customAttributes */
5050
$customAttributes = $dataObjectArray[AbstractExtensibleObject::CUSTOM_ATTRIBUTES_KEY];
51-
unset ($dataObjectArray[AbstractExtensibleObject::CUSTOM_ATTRIBUTES_KEY]);
51+
unset($dataObjectArray[AbstractExtensibleObject::CUSTOM_ATTRIBUTES_KEY]);
5252
foreach ($customAttributes as $attributeValue) {
5353
if (!in_array($attributeValue[AttributeValue::ATTRIBUTE_CODE], $skipAttributes)) {
5454
$dataObjectArray[$attributeValue[AttributeValue::ATTRIBUTE_CODE]]
@@ -59,7 +59,7 @@ public function toNestedArray(
5959
if (!empty($dataObjectArray[ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY])) {
6060
/** @var array $extensionAttributes */
6161
$extensionAttributes = $dataObjectArray[ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY];
62-
unset ($dataObjectArray[ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY]);
62+
unset($dataObjectArray[ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY]);
6363
foreach ($extensionAttributes as $attributeKey => $attributeValue) {
6464
if (!in_array($attributeKey, $skipAttributes)) {
6565
$dataObjectArray[$attributeKey] = $attributeValue;

lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/JoinProcessor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
namespace Magento\Framework\Api\SearchCriteria\CollectionProcessor;
77

8-
98
use Magento\Framework\Api\SearchCriteria\CollectionProcessor\JoinProcessor\CustomJoinInterface;
109
use Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface;
1110
use Magento\Framework\Api\SearchCriteriaInterface;

lib/internal/Magento/Framework/Api/SortOrder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function setDirection($direction)
7878

7979
/**
8080
* Validate direction argument ASC or DESC
81-
*
81+
*
8282
* @param mixed $direction
8383
* @return null
8484
* @throws InputException

lib/internal/Magento/Framework/Api/SortOrderBuilder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Magento\Framework\Api;
88

9-
109
/**
1110
* Builder for sort order data object.
1211
* @method SortOrder create()

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ protected function setUp()
6565
->method('getDirectoryWrite')
6666
->willReturn($this->directoryWriteMock);
6767
$this->contentValidatorMock = $this->getMockBuilder(
68-
\Magento\Framework\Api\ImageContentValidatorInterface::class)
68+
\Magento\Framework\Api\ImageContentValidatorInterface::class
69+
)
6970
->disableOriginalConstructor()
7071
->getMock();
7172
$this->dataObjectHelperMock = $this->getMockBuilder(\Magento\Framework\Api\DataObjectHelper::class)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
namespace Magento\Framework\Api\Test\Unit\Code\Generator;
77

8-
98
/**
109
* Class SearchResultTest
1110
*/

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ public function testPopulateWithArrayWithSimpleAttributes()
142142

143143
$this->dataObjectHelper->populateWithArray(
144144
$addressDataObject,
145-
$data, \Magento\Customer\Api\Data\AddressInterface::class
145+
$data,
146+
\Magento\Customer\Api\Data\AddressInterface::class
146147
);
147148

148149
$this->assertEquals($id, $addressDataObject->getId());
@@ -196,7 +197,8 @@ public function testPopulateWithArrayWithCustomAttribute()
196197
->willReturn($customAttribute);
197198
$this->dataObjectHelper->populateWithArray(
198199
$addressDataObject,
199-
$data, \Magento\Customer\Api\Data\AddressInterface::class
200+
$data,
201+
\Magento\Customer\Api\Data\AddressInterface::class
200202
);
201203

202204
$this->assertEquals($id, $addressDataObject->getId());
@@ -258,7 +260,8 @@ public function testPopulateWithArrayWithCustomAttributes()
258260
->willReturn($customAttribute);
259261
$this->dataObjectHelper->populateWithArray(
260262
$addressDataObject,
261-
$data, \Magento\Customer\Api\Data\AddressInterface::class
263+
$data,
264+
\Magento\Customer\Api\Data\AddressInterface::class
262265
);
263266

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

lib/internal/Magento/Framework/Api/Uploader.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class Uploader extends \Magento\Framework\File\Uploader
1717
*/
1818
public function __construct()
1919
{
20-
2120
}
2221

2322
/**

lib/internal/Magento/Framework/App/DeploymentConfig/Writer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ public function saveConfig(array $data, $override = false)
101101

102102
foreach ($data as $fileKey => $config) {
103103
if (isset($paths[$fileKey])) {
104-
105104
if ($this->filesystem->getDirectoryWrite(DirectoryList::CONFIG)->isExist($paths[$fileKey])) {
106105
$currentData = $this->reader->load($fileKey);
107106
if ($override) {

0 commit comments

Comments
 (0)