Skip to content

Commit

Permalink
MAGETWO-70141: Fixed coding standard violations in the Framework\Code…
Browse files Browse the repository at this point in the history
… namespace #9358
  • Loading branch information
ishakhsuvarov authored Jun 23, 2017
2 parents d816ce7 + 7e540a5 commit 5e5ac82
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 21 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\Code\Test\Unit;

use Magento\Framework\Code\Generator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile
/**
* @codingStandardsIgnoreFile
* Coding Standards have to be ignored in this file, as it is just a data source for tests.
*/

class ClassWithAllArgumentTypes
{
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\Code\Test\Unit\Validator;

class ConstructorArgumentTypesTest extends \PHPUnit_Framework_TestCase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile
/**
* @codingStandardsIgnoreFile
* Coding Standards have to be ignored in this file, as it is just a data source for tests.
*/

namespace ArgumentSequence;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile
/**
* @codingStandardsIgnoreFile
* Coding Standards have to be ignored in this file, as it is just a data source for tests.
*/

class ClassA
{
Expand All @@ -16,16 +18,16 @@ class ClassB
class ClassC
{
}
interface InterfaceA
interface FirstInterface
{
}
class ImplementationOfInterfaceA implements InterfaceA
class ImplementationOfFirstInterface implements FirstInterface
{
}
interface InterfaceB
interface SecondInterface
{
}
class ImplementationOfInterfaceB implements InterfaceB
class ImplementationOfSecondInterface implements SecondInterface
{
}
class Context implements \Magento\Framework\ObjectManager\ContextInterface
Expand All @@ -46,21 +48,21 @@ class Context implements \Magento\Framework\ObjectManager\ContextInterface
protected $_exC;

/**
* @var InterfaceA
* @var FirstInterface
*/
protected $_interfaceA;

/**
* @var ImplementationOfInterfaceB
* @var ImplementationOfSecondInterface
*/
protected $_implOfBInterface;

public function __construct(
\ClassA $exA,
\ClassB $exB,
\ClassC $exC,
\InterfaceA $interfaceA,
\ImplementationOfInterfaceB $implOfBInterface
\FirstInterface $interfaceA,
\ImplementationOfSecondInterface $implOfBInterface
) {
$this->_exA = $exA;
$this->_exB = $exB;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile
/**
* @codingStandardsIgnoreFile
* Coding Standards have to be ignored in this file, as it is just a data source for tests.
*/

namespace TypeDuplication;

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

// @codingStandardsIgnoreFile
/**
* @codingStandardsIgnoreFile
* Coding Standards have to be ignored in this file, as it is just a data source for tests.
*/

namespace Magento\SomeModule\Model;

Expand Down

0 comments on commit 5e5ac82

Please sign in to comment.