Skip to content

Commit

Permalink
Fixed coding standard violations in the Framework\Api namespace, so t…
Browse files Browse the repository at this point in the history
…hat they

will be included in the CI tools. Fixed the following:
- Removed @codingStandardsIgnoreFile from the head of the files.
- Fixed multiple arguments on the same line
- Fixed closing function call on correct line
  • Loading branch information
dverkade committed Apr 19, 2017
1 parent f8b51d3 commit e0c3d1f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

namespace Magento\Framework\Api\Test\Unit\Api;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

namespace Magento\Framework\Api\Test\Unit\Api;

/**
Expand Down Expand Up @@ -67,7 +65,8 @@ protected function setUp()
->method('getDirectoryWrite')
->willReturn($this->directoryWriteMock);
$this->contentValidatorMock = $this->getMockBuilder(
\Magento\Framework\Api\ImageContentValidatorInterface::class)
\Magento\Framework\Api\ImageContentValidatorInterface::class
)
->disableOriginalConstructor()
->getMock();
$this->dataObjectHelperMock = $this->getMockBuilder(\Magento\Framework\Api\DataObjectHelper::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile

namespace Magento\Framework\Api\Test\Unit\Code\Generator;

use Magento\Framework\Api\ExtensionAttribute\Config\Converter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile

namespace Magento\Framework\Api\Test\Unit\Code\Generator;

use Magento\Framework\Api\ExtensionAttribute\Config\Converter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

namespace Magento\Framework\Api\Test\Unit;

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

$this->dataObjectHelper->populateWithArray(
$addressDataObject,
$data, \Magento\Customer\Api\Data\AddressInterface::class
$data,
\Magento\Customer\Api\Data\AddressInterface::class
);

$this->assertEquals($id, $addressDataObject->getId());
Expand Down Expand Up @@ -198,7 +197,8 @@ public function testPopulateWithArrayWithCustomAttribute()
->willReturn($customAttribute);
$this->dataObjectHelper->populateWithArray(
$addressDataObject,
$data, \Magento\Customer\Api\Data\AddressInterface::class
$data,
\Magento\Customer\Api\Data\AddressInterface::class
);

$this->assertEquals($id, $addressDataObject->getId());
Expand Down Expand Up @@ -260,7 +260,8 @@ public function testPopulateWithArrayWithCustomAttributes()
->willReturn($customAttribute);
$this->dataObjectHelper->populateWithArray(
$addressDataObject,
$data, \Magento\Customer\Api\Data\AddressInterface::class
$data,
\Magento\Customer\Api\Data\AddressInterface::class
);

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

0 comments on commit e0c3d1f

Please sign in to comment.