diff --git a/lib/internal/Magento/Framework/Acl/AclResource/Provider.php b/lib/internal/Magento/Framework/Acl/AclResource/Provider.php
index 1898a2fccef1b..1935aee1cf045 100644
--- a/lib/internal/Magento/Framework/Acl/AclResource/Provider.php
+++ b/lib/internal/Magento/Framework/Acl/AclResource/Provider.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Acl\AclResource;
class Provider implements ProviderInterface
@@ -24,8 +22,10 @@ class Provider implements ProviderInterface
* @param \Magento\Framework\Config\ReaderInterface $configReader
* @param TreeBuilder $resourceTreeBuilder
*/
- public function __construct(\Magento\Framework\Config\ReaderInterface $configReader, TreeBuilder $resourceTreeBuilder)
- {
+ public function __construct(
+ \Magento\Framework\Config\ReaderInterface $configReader,
+ TreeBuilder $resourceTreeBuilder
+ ) {
$this->_configReader = $configReader;
$this->_resourceTreeBuilder = $resourceTreeBuilder;
}
@@ -37,7 +37,9 @@ public function getAclResources()
{
$aclResourceConfig = $this->_configReader->read();
if (!empty($aclResourceConfig['config']['acl']['resources'])) {
- return $this->_resourceTreeBuilder->build($aclResourceConfig['config']['acl']['resources']);
+ return $this->_resourceTreeBuilder->build(
+ $aclResourceConfig['config']['acl']['resources']
+ );
}
return [];
}
diff --git a/lib/internal/Magento/Framework/Api/Test/Unit/Api/ImageContentValidatorTest.php b/lib/internal/Magento/Framework/Api/Test/Unit/Api/ImageContentValidatorTest.php
index e57635a2d9750..eead35e801997 100644
--- a/lib/internal/Magento/Framework/Api/Test/Unit/Api/ImageContentValidatorTest.php
+++ b/lib/internal/Magento/Framework/Api/Test/Unit/Api/ImageContentValidatorTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Api\Test\Unit\Api;
/**
@@ -26,8 +24,8 @@ class ImageContentValidatorTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
$this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
- $this->imageContentValidator = $this->objectManager->getObject(
- \Magento\Framework\Api\ImageContentValidator::class
+ $this->imageContentValidator = $this->objectManager->getObject(
+ \Magento\Framework\Api\ImageContentValidator::class
);
}
diff --git a/lib/internal/Magento/Framework/Api/Test/Unit/Api/ImageProcessorTest.php b/lib/internal/Magento/Framework/Api/Test/Unit/Api/ImageProcessorTest.php
index 83d1a9ece7c18..6bab696f580f4 100644
--- a/lib/internal/Magento/Framework/Api/Test/Unit/Api/ImageProcessorTest.php
+++ b/lib/internal/Magento/Framework/Api/Test/Unit/Api/ImageProcessorTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Api\Test\Unit\Api;
/**
@@ -57,7 +55,7 @@ protected function setUp()
{
$this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
- $this->directoryWriteMock = $this->getMockForAbstractClass(
+ $this->directoryWriteMock = $this->getMockForAbstractClass(
\Magento\Framework\Filesystem\Directory\WriteInterface::class
);
$this->fileSystemMock = $this->getMockBuilder(\Magento\Framework\Filesystem::class)
@@ -66,7 +64,7 @@ protected function setUp()
$this->fileSystemMock->expects($this->any())
->method('getDirectoryWrite')
->willReturn($this->directoryWriteMock);
- $this->contentValidatorMock = $this->getMockBuilder(
+ $this->contentValidatorMock = $this->getMockBuilder(
\Magento\Framework\Api\ImageContentValidatorInterface::class)
->disableOriginalConstructor()
->getMock();
@@ -90,7 +88,7 @@ protected function setUp()
->disableOriginalConstructor()
->getMock();
- $this->imageProcessor = $this->objectManager->getObject(
+ $this->imageProcessor = $this->objectManager->getObject(
\Magento\Framework\Api\ImageProcessor::class,
[
'fileSystem' => $this->fileSystemMock,
diff --git a/lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/ExtensionAttributesGeneratorTest.php b/lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/ExtensionAttributesGeneratorTest.php
index 6a7fac692f4d0..dea20b3cceacf 100644
--- a/lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/ExtensionAttributesGeneratorTest.php
+++ b/lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/ExtensionAttributesGeneratorTest.php
@@ -3,7 +3,7 @@
* Copyright © 2016 Magento. 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;
diff --git a/lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/ExtensionAttributesInterfaceGeneratorTest.php b/lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/ExtensionAttributesInterfaceGeneratorTest.php
index 842802470454b..d3938629f1da2 100644
--- a/lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/ExtensionAttributesInterfaceGeneratorTest.php
+++ b/lib/internal/Magento/Framework/Api/Test/Unit/Code/Generator/ExtensionAttributesInterfaceGeneratorTest.php
@@ -3,7 +3,7 @@
* Copyright © 2016 Magento. 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;
diff --git a/lib/internal/Magento/Framework/Api/Test/Unit/DataObjectHelperTest.php b/lib/internal/Magento/Framework/Api/Test/Unit/DataObjectHelperTest.php
index 95e46d99a8e45..9fa851f69e355 100644
--- a/lib/internal/Magento/Framework/Api/Test/Unit/DataObjectHelperTest.php
+++ b/lib/internal/Magento/Framework/Api/Test/Unit/DataObjectHelperTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Api\Test\Unit;
use Magento\Framework\Api\CustomAttributesDataInterface;
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/Action/ActionTest.php b/lib/internal/Magento/Framework/App/Test/Unit/Action/ActionTest.php
index cb9c427816d23..f42a4e4e353a6 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/Action/ActionTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/Action/ActionTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit\Action;
use \Magento\Framework\App\Action\Action;
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/AreaListTest.php b/lib/internal/Magento/Framework/App/Test/Unit/AreaListTest.php
index 9886abf023216..56a4518f100a7 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/AreaListTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/AreaListTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit;
use \Magento\Framework\App\AreaList;
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/BootstrapTest.php b/lib/internal/Magento/Framework/App/Test/Unit/BootstrapTest.php
index 66564cc7f2120..13a3cfb04ad2a 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/BootstrapTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/BootstrapTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit;
use \Magento\Framework\App\Bootstrap;
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/ObjectManager/ConfigLoaderTest.php b/lib/internal/Magento/Framework/App/Test/Unit/ObjectManager/ConfigLoaderTest.php
index 5a0b4ae96f26c..7fb25813b5867 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/ObjectManager/ConfigLoaderTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/ObjectManager/ConfigLoaderTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit\ObjectManager;
class ConfigLoaderTest extends \PHPUnit_Framework_TestCase
@@ -32,7 +30,7 @@ class ConfigLoaderTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
- $this->_readerMock = $this->getMock(
+ $this->_readerMock = $this->getMock(
\Magento\Framework\ObjectManager\Config\Reader\Dom::class,
[],
[],
@@ -40,7 +38,7 @@ protected function setUp()
false
);
- $this->_readerFactoryMock = $this->getMock(
+ $this->_readerFactoryMock = $this->getMock(
\Magento\Framework\ObjectManager\Config\Reader\DomFactory::class,
['create'],
[],
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/ReinitableConfigTest.php b/lib/internal/Magento/Framework/App/Test/Unit/ReinitableConfigTest.php
index 9a35aa9104e80..bcb4dba000a0b 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/ReinitableConfigTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/ReinitableConfigTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit;
class ReinitableConfigTest extends \PHPUnit_Framework_TestCase
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/Request/HttpTest.php b/lib/internal/Magento/Framework/App/Test/Unit/Request/HttpTest.php
index 98742f397e1cf..94e389178f85d 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/Request/HttpTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/Request/HttpTest.php
@@ -5,8 +5,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit\Request;
use Magento\Framework\App\Config\ScopeConfigInterface;
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/Response/HttpTest.php b/lib/internal/Magento/Framework/App/Test/Unit/Response/HttpTest.php
index 2045fc9bd17b4..8955fa5e2e6ea 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/Response/HttpTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/Response/HttpTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit\Response;
use \Magento\Framework\App\Response\Http;
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/Router/NoRouteHandlerListTest.php b/lib/internal/Magento/Framework/App/Test/Unit/Router/NoRouteHandlerListTest.php
index 1af3a0b86ee7e..3260fae911f7c 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/Router/NoRouteHandlerListTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/Router/NoRouteHandlerListTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit\Router;
class NoRouteHandlerListTest extends \PHPUnit_Framework_TestCase
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/Router/NoRouteHandlerTest.php b/lib/internal/Magento/Framework/App/Test/Unit/Router/NoRouteHandlerTest.php
index eaa6418348dba..1c59226bb0e5a 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/Router/NoRouteHandlerTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/Router/NoRouteHandlerTest.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit\Router;
class NoRouteHandlerTest extends \Magento\Framework\TestFramework\Unit\BaseTestCase
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/StateTest.php b/lib/internal/Magento/Framework/App/Test/Unit/StateTest.php
index ae3845834ee02..a62c04c2eebca 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/StateTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/StateTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit;
use \Magento\Framework\App\Area;
diff --git a/lib/internal/Magento/Framework/App/Test/Unit/StaticResourceTest.php b/lib/internal/Magento/Framework/App/Test/Unit/StaticResourceTest.php
index 002e4746f6fb0..ace2f28c089c7 100644
--- a/lib/internal/Magento/Framework/App/Test/Unit/StaticResourceTest.php
+++ b/lib/internal/Magento/Framework/App/Test/Unit/StaticResourceTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\App\Test\Unit;
use Magento\Framework\App\Bootstrap;
diff --git a/lib/internal/Magento/Framework/Archive/Helper/File.php b/lib/internal/Magento/Framework/Archive/Helper/File.php
index a0e8b3084e855..ec39bb38d40fc 100644
--- a/lib/internal/Magento/Framework/Archive/Helper/File.php
+++ b/lib/internal/Magento/Framework/Archive/Helper/File.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Helper class that simplifies files stream reading and writing
*/
@@ -98,7 +96,10 @@ public function open($mode = 'w+', $chmod = null)
if ($this->_isInWriteMode) {
if (!is_writable($this->_fileLocation)) {
throw new LocalizedException(
- new \Magento\Framework\Phrase('Permission denied to write to %1', [$this->_fileLocation])
+ new \Magento\Framework\Phrase(
+ 'Permission denied to write to %1',
+ [$this->_fileLocation]
+ )
);
}
@@ -199,7 +200,9 @@ protected function _open($mode)
$this->_fileHandler = @fopen($this->_filePath, $mode);
if (false === $this->_fileHandler) {
- throw new LocalizedException(new \Magento\Framework\Phrase('Failed to open file %1', [$this->_filePath]));
+ throw new LocalizedException(
+ new \Magento\Framework\Phrase('Failed to open file %1', [$this->_filePath])
+ );
}
}
@@ -215,7 +218,9 @@ protected function _write($data)
$result = @fwrite($this->_fileHandler, $data);
if (false === $result) {
- throw new LocalizedException(new \Magento\Framework\Phrase('Failed to write data to %1', [$this->_filePath]));
+ throw new LocalizedException(
+ new \Magento\Framework\Phrase('Failed to write data to %1', [$this->_filePath])
+ );
}
}
diff --git a/lib/internal/Magento/Framework/Archive/Helper/File/Gz.php b/lib/internal/Magento/Framework/Archive/Helper/File/Gz.php
index 2bc293270aabd..3d2d1e73061c2 100644
--- a/lib/internal/Magento/Framework/Archive/Helper/File/Gz.php
+++ b/lib/internal/Magento/Framework/Archive/Helper/File/Gz.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Helper class that simplifies gz files stream reading and writing
*/
diff --git a/lib/internal/Magento/Framework/Autoload/Test/Unit/ClassLoaderWrapperTest.php b/lib/internal/Magento/Framework/Autoload/Test/Unit/ClassLoaderWrapperTest.php
index be40adcdc0edc..3ebb08f4b0988 100644
--- a/lib/internal/Magento/Framework/Autoload/Test/Unit/ClassLoaderWrapperTest.php
+++ b/lib/internal/Magento/Framework/Autoload/Test/Unit/ClassLoaderWrapperTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Autoload\Test\Unit;
use Composer\Autoload\ClassLoader;
diff --git a/lib/internal/Magento/Framework/Backup/Archive/Tar.php b/lib/internal/Magento/Framework/Backup/Archive/Tar.php
index 8610a7e5994f4..3abd3b0347d40 100644
--- a/lib/internal/Magento/Framework/Backup/Archive/Tar.php
+++ b/lib/internal/Magento/Framework/Backup/Archive/Tar.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Extended version of \Magento\Framework\Archive\Tar that supports filtering
*
@@ -41,7 +39,10 @@ protected function _createTar($skipRoot = false, $finalize = false)
\RecursiveIteratorIterator::SELF_FIRST
);
- $iterator = new \Magento\Framework\Backup\Filesystem\Iterator\Filter($filesystemIterator, $this->_skipFiles);
+ $iterator = new \Magento\Framework\Backup\Filesystem\Iterator\Filter(
+ $filesystemIterator,
+ $this->_skipFiles
+ );
foreach ($iterator as $item) {
$this->_setCurrentFile($item->getPathname());
diff --git a/lib/internal/Magento/Framework/Backup/Db/BackupFactory.php b/lib/internal/Magento/Framework/Backup/Db/BackupFactory.php
index 4ea115adf9927..c468591ddabe9 100644
--- a/lib/internal/Magento/Framework/Backup/Db/BackupFactory.php
+++ b/lib/internal/Magento/Framework/Backup/Db/BackupFactory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Backup\Db;
class BackupFactory
@@ -32,8 +30,11 @@ class BackupFactory
* @param string $backupInstanceName
* @param string $backupDbInstanceName
*/
- public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, $backupInstanceName, $backupDbInstanceName)
- {
+ public function __construct(
+ \Magento\Framework\ObjectManagerInterface $objectManager,
+ $backupInstanceName,
+ $backupDbInstanceName
+ ) {
$this->_objectManager = $objectManager;
$this->_backupInstanceName = $backupInstanceName;
$this->_backupDbInstanceName = $backupDbInstanceName;
diff --git a/lib/internal/Magento/Framework/Backup/Factory.php b/lib/internal/Magento/Framework/Backup/Factory.php
index 6a0837c138952..05182610b0e25 100644
--- a/lib/internal/Magento/Framework/Backup/Factory.php
+++ b/lib/internal/Magento/Framework/Backup/Factory.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Backup;
class Factory
diff --git a/lib/internal/Magento/Framework/Backup/Filesystem.php b/lib/internal/Magento/Framework/Backup/Filesystem.php
index 7fe469441eeaf..309a22426bb92 100644
--- a/lib/internal/Magento/Framework/Backup/Filesystem.php
+++ b/lib/internal/Magento/Framework/Backup/Filesystem.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Backup;
use Magento\Framework\App\ObjectManager;
diff --git a/lib/internal/Magento/Framework/Cache/Backend/Database.php b/lib/internal/Magento/Framework/Cache/Backend/Database.php
index 1f03a0e5d97e1..3da59b78fdef9 100644
--- a/lib/internal/Magento/Framework/Cache/Backend/Database.php
+++ b/lib/internal/Magento/Framework/Cache/Backend/Database.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
Tables declaration:
@@ -148,7 +146,10 @@ public function load($id, $doNotTestCacheValidity = false)
{
if ($this->_options['store_data'] && !$this->_options['infinite_loop_flag']) {
$this->_options['infinite_loop_flag'] = true;
- $select = $this->_getConnection()->select()->from($this->_getDataTable(), 'data')->where('id=:cache_id');
+ $select = $this->_getConnection()->select()->from(
+ $this->_getDataTable(),
+ 'data'
+ )->where('id=:cache_id');
if (!$doNotTestCacheValidity) {
$select->where('expire_time=0 OR expire_time>?', time());
diff --git a/lib/internal/Magento/Framework/Cache/Backend/Eaccelerator.php b/lib/internal/Magento/Framework/Cache/Backend/Eaccelerator.php
index c8b96659a6b40..cf5e1aefbe1d6 100644
--- a/lib/internal/Magento/Framework/Cache/Backend/Eaccelerator.php
+++ b/lib/internal/Magento/Framework/Cache/Backend/Eaccelerator.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Cache\Backend;
class Eaccelerator extends \Zend_Cache_Backend implements \Zend_Cache_Backend_ExtendedInterface
diff --git a/lib/internal/Magento/Framework/Cache/Test/Unit/CoreTest.php b/lib/internal/Magento/Framework/Cache/Test/Unit/CoreTest.php
index cdbbc4baed695..403e05dd5fe84 100644
--- a/lib/internal/Magento/Framework/Cache/Test/Unit/CoreTest.php
+++ b/lib/internal/Magento/Framework/Cache/Test/Unit/CoreTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* \Magento\Framework\Cache\Core test case
*/
diff --git a/lib/internal/Magento/Framework/Code/Test/Unit/GeneratorTest.php b/lib/internal/Magento/Framework/Code/Test/Unit/GeneratorTest.php
index 9024d56e8a29a..634584c0524dc 100644
--- a/lib/internal/Magento/Framework/Code/Test/Unit/GeneratorTest.php
+++ b/lib/internal/Magento/Framework/Code/Test/Unit/GeneratorTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Code\Test\Unit;
use Magento\Framework\Code\Generator;
diff --git a/lib/internal/Magento/Framework/Code/Test/Unit/Reader/_files/ClassesForArgumentsReader.php b/lib/internal/Magento/Framework/Code/Test/Unit/Reader/_files/ClassesForArgumentsReader.php
index ff5dda80cbee2..02c1eadbd7e8b 100644
--- a/lib/internal/Magento/Framework/Code/Test/Unit/Reader/_files/ClassesForArgumentsReader.php
+++ b/lib/internal/Magento/Framework/Code/Test/Unit/Reader/_files/ClassesForArgumentsReader.php
@@ -5,8 +5,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
class ClassWithAllArgumentTypes
{
const DEFAULT_VALUE = 'Const Value';
diff --git a/lib/internal/Magento/Framework/Code/Test/Unit/Validator/ConstructorArgumentTypesTest.php b/lib/internal/Magento/Framework/Code/Test/Unit/Validator/ConstructorArgumentTypesTest.php
index d03db534f1837..fba2110b780ca 100644
--- a/lib/internal/Magento/Framework/Code/Test/Unit/Validator/ConstructorArgumentTypesTest.php
+++ b/lib/internal/Magento/Framework/Code/Test/Unit/Validator/ConstructorArgumentTypesTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Code\Test\Unit\Validator;
class ConstructorArgumentTypesTest extends \PHPUnit_Framework_TestCase
@@ -28,14 +26,14 @@ class ConstructorArgumentTypesTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
- $this->argumentsReaderMock = $this->getMock(
+ $this->argumentsReaderMock = $this->getMock(
\Magento\Framework\Code\Reader\ArgumentsReader::class,
[],
[],
'',
false
);
- $this->sourceArgumentsReaderMock = $this->getMock(
+ $this->sourceArgumentsReaderMock = $this->getMock(
\Magento\Framework\Code\Reader\SourceArgumentsReader::class,
[],
[],
diff --git a/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForArgumentSequence.php b/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForArgumentSequence.php
index 32c3a7d674f17..4a4a3f244d3c6 100644
--- a/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForArgumentSequence.php
+++ b/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForArgumentSequence.php
@@ -5,8 +5,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace ArgumentSequence;
class ContextObject implements \Magento\Framework\ObjectManager\ContextInterface
diff --git a/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForConstructorIntegrity.php b/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForConstructorIntegrity.php
index 698b16992bbfe..8878bf49fdecd 100644
--- a/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForConstructorIntegrity.php
+++ b/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForConstructorIntegrity.php
@@ -5,8 +5,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
class ClassA
{
}
diff --git a/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForContextAggregation.php b/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForContextAggregation.php
index 27a677e7fe71e..08d10b401a52d 100644
--- a/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForContextAggregation.php
+++ b/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForContextAggregation.php
@@ -5,8 +5,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
class ClassFirst
{
}
diff --git a/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForTypeDuplication.php b/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForTypeDuplication.php
index 1542747bc231a..ea290232ee261 100644
--- a/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForTypeDuplication.php
+++ b/lib/internal/Magento/Framework/Code/Test/Unit/Validator/_files/ClassesForTypeDuplication.php
@@ -5,8 +5,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace TypeDuplication;
interface ArgumentInterface
diff --git a/lib/internal/Magento/Framework/Code/Test/Unit/_files/app/code/Magento/SomeModule/Model/SevenInterface.php b/lib/internal/Magento/Framework/Code/Test/Unit/_files/app/code/Magento/SomeModule/Model/SevenInterface.php
index b059686b3e119..e5c30cd14aa95 100644
--- a/lib/internal/Magento/Framework/Code/Test/Unit/_files/app/code/Magento/SomeModule/Model/SevenInterface.php
+++ b/lib/internal/Magento/Framework/Code/Test/Unit/_files/app/code/Magento/SomeModule/Model/SevenInterface.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\SomeModule\Model;
use Magento\SomeModule\Model\Two\Test as TestTwo;
diff --git a/lib/internal/Magento/Framework/Config/Dom.php b/lib/internal/Magento/Framework/Config/Dom.php
index 826b50927a2f3..691241adfeac3 100644
--- a/lib/internal/Magento/Framework/Config/Dom.php
+++ b/lib/internal/Magento/Framework/Config/Dom.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Magento configuration XML DOM utility
*/
diff --git a/lib/internal/Magento/Framework/Config/Test/Unit/Composer/PackageTest.php b/lib/internal/Magento/Framework/Config/Test/Unit/Composer/PackageTest.php
index 0fdbbf22e54ca..1369cad90236e 100644
--- a/lib/internal/Magento/Framework/Config/Test/Unit/Composer/PackageTest.php
+++ b/lib/internal/Magento/Framework/Config/Test/Unit/Composer/PackageTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Config\Test\Unit\Composer;
use \Magento\Framework\Config\Composer\Package;
diff --git a/lib/internal/Magento/Framework/Config/Test/Unit/DataTest.php b/lib/internal/Magento/Framework/Config/Test/Unit/DataTest.php
index 5c58310e096bb..16dce5df8bb23 100644
--- a/lib/internal/Magento/Framework/Config/Test/Unit/DataTest.php
+++ b/lib/internal/Magento/Framework/Config/Test/Unit/DataTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Config\Test\Unit;
class DataTest extends \PHPUnit_Framework_TestCase
diff --git a/lib/internal/Magento/Framework/Controller/Test/Unit/Result/RedirectFactoryTest.php b/lib/internal/Magento/Framework/Controller/Test/Unit/Result/RedirectFactoryTest.php
index ba102c00027b5..03d3010ad035b 100644
--- a/lib/internal/Magento/Framework/Controller/Test/Unit/Result/RedirectFactoryTest.php
+++ b/lib/internal/Magento/Framework/Controller/Test/Unit/Result/RedirectFactoryTest.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Controller\Test\Unit\Result;
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
diff --git a/lib/internal/Magento/Framework/Css/PreProcessor/Instruction/Import.php b/lib/internal/Magento/Framework/Css/PreProcessor/Instruction/Import.php
index 524ccc8c11fe3..215a73dec392d 100644
--- a/lib/internal/Magento/Framework/Css/PreProcessor/Instruction/Import.php
+++ b/lib/internal/Magento/Framework/Css/PreProcessor/Instruction/Import.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Css\PreProcessor\Instruction;
use Magento\Framework\View\Asset\LocalInterface;
diff --git a/lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Instruction/ImportTest.php b/lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Instruction/ImportTest.php
index 2441422bb1821..20c0dbb293584 100644
--- a/lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Instruction/ImportTest.php
+++ b/lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Instruction/ImportTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Css\Test\Unit\PreProcessor\Instruction;
use Magento\Framework\Css\PreProcessor\FileGenerator\RelatedGenerator;
@@ -39,7 +37,7 @@ class ImportTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
- $this->notationResolver = $this->getMock(
+ $this->notationResolver = $this->getMock(
\Magento\Framework\View\Asset\NotationResolver\Module::class, [], [], '', false
);
$this->asset = $this->getMock(\Magento\Framework\View\Asset\File::class, [], [], '', false);
diff --git a/lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Instruction/MagentoImportTest.php b/lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Instruction/MagentoImportTest.php
index 9bc04c8ff33e9..507c059671f9d 100644
--- a/lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Instruction/MagentoImportTest.php
+++ b/lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Instruction/MagentoImportTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Css\Test\Unit\PreProcessor\Instruction;
use Magento\Framework\Css\PreProcessor\Instruction\MagentoImport;
diff --git a/lib/internal/Magento/Framework/CurrencyFactory.php b/lib/internal/Magento/Framework/CurrencyFactory.php
index 75313af3d289b..8ee2ebbd48d7e 100644
--- a/lib/internal/Magento/Framework/CurrencyFactory.php
+++ b/lib/internal/Magento/Framework/CurrencyFactory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework;
class CurrencyFactory
@@ -24,8 +22,10 @@ class CurrencyFactory
* @param ObjectManagerInterface $objectManager
* @param string $instanceName
*/
- public function __construct(ObjectManagerInterface $objectManager, $instanceName = CurrencyInterface::class)
- {
+ public function __construct(
+ ObjectManagerInterface $objectManager,
+ $instanceName = CurrencyInterface::class
+ ) {
$this->_objectManager = $objectManager;
$this->_instanceName = $instanceName;
}
diff --git a/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php b/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php
index cfbeb4f54c9e2..6f04a2a7c38d8 100644
--- a/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php
+++ b/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\DB\Adapter\Pdo;
use Magento\Framework\Cache\FrontendInterface;
diff --git a/lib/internal/Magento/Framework/DB/MapperFactory.php b/lib/internal/Magento/Framework/DB/MapperFactory.php
index c387c9d73ce38..7a870f7b71f68 100644
--- a/lib/internal/Magento/Framework/DB/MapperFactory.php
+++ b/lib/internal/Magento/Framework/DB/MapperFactory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\DB;
/**
diff --git a/lib/internal/Magento/Framework/DB/QueryFactory.php b/lib/internal/Magento/Framework/DB/QueryFactory.php
index 8783a92ab10d3..ff6265a2a6aa3 100644
--- a/lib/internal/Magento/Framework/DB/QueryFactory.php
+++ b/lib/internal/Magento/Framework/DB/QueryFactory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\DB;
/**
diff --git a/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php b/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php
index 822694b4a2a4a..5b7cccf11388a 100644
--- a/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php
+++ b/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Mysql DB Statement
*
diff --git a/lib/internal/Magento/Framework/DB/Test/Unit/AbstractMapperTest.php b/lib/internal/Magento/Framework/DB/Test/Unit/AbstractMapperTest.php
index c01121595f795..d66b209368132 100644
--- a/lib/internal/Magento/Framework/DB/Test/Unit/AbstractMapperTest.php
+++ b/lib/internal/Magento/Framework/DB/Test/Unit/AbstractMapperTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\DB\Test\Unit;
use Magento\Framework\DB\Select;
diff --git a/lib/internal/Magento/Framework/DB/Test/Unit/Adapter/Pdo/MysqlTest.php b/lib/internal/Magento/Framework/DB/Test/Unit/Adapter/Pdo/MysqlTest.php
index 565548de0a26f..281048686e822 100644
--- a/lib/internal/Magento/Framework/DB/Test/Unit/Adapter/Pdo/MysqlTest.php
+++ b/lib/internal/Magento/Framework/DB/Test/Unit/Adapter/Pdo/MysqlTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* \Magento\Framework\DB\Adapter\Pdo\Mysql class test
*/
@@ -60,7 +58,7 @@ protected function setUp()
// LoggerInterface $logger,
// SelectFactory $selectFactory,
// array $config = []
- $this->_mockAdapter = $this->getMock(
+ $this->_mockAdapter = $this->getMock(
\Magento\Framework\DB\Adapter\Pdo\Mysql::class,
['beginTransaction', 'getTransactionLevel'],
[
@@ -82,7 +80,7 @@ protected function setUp()
->method('getTransactionLevel')
->will($this->returnValue(1));
- $this->_adapter = $this->getMock(
+ $this->_adapter = $this->getMock(
\Magento\Framework\DB\Adapter\Pdo\Mysql::class,
[
'getCreateTable',
@@ -108,7 +106,7 @@ protected function setUp()
true
);
- $profiler = $this->getMock(
+ $profiler = $this->getMock(
\Zend_Db_Profiler::class
);
@@ -468,7 +466,7 @@ public function testInsertOnDuplicateWithQuotedColumnName()
*/
public function testAddColumn($options, $expectedQuery)
{
- $connectionMock = $this->getMock(
+ $connectionMock = $this->getMock(
\Magento\Framework\DB\Adapter\Pdo\Mysql::class,
['tableColumnExists', '_getTableName', 'rawQuery', 'resetDdlCache', 'quote'], [], '', false
);
diff --git a/lib/internal/Magento/Framework/Data/Form/Element/Editor.php b/lib/internal/Magento/Framework/Data/Form/Element/Editor.php
index c4e6797242e19..3792badf61a0a 100644
--- a/lib/internal/Magento/Framework/Data/Form/Element/Editor.php
+++ b/lib/internal/Magento/Framework/Data/Form/Element/Editor.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Data\Form\Element;
use Magento\Framework\Escaper;
diff --git a/lib/internal/Magento/Framework/Data/Form/Element/Gallery.php b/lib/internal/Magento/Framework/Data/Form/Element/Gallery.php
index a2cf4843bb78d..5690c07b2f05b 100644
--- a/lib/internal/Magento/Framework/Data/Form/Element/Gallery.php
+++ b/lib/internal/Magento/Framework/Data/Form/Element/Gallery.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Category form input image element
*
@@ -45,7 +43,7 @@ public function getElementHtml()
$html = '
';
$html .= 'Big Image | Thumbnail | Small Thumb | Sort Order | Delete |
';
$widgetButton = $this->getForm()->getParent()->getLayout();
- $buttonHtml = $widgetButton->createBlock(
+ $buttonHtml = $widgetButton->createBlock(
\Magento\Backend\Block\Widget\Button::class
)->setData(
['label' => 'Add New Image', 'onclick' => 'addNewImg()', 'class' => 'add']
diff --git a/lib/internal/Magento/Framework/Data/Form/Element/Time.php b/lib/internal/Magento/Framework/Data/Form/Element/Time.php
index fe23e73b1352e..e0a400d41a9a9 100644
--- a/lib/internal/Magento/Framework/Data/Form/Element/Time.php
+++ b/lib/internal/Magento/Framework/Data/Form/Element/Time.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Form time element
*
diff --git a/lib/internal/Magento/Framework/Data/FormFactory.php b/lib/internal/Magento/Framework/Data/FormFactory.php
index 6602b2b609d85..84a47672ef401 100644
--- a/lib/internal/Magento/Framework/Data/FormFactory.php
+++ b/lib/internal/Magento/Framework/Data/FormFactory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Data;
/**
@@ -54,7 +52,10 @@ public function create(array $data = [])
$form = $this->_objectManager->create($this->_instanceName, $data);
if (!$form instanceof \Magento\Framework\Data\Form) {
throw new \Magento\Framework\Exception\LocalizedException(
- new \Magento\Framework\Phrase('%1 doesn\'t extend \Magento\Framework\Data\Form', [$this->_instanceName])
+ new \Magento\Framework\Phrase(
+ '%1 doesn\'t extend \Magento\Framework\Data\Form',
+ [$this->_instanceName]
+ )
);
}
return $form;
diff --git a/lib/internal/Magento/Framework/Data/Test/Unit/Collection/DbTest.php b/lib/internal/Magento/Framework/Data/Test/Unit/Collection/DbTest.php
index 09f4c08628e1d..60d14a11c052c 100644
--- a/lib/internal/Magento/Framework/Data/Test/Unit/Collection/DbTest.php
+++ b/lib/internal/Magento/Framework/Data/Test/Unit/Collection/DbTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Data\Test\Unit\Collection;
/**
diff --git a/lib/internal/Magento/Framework/Data/Test/Unit/Form/Element/AbstractElementTest.php b/lib/internal/Magento/Framework/Data/Test/Unit/Form/Element/AbstractElementTest.php
index a6cdfd23c50e0..8d826272ec261 100644
--- a/lib/internal/Magento/Framework/Data/Test/Unit/Form/Element/AbstractElementTest.php
+++ b/lib/internal/Magento/Framework/Data/Test/Unit/Form/Element/AbstractElementTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Tests for \Magento\Framework\Data\Form\Element\AbstractElement
*/
diff --git a/lib/internal/Magento/Framework/Encryption/Crypt.php b/lib/internal/Magento/Framework/Encryption/Crypt.php
index 98fcb40757802..8ccc77dd60d39 100644
--- a/lib/internal/Magento/Framework/Encryption/Crypt.php
+++ b/lib/internal/Magento/Framework/Encryption/Crypt.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Encryption;
/**
@@ -47,8 +45,12 @@ class Crypt
* FALSE fills initial vector with zero bytes to not use it.
* @throws \Exception
*/
- public function __construct($key, $cipher = MCRYPT_BLOWFISH, $mode = MCRYPT_MODE_ECB, $initVector = false)
- {
+ public function __construct(
+ $key,
+ $cipher = MCRYPT_BLOWFISH,
+ $mode = MCRYPT_MODE_ECB,
+ $initVector = false
+ ) {
$this->_cipher = $cipher;
$this->_mode = $mode;
$this->_handle = mcrypt_module_open($cipher, '', $mode, '');
@@ -72,7 +74,10 @@ public function __construct($key, $cipher = MCRYPT_BLOWFISH, $mode = MCRYPT_MODE
$initVector = str_repeat("\0", $initVectorSize);
} elseif (!is_string($initVector) || strlen($initVector) != $initVectorSize) {
throw new \Magento\Framework\Exception\LocalizedException(
- new \Magento\Framework\Phrase('Init vector must be a string of %1 bytes.', [$initVectorSize])
+ new \Magento\Framework\Phrase(
+ 'Init vector must be a string of %1 bytes.',
+ [$initVectorSize]
+ )
);
}
$this->_initVector = $initVector;
diff --git a/lib/internal/Magento/Framework/Encryption/Helper/Security.php b/lib/internal/Magento/Framework/Encryption/Helper/Security.php
index eea9e8d378233..b3bd46f8e8b99 100644
--- a/lib/internal/Magento/Framework/Encryption/Helper/Security.php
+++ b/lib/internal/Magento/Framework/Encryption/Helper/Security.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Encryption\Helper;
use Zend\Crypt\Utils;
diff --git a/lib/internal/Magento/Framework/Event/Invoker/InvokerDefault.php b/lib/internal/Magento/Framework/Event/Invoker/InvokerDefault.php
index 20743df52198a..1a2a702c5c8db 100644
--- a/lib/internal/Magento/Framework/Event/Invoker/InvokerDefault.php
+++ b/lib/internal/Magento/Framework/Event/Invoker/InvokerDefault.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Event\Invoker;
use Magento\Framework\Event\Observer;
@@ -33,8 +31,10 @@ class InvokerDefault implements \Magento\Framework\Event\InvokerInterface
* @param \Magento\Framework\Event\ObserverFactory $observerFactory
* @param \Magento\Framework\App\State $appState
*/
- public function __construct(\Magento\Framework\Event\ObserverFactory $observerFactory, \Magento\Framework\App\State $appState)
- {
+ public function __construct(
+ \Magento\Framework\Event\ObserverFactory $observerFactory,
+ \Magento\Framework\App\State $appState
+ ) {
$this->_observerFactory = $observerFactory;
$this->_appState = $appState;
}
diff --git a/lib/internal/Magento/Framework/File/Csv.php b/lib/internal/Magento/Framework/File/Csv.php
index 1e8050c04a60e..a0a2822272bec 100644
--- a/lib/internal/Magento/Framework/File/Csv.php
+++ b/lib/internal/Magento/Framework/File/Csv.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\File;
use Magento\Framework\Filesystem\Driver\File;
diff --git a/lib/internal/Magento/Framework/File/CsvMulty.php b/lib/internal/Magento/Framework/File/CsvMulty.php
index eb0c65656bc80..5f6e2de205763 100644
--- a/lib/internal/Magento/Framework/File/CsvMulty.php
+++ b/lib/internal/Magento/Framework/File/CsvMulty.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Csv parse
*
diff --git a/lib/internal/Magento/Framework/File/Test/Unit/CsvTest.php b/lib/internal/Magento/Framework/File/Test/Unit/CsvTest.php
index 609be97a8ec77..e8081a17c1885 100644
--- a/lib/internal/Magento/Framework/File/Test/Unit/CsvTest.php
+++ b/lib/internal/Magento/Framework/File/Test/Unit/CsvTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\File\Test\Unit;
use Magento\Framework\Filesystem\Driver\File;
diff --git a/lib/internal/Magento/Framework/File/Transfer/Adapter/Http.php b/lib/internal/Magento/Framework/File/Transfer/Adapter/Http.php
index 7404cf50fdd0a..87c76ea518b4b 100644
--- a/lib/internal/Magento/Framework/File/Transfer/Adapter/Http.php
+++ b/lib/internal/Magento/Framework/File/Transfer/Adapter/Http.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\File\Transfer\Adapter;
class Http
@@ -24,8 +22,10 @@ class Http
* @param \Magento\Framework\App\Response\Http
* @param \Magento\Framework\File\Mime $mime
*/
- public function __construct(\Magento\Framework\HTTP\PhpEnvironment\Response $response, \Magento\Framework\File\Mime $mime)
- {
+ public function __construct(
+ \Magento\Framework\HTTP\PhpEnvironment\Response $response,
+ \Magento\Framework\File\Mime $mime
+ ) {
$this->response = $response;
$this->mime = $mime;
}
diff --git a/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php b/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php
index 30bed420be66c..630a9eb3082bf 100644
--- a/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php
+++ b/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Filesystem\Io;
/**
@@ -48,7 +46,9 @@ public function open(array $args = [])
}
$this->_connection = new \phpseclib\Net\SFTP($host, $port, $args['timeout']);
if (!$this->_connection->login($args['username'], $args['password'])) {
- throw new \Exception(sprintf("Unable to open SFTP connection as %s@%s", $args['username'], $args['host']));
+ throw new \Exception(
+ sprintf("Unable to open SFTP connection as %s@%s", $args['username'], $args['host'])
+ );
}
}
diff --git a/lib/internal/Magento/Framework/Filter/Input/MaliciousCode.php b/lib/internal/Magento/Framework/Filter/Input/MaliciousCode.php
index 10f1289b90c18..7090d925edc84 100644
--- a/lib/internal/Magento/Framework/Filter/Input/MaliciousCode.php
+++ b/lib/internal/Magento/Framework/Filter/Input/MaliciousCode.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Filter\Input;
class MaliciousCode implements \Zend_Filter_Interface
diff --git a/lib/internal/Magento/Framework/HTTP/Adapter/Curl.php b/lib/internal/Magento/Framework/HTTP/Adapter/Curl.php
index fb00e9f59c830..be113354cc57c 100644
--- a/lib/internal/Magento/Framework/HTTP/Adapter/Curl.php
+++ b/lib/internal/Magento/Framework/HTTP/Adapter/Curl.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* HTTP CURL Adapter
*
diff --git a/lib/internal/Magento/Framework/HTTP/Header.php b/lib/internal/Magento/Framework/HTTP/Header.php
index e6371fe38c6cd..d21fb244a55a8 100644
--- a/lib/internal/Magento/Framework/HTTP/Header.php
+++ b/lib/internal/Magento/Framework/HTTP/Header.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\HTTP;
/**
@@ -29,8 +27,10 @@ class Header
* @param \Magento\Framework\App\RequestInterface $httpRequest
* @param \Magento\Framework\Stdlib\StringUtils $converter
*/
- public function __construct(\Magento\Framework\App\RequestInterface $httpRequest, \Magento\Framework\Stdlib\StringUtils $converter)
- {
+ public function __construct(
+ \Magento\Framework\App\RequestInterface $httpRequest,
+ \Magento\Framework\Stdlib\StringUtils $converter
+ ) {
$this->_request = $httpRequest;
$this->_converter = $converter;
}
diff --git a/lib/internal/Magento/Framework/Image/Factory.php b/lib/internal/Magento/Framework/Image/Factory.php
index 2239d141d2fc2..f6ac872ef9912 100644
--- a/lib/internal/Magento/Framework/Image/Factory.php
+++ b/lib/internal/Magento/Framework/Image/Factory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Image;
use Magento\Framework\ObjectManagerInterface;
@@ -26,8 +24,10 @@ class Factory
* @param ObjectManagerInterface $objectManager
* @param AdapterFactory $adapterFactory
*/
- public function __construct(ObjectManagerInterface $objectManager, AdapterFactory $adapterFactory)
- {
+ public function __construct(
+ ObjectManagerInterface $objectManager,
+ AdapterFactory $adapterFactory
+ ) {
$this->objectManager = $objectManager;
$this->adapterFactory = $adapterFactory;
}
@@ -42,7 +42,7 @@ public function __construct(ObjectManagerInterface $objectManager, AdapterFactor
public function create($fileName = null, $adapterName = null)
{
$adapter = $this->adapterFactory->create($adapterName);
- return $this->objectManager->create(
+ return $this->objectManager->create(
\Magento\Framework\Image::class, ['adapter' => $adapter, 'fileName' => $fileName]);
}
}
diff --git a/lib/internal/Magento/Framework/Interception/Code/Generator/Interceptor.php b/lib/internal/Magento/Framework/Interception/Code/Generator/Interceptor.php
index 0c920717bdf38..f0edfa49eb980 100644
--- a/lib/internal/Magento/Framework/Interception/Code/Generator/Interceptor.php
+++ b/lib/internal/Magento/Framework/Interception/Code/Generator/Interceptor.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Interception\Code\Generator;
class Interceptor extends \Magento\Framework\Code\Generator\EntityAbstract
diff --git a/lib/internal/Magento/Framework/Interception/Test/Unit/Code/Generator/InterceptorTest.php b/lib/internal/Magento/Framework/Interception/Test/Unit/Code/Generator/InterceptorTest.php
index 4c26b41a1547a..3ec7bcca3c6a4 100644
--- a/lib/internal/Magento/Framework/Interception/Test/Unit/Code/Generator/InterceptorTest.php
+++ b/lib/internal/Magento/Framework/Interception/Test/Unit/Code/Generator/InterceptorTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Interception\Test\Unit\Code\Generator;
class InterceptorTest extends \PHPUnit_Framework_TestCase
@@ -23,7 +21,7 @@ class InterceptorTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
$this->ioObjectMock = $this->getMock(\Magento\Framework\Code\Generator\Io::class, [], [], '', false);
- $this->classGeneratorMock = $this->getMock(
+ $this->classGeneratorMock = $this->getMock(
\Magento\Framework\Code\Generator\CodeGeneratorInterface::class,
[],
[],
@@ -35,7 +33,7 @@ protected function setUp()
public function testGetDefaultResultClassName()
{
// resultClassName should be stdClass_Interceptor
- $model = $this->getMock(
+ $model = $this->getMock(
\Magento\Framework\Interception\Code\Generator\Interceptor::class,
['_validateData'],
[
diff --git a/lib/internal/Magento/Framework/Interception/Test/Unit/Code/InterfaceValidatorTest.php b/lib/internal/Magento/Framework/Interception/Test/Unit/Code/InterfaceValidatorTest.php
index a2660a4561fe9..95752d0dbbf81 100644
--- a/lib/internal/Magento/Framework/Interception/Test/Unit/Code/InterfaceValidatorTest.php
+++ b/lib/internal/Magento/Framework/Interception/Test/Unit/Code/InterfaceValidatorTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Interception\Test\Unit\Code;
use \Magento\Framework\Interception\Code\InterfaceValidator;
diff --git a/lib/internal/Magento/Framework/Interception/Test/Unit/Config/ConfigTest.php b/lib/internal/Magento/Framework/Interception/Test/Unit/Config/ConfigTest.php
index 992ed838b7c52..db449c0f4030b 100644
--- a/lib/internal/Magento/Framework/Interception/Test/Unit/Config/ConfigTest.php
+++ b/lib/internal/Magento/Framework/Interception/Test/Unit/Config/ConfigTest.php
@@ -3,7 +3,7 @@
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
+
namespace Magento\Framework\Interception\Test\Unit\Config;
require_once __DIR__ . '/../Custom/Module/Model/Item.php';
diff --git a/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/ExtraParameters.php b/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/ExtraParameters.php
index 3de967defdbca..46252efb75ca0 100644
--- a/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/ExtraParameters.php
+++ b/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/ExtraParameters.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin;
class ExtraParameters
diff --git a/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/IncompatibleArgumentsCount.php b/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/IncompatibleArgumentsCount.php
index ac9f606383941..9478a8dc845d7 100644
--- a/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/IncompatibleArgumentsCount.php
+++ b/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/IncompatibleArgumentsCount.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin;
class IncompatibleArgumentsCount
diff --git a/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/IncompatibleArgumentsType.php b/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/IncompatibleArgumentsType.php
index c971dfeed7620..cb4bf15710f42 100644
--- a/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/IncompatibleArgumentsType.php
+++ b/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/IncompatibleArgumentsType.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin;
class IncompatibleArgumentsType
@@ -18,7 +16,8 @@ class IncompatibleArgumentsType
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function beforeGetItem(
- \Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemWithArguments $subject, array $names
+ \Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemWithArguments $subject,
+ array $names
) {
return count($names);
}
diff --git a/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/InvalidProceed.php b/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/InvalidProceed.php
index 7244816430882..c5eb2f23a3fd8 100644
--- a/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/InvalidProceed.php
+++ b/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/InvalidProceed.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin;
class InvalidProceed
@@ -19,7 +17,9 @@ class InvalidProceed
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function aroundGetItem(
- \Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\Item $subject, $name, $surname
+ \Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\Item $subject,
+ $name,
+ $surname
) {
return $name . $surname;
}
diff --git a/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/ValidPlugin.php b/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/ValidPlugin.php
index 821b8bdf93de9..2d589c8678c0e 100644
--- a/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/ValidPlugin.php
+++ b/lib/internal/Magento/Framework/Interception/Test/Unit/Custom/Module/Model/InterfaceValidator/ItemPlugin/ValidPlugin.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin;
class ValidPlugin
@@ -18,7 +16,8 @@ class ValidPlugin
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function afterGetItem(
- \Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemWithArguments $subject, $result
+ \Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemWithArguments $subject,
+ $result
) {
return $result . '!';
}
@@ -31,7 +30,8 @@ public function afterGetItem(
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function beforeGetItem(
- \Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemWithArguments $subject, $name
+ \Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemWithArguments $subject,
+ $name
) {
return '|' . $name;
}
diff --git a/lib/internal/Magento/Framework/Locale/Test/Unit/ConfigTest.php b/lib/internal/Magento/Framework/Locale/Test/Unit/ConfigTest.php
index 5af8e61b2fc26..d6f63bc470349 100644
--- a/lib/internal/Magento/Framework/Locale/Test/Unit/ConfigTest.php
+++ b/lib/internal/Magento/Framework/Locale/Test/Unit/ConfigTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Locale\Test\Unit;
class ConfigTest extends \PHPUnit_Framework_TestCase
@@ -91,7 +89,7 @@ public function testGetAllowedLocalesNoDataArray()
public function testGetAllowedLocalesGivenDataArray()
{
$this->configObject = (new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this))
- ->getObject(
+ ->getObject(
\Magento\Framework\Locale\Config::class,
[
'data' => [
@@ -117,7 +115,7 @@ public function testGetAllowedLocalesGivenDataArray()
public function testGetAllowedLocalesGivenRedundantDataArray()
{
$this->configObject = (new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this))
- ->getObject(
+ ->getObject(
\Magento\Framework\Locale\Config::class,
[
'data' => [
@@ -159,7 +157,7 @@ public function testGetAllowedCurrenciesNoDataArray()
public function testGetAllowedCurrenciesGivenDataArray()
{
$this->configObject = (new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this))
- ->getObject(
+ ->getObject(
\Magento\Framework\Locale\Config::class,
[
'data' => [
@@ -185,7 +183,7 @@ public function testGetAllowedCurrenciesGivenDataArray()
public function testGetAllowedCurrenciesGivenRedundantDataArray()
{
$this->configObject = (new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this))
- ->getObject(
+ ->getObject(
\Magento\Framework\Locale\Config::class,
[
'data' => [
diff --git a/lib/internal/Magento/Framework/Locale/Test/Unit/CurrencyTest.php b/lib/internal/Magento/Framework/Locale/Test/Unit/CurrencyTest.php
index 5883276fa1fe3..ab65f41ebeaa8 100644
--- a/lib/internal/Magento/Framework/Locale/Test/Unit/CurrencyTest.php
+++ b/lib/internal/Magento/Framework/Locale/Test/Unit/CurrencyTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Locale\Test\Unit;
use Magento\Framework\Locale\Currency;
@@ -58,7 +56,7 @@ protected function setUp()
->getMock();
$this->testCurrencyObject = (new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this))
- ->getObject(
+ ->getObject(
\Magento\Framework\Locale\Currency::class,
[
'eventManager' => $this->mockEventManager,
diff --git a/lib/internal/Magento/Framework/Locale/TranslatedLists.php b/lib/internal/Magento/Framework/Locale/TranslatedLists.php
index a9724176f198e..78ad9d09e0662 100644
--- a/lib/internal/Magento/Framework/Locale/TranslatedLists.php
+++ b/lib/internal/Magento/Framework/Locale/TranslatedLists.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Locale;
use Magento\Framework\Locale\Bundle\CurrencyBundle;
diff --git a/lib/internal/Magento/Framework/Message/Factory.php b/lib/internal/Magento/Framework/Message/Factory.php
index 56d010da58521..ccd71fce91222 100644
--- a/lib/internal/Magento/Framework/Message/Factory.php
+++ b/lib/internal/Magento/Framework/Message/Factory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Message;
use Magento\Framework\ObjectManagerInterface;
diff --git a/lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php b/lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
index 6c82dafb6c44e..b22494603a69e 100644
--- a/lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
+++ b/lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Model\ResourceModel\Db\Collection;
use Magento\Framework\App\ResourceConnection\SourceProviderInterface;
diff --git a/lib/internal/Magento/Framework/Model/ResourceModel/Type/Db/Pdo/Mysql.php b/lib/internal/Magento/Framework/Model/ResourceModel/Type/Db/Pdo/Mysql.php
index 8b6a2c23386ff..202633a27d27e 100644
--- a/lib/internal/Magento/Framework/Model/ResourceModel/Type/Db/Pdo/Mysql.php
+++ b/lib/internal/Magento/Framework/Model/ResourceModel/Type/Db/Pdo/Mysql.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Model\ResourceModel\Type\Db\Pdo;
use Magento\Framework\App\ResourceConnection\ConnectionAdapterInterface;
diff --git a/lib/internal/Magento/Framework/Model/Test/Unit/AbstractExtensibleModelTest.php b/lib/internal/Magento/Framework/Model/Test/Unit/AbstractExtensibleModelTest.php
index 13a9ed5be4f92..011463ab56741 100644
--- a/lib/internal/Magento/Framework/Model/Test/Unit/AbstractExtensibleModelTest.php
+++ b/lib/internal/Magento/Framework/Model/Test/Unit/AbstractExtensibleModelTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Model\Test\Unit;
use Magento\Framework\Api\AttributeValue;
diff --git a/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/AbstractDbTest.php b/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/AbstractDbTest.php
index d13bcdc539aa8..7ad907c22421b 100644
--- a/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/AbstractDbTest.php
+++ b/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/AbstractDbTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Model\Test\Unit\ResourceModel\Db;
use Magento\Framework\DB\Adapter\AdapterInterface;
use Magento\Framework\DB\Adapter\DuplicateException;
diff --git a/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/Collection/AbstractCollectionTest.php b/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/Collection/AbstractCollectionTest.php
index d458810732b6b..a2555f13898ae 100644
--- a/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/Collection/AbstractCollectionTest.php
+++ b/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/Collection/AbstractCollectionTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Model\Test\Unit\ResourceModel\Db\Collection;
use Magento\Framework\DB\Select;
diff --git a/lib/internal/Magento/Framework/Module/ModuleResource.php b/lib/internal/Magento/Framework/Module/ModuleResource.php
index 42a14ac74d3ec..325420f4b12df 100644
--- a/lib/internal/Magento/Framework/Module/ModuleResource.php
+++ b/lib/internal/Magento/Framework/Module/ModuleResource.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Module;
/**
diff --git a/lib/internal/Magento/Framework/Module/Setup/MigrationFactory.php b/lib/internal/Magento/Framework/Module/Setup/MigrationFactory.php
index dd8067278728e..9521ecd905938 100644
--- a/lib/internal/Magento/Framework/Module/Setup/MigrationFactory.php
+++ b/lib/internal/Magento/Framework/Module/Setup/MigrationFactory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Module\Setup;
/**
diff --git a/lib/internal/Magento/Framework/Mview/ActionFactory.php b/lib/internal/Magento/Framework/Mview/ActionFactory.php
index 77b0c89c8cc39..f4fd28bb12693 100644
--- a/lib/internal/Magento/Framework/Mview/ActionFactory.php
+++ b/lib/internal/Magento/Framework/Mview/ActionFactory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Mview;
class ActionFactory
@@ -34,7 +32,9 @@ public function get($className)
{
$action = $this->objectManager->get($className);
if (!$action instanceof ActionInterface) {
- throw new \InvalidArgumentException($className . ' doesn\'t implement \Magento\Framework\Mview\ActionInterface');
+ throw new \InvalidArgumentException(
+ $className . ' doesn\'t implement \Magento\Framework\Mview\ActionInterface'
+ );
}
return $action;
diff --git a/lib/internal/Magento/Framework/Mview/Test/Unit/Config/Data/ProxyTest.php b/lib/internal/Magento/Framework/Mview/Test/Unit/Config/Data/ProxyTest.php
index 34ebdcca3f136..2baa1b733aa3e 100644
--- a/lib/internal/Magento/Framework/Mview/Test/Unit/Config/Data/ProxyTest.php
+++ b/lib/internal/Magento/Framework/Mview/Test/Unit/Config/Data/ProxyTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Mview\Test\Unit\Config\Data;
use \Magento\Framework\Mview\Config\Data\Proxy;
diff --git a/lib/internal/Magento/Framework/Mview/Test/Unit/ConfigTest.php b/lib/internal/Magento/Framework/Mview/Test/Unit/ConfigTest.php
index 52925e4a5a0e2..1dd5627d7d422 100644
--- a/lib/internal/Magento/Framework/Mview/Test/Unit/ConfigTest.php
+++ b/lib/internal/Magento/Framework/Mview/Test/Unit/ConfigTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Mview\Test\Unit;
use \Magento\Framework\Mview\Config;
@@ -24,7 +22,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
- $this->dataMock = $this->getMock(
+ $this->dataMock = $this->getMock(
\Magento\Framework\Mview\Config\Data::class, [], [], '', false
);
$this->model = new Config(
diff --git a/lib/internal/Magento/Framework/Mview/Test/Unit/View/CollectionTest.php b/lib/internal/Magento/Framework/Mview/Test/Unit/View/CollectionTest.php
index d92241871423e..231da97292922 100644
--- a/lib/internal/Magento/Framework/Mview/Test/Unit/View/CollectionTest.php
+++ b/lib/internal/Magento/Framework/Mview/Test/Unit/View/CollectionTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Mview\Test\Unit\View;
class CollectionTest extends \PHPUnit_Framework_TestCase
diff --git a/lib/internal/Magento/Framework/Mview/Test/Unit/View/SubscriptionFactoryTest.php b/lib/internal/Magento/Framework/Mview/Test/Unit/View/SubscriptionFactoryTest.php
index 79d8e8d419e93..f27efd62b7321 100644
--- a/lib/internal/Magento/Framework/Mview/Test/Unit/View/SubscriptionFactoryTest.php
+++ b/lib/internal/Magento/Framework/Mview/Test/Unit/View/SubscriptionFactoryTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Mview\Test\Unit\View;
use \Magento\Framework\Mview\View\SubscriptionFactory;
diff --git a/lib/internal/Magento/Framework/Mview/Test/Unit/View/SubscriptionTest.php b/lib/internal/Magento/Framework/Mview/Test/Unit/View/SubscriptionTest.php
index 2cbf5da0bfbbb..8085e73a7d0c2 100644
--- a/lib/internal/Magento/Framework/Mview/Test/Unit/View/SubscriptionTest.php
+++ b/lib/internal/Magento/Framework/Mview/Test/Unit/View/SubscriptionTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Mview\Test\Unit\View;
use \Magento\Framework\Mview\View\Subscription;
@@ -39,7 +37,14 @@ class SubscriptionTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
- $this->connectionMock = $this->getMock(\Magento\Framework\DB\Adapter\Pdo\Mysql::class, [], [], '', false);
+ $this->connectionMock = $this->getMock(
+ \Magento\Framework\DB\Adapter\Pdo\Mysql::class,
+ [],
+ [],
+ '',
+ false
+ );
+
$this->resourceMock = $this->getMock(
\Magento\Framework\App\ResourceConnection::class,
[],
diff --git a/lib/internal/Magento/Framework/Mview/View.php b/lib/internal/Magento/Framework/Mview/View.php
index 16d88767e508c..90d85947e8f5b 100644
--- a/lib/internal/Magento/Framework/Mview/View.php
+++ b/lib/internal/Magento/Framework/Mview/View.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Mview;
use Magento\Framework\Mview\View\ChangelogTableNotExistsException;
diff --git a/lib/internal/Magento/Framework/Mview/View/Subscription.php b/lib/internal/Magento/Framework/Mview/View/Subscription.php
index 7dd440ae9a4aa..cac109d427dd9 100644
--- a/lib/internal/Magento/Framework/Mview/View/Subscription.php
+++ b/lib/internal/Magento/Framework/Mview/View/Subscription.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Mview\View;
use Magento\Framework\App\ResourceConnection;
@@ -154,7 +152,9 @@ public function remove()
protected function getLinkedViews()
{
if (!$this->linkedViews) {
- $viewList = $this->viewCollection->getViewsByStateMode(\Magento\Framework\Mview\View\StateInterface::MODE_ENABLED);
+ $viewList = $this->viewCollection->getViewsByStateMode(
+ \Magento\Framework\Mview\View\StateInterface::MODE_ENABLED
+ );
foreach ($viewList as $view) {
/** @var \Magento\Framework\Mview\ViewInterface $view */
diff --git a/lib/internal/Magento/Framework/ObjectManager/Code/Generator/Persistor.php b/lib/internal/Magento/Framework/ObjectManager/Code/Generator/Persistor.php
index e1ac605e802ff..62043e1389733 100644
--- a/lib/internal/Magento/Framework/ObjectManager/Code/Generator/Persistor.php
+++ b/lib/internal/Magento/Framework/ObjectManager/Code/Generator/Persistor.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\ObjectManager\Code\Generator;
/**
diff --git a/lib/internal/Magento/Framework/ObjectManager/Code/Generator/Repository.php b/lib/internal/Magento/Framework/ObjectManager/Code/Generator/Repository.php
index 0c825a5ed5ac5..9aa3123b7db73 100644
--- a/lib/internal/Magento/Framework/ObjectManager/Code/Generator/Repository.php
+++ b/lib/internal/Magento/Framework/ObjectManager/Code/Generator/Repository.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\ObjectManager\Code\Generator;
use Magento\Framework\Api\ExtensionAttribute\JoinProcessorInterface;
diff --git a/lib/internal/Magento/Framework/ObjectManager/DefinitionFactory.php b/lib/internal/Magento/Framework/ObjectManager/DefinitionFactory.php
index 40959aa196694..af324937ccba5 100644
--- a/lib/internal/Magento/Framework/ObjectManager/DefinitionFactory.php
+++ b/lib/internal/Magento/Framework/ObjectManager/DefinitionFactory.php
@@ -7,8 +7,6 @@
*
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\ObjectManager;
use Magento\Framework\Api\Code\Generator\Mapper as MapperGenerator;
@@ -78,8 +76,12 @@ class DefinitionFactory
* @param string $generationDir
* @param string $definitionFormat
*/
- public function __construct(DriverInterface $filesystemDriver, $definitionDir, $generationDir, $definitionFormat)
- {
+ public function __construct(
+ DriverInterface $filesystemDriver,
+ $definitionDir,
+ $generationDir,
+ $definitionFormat
+ ) {
$this->_filesystemDriver = $filesystemDriver;
$this->_definitionDir = $definitionDir;
$this->_generationDir = $generationDir;
diff --git a/lib/internal/Magento/Framework/ObjectManager/Test/Unit/Config/Reader/_files/ConfigDomMock.php b/lib/internal/Magento/Framework/ObjectManager/Test/Unit/Config/Reader/_files/ConfigDomMock.php
index 265367641e796..9fed71539a650 100644
--- a/lib/internal/Magento/Framework/ObjectManager/Test/Unit/Config/Reader/_files/ConfigDomMock.php
+++ b/lib/internal/Magento/Framework/ObjectManager/Test/Unit/Config/Reader/_files/ConfigDomMock.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
class ConfigDomMock extends \PHPUnit_Framework_TestCase
{
/**
@@ -15,8 +13,13 @@ class ConfigDomMock extends \PHPUnit_Framework_TestCase
* @param $perFileSchema
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
- public function __construct($initialContents, $validationState, $idAttributes, $typeAttribute, $perFileSchema)
- {
+ public function __construct(
+ $initialContents,
+ $validationState,
+ $idAttributes,
+ $typeAttribute,
+ $perFileSchema
+ ) {
$this->assertEquals('first content item', $initialContents);
$this->assertEquals('xsi:type', $typeAttribute);
}
diff --git a/lib/internal/Magento/Framework/ObjectManager/Test/Unit/Relations/RuntimeTest.php b/lib/internal/Magento/Framework/ObjectManager/Test/Unit/Relations/RuntimeTest.php
index cb274f845b668..af59e9fbccdd3 100644
--- a/lib/internal/Magento/Framework/ObjectManager/Test/Unit/Relations/RuntimeTest.php
+++ b/lib/internal/Magento/Framework/ObjectManager/Test/Unit/Relations/RuntimeTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\ObjectManager\Test\Unit\Relations;
require_once __DIR__ . '/../_files/Child.php';
diff --git a/lib/internal/Magento/Framework/Phrase/Test/Unit/Renderer/CompositeTest.php b/lib/internal/Magento/Framework/Phrase/Test/Unit/Renderer/CompositeTest.php
index cb453ef2cd4c5..aeb586271a207 100644
--- a/lib/internal/Magento/Framework/Phrase/Test/Unit/Renderer/CompositeTest.php
+++ b/lib/internal/Magento/Framework/Phrase/Test/Unit/Renderer/CompositeTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Phrase\Test\Unit\Renderer;
use \Magento\Framework\Phrase\Renderer\Composite;
diff --git a/lib/internal/Magento/Framework/Pricing/Render/RendererPool.php b/lib/internal/Magento/Framework/Pricing/Render/RendererPool.php
index 8f3c117baa722..84ce0084e6a1a 100644
--- a/lib/internal/Magento/Framework/Pricing/Render/RendererPool.php
+++ b/lib/internal/Magento/Framework/Pricing/Render/RendererPool.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Pricing\Render;
use Magento\Framework\Pricing\Amount\AmountInterface;
diff --git a/lib/internal/Magento/Framework/Profiler/Driver/Factory.php b/lib/internal/Magento/Framework/Profiler/Driver/Factory.php
index 5975f60f41ddb..392cecad548e5 100644
--- a/lib/internal/Magento/Framework/Profiler/Driver/Factory.php
+++ b/lib/internal/Magento/Framework/Profiler/Driver/Factory.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Profiler\Driver;
use Magento\Framework\Profiler\DriverInterface;
@@ -65,7 +63,10 @@ public function create(array $config = null)
$driver = new $class($config);
if (!$driver instanceof DriverInterface) {
throw new \InvalidArgumentException(
- sprintf("Driver class \"%s\" must implement \Magento\Framework\Profiler\DriverInterface.", get_class($driver))
+ sprintf(
+ "Driver class \"%s\" must implement \Magento\Framework\Profiler\DriverInterface.",
+ get_class($driver)
+ )
);
}
return $driver;
diff --git a/lib/internal/Magento/Framework/Session/Test/Unit/ConfigTest.php b/lib/internal/Magento/Framework/Session/Test/Unit/ConfigTest.php
index 1df7cfa69ca83..c8ddd288db2b6 100644
--- a/lib/internal/Magento/Framework/Session/Test/Unit/ConfigTest.php
+++ b/lib/internal/Magento/Framework/Session/Test/Unit/ConfigTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Test class for \Magento\Framework\Session\Config
*/
diff --git a/lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php b/lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php
index b5049edd721c7..f3b521a6084d3 100644
--- a/lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php
+++ b/lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Stdlib\DateTime;
/**
diff --git a/lib/internal/Magento/Framework/Stdlib/Test/Unit/Cookie/CookieScopeTest.php b/lib/internal/Magento/Framework/Stdlib/Test/Unit/Cookie/CookieScopeTest.php
index 28dcd4447b37e..a903fccc9f84b 100644
--- a/lib/internal/Magento/Framework/Stdlib/Test/Unit/Cookie/CookieScopeTest.php
+++ b/lib/internal/Magento/Framework/Stdlib/Test/Unit/Cookie/CookieScopeTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Stdlib\Test\Unit\Cookie;
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
@@ -297,7 +295,7 @@ protected function createCookieScope($params = [])
*/
public function createSensitiveMetadata($metadata = [])
{
- return $this->objectManager->getObject(
+ return $this->objectManager->getObject(
\Magento\Framework\Stdlib\Cookie\SensitiveCookieMetadata::class,
['metadata' => $metadata, 'request' => $this->requestMock]
);
@@ -311,7 +309,7 @@ public function createSensitiveMetadata($metadata = [])
*/
public function createPublicMetadata($metadata = [])
{
- return $this->objectManager->getObject(
+ return $this->objectManager->getObject(
\Magento\Framework\Stdlib\Cookie\PublicCookieMetadata::class,
['metadata' => $metadata]
);
@@ -325,7 +323,7 @@ public function createPublicMetadata($metadata = [])
*/
public function createCookieMetadata($metadata = [])
{
- return $this->objectManager->getObject(
+ return $this->objectManager->getObject(
\Magento\Framework\Stdlib\Cookie\CookieMetadata::class,
['metadata' => $metadata]
);
diff --git a/lib/internal/Magento/Framework/Stdlib/Test/Unit/Cookie/PhpCookieManagerTest.php b/lib/internal/Magento/Framework/Stdlib/Test/Unit/Cookie/PhpCookieManagerTest.php
index ddb3214705c18..3c5a2ba168d1b 100644
--- a/lib/internal/Magento/Framework/Stdlib/Test/Unit/Cookie/PhpCookieManagerTest.php
+++ b/lib/internal/Magento/Framework/Stdlib/Test/Unit/Cookie/PhpCookieManagerTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
// @codingStandardsIgnoreStart
namespace {
$mockTranslateSetCookie = false;
diff --git a/lib/internal/Magento/Framework/Test/Unit/ShellTest.php b/lib/internal/Magento/Framework/Test/Unit/ShellTest.php
index d61d2f28829c7..604fa975c62a8 100644
--- a/lib/internal/Magento/Framework/Test/Unit/ShellTest.php
+++ b/lib/internal/Magento/Framework/Test/Unit/ShellTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Test\Unit;
class ShellTest extends \PHPUnit_Framework_TestCase
@@ -54,7 +52,10 @@ protected function _testExecuteCommand(\Magento\Framework\Shell $shell, $command
public function testExecute($command, $commandArgs, $expectedResult)
{
$this->_testExecuteCommand(
- new \Magento\Framework\Shell($this->commandRenderer, $this->logger), $command, $commandArgs, $expectedResult
+ new \Magento\Framework\Shell($this->commandRenderer, $this->logger),
+ $command,
+ $commandArgs,
+ $expectedResult
);
}
diff --git a/lib/internal/Magento/Framework/Test/Unit/UrlTest.php b/lib/internal/Magento/Framework/Test/Unit/UrlTest.php
index 36fce179395b5..9eb8c1c339ee5 100644
--- a/lib/internal/Magento/Framework/Test/Unit/UrlTest.php
+++ b/lib/internal/Magento/Framework/Test/Unit/UrlTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Test\Unit;
/**
diff --git a/lib/internal/Magento/Framework/Test/Unit/ValidatorFactoryTest.php b/lib/internal/Magento/Framework/Test/Unit/ValidatorFactoryTest.php
index 2c8dca01988e7..f82ceedb8e45f 100644
--- a/lib/internal/Magento/Framework/Test/Unit/ValidatorFactoryTest.php
+++ b/lib/internal/Magento/Framework/Test/Unit/ValidatorFactoryTest.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Test\Unit;
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
@@ -24,7 +22,7 @@ protected function setUp()
{
$objectManager = new ObjectManager($this);
$this->objectManagerMock = $this->getMock(\Magento\Framework\ObjectManagerInterface::class);
- $this->model = $objectManager->getObject(
+ $this->model = $objectManager->getObject(
\Magento\Framework\ValidatorFactory::class,
['objectManager' => $this->objectManagerMock]
);
diff --git a/lib/internal/Magento/Framework/Translate/Adapter.php b/lib/internal/Magento/Framework/Translate/Adapter.php
index a529cb77695fe..b883f756165aa 100644
--- a/lib/internal/Magento/Framework/Translate/Adapter.php
+++ b/lib/internal/Magento/Framework/Translate/Adapter.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Magento translate adapter
*/
diff --git a/lib/internal/Magento/Framework/Translate/AdapterInterface.php b/lib/internal/Magento/Framework/Translate/AdapterInterface.php
index f29f4c77565fa..fe7bbf39521b2 100644
--- a/lib/internal/Magento/Framework/Translate/AdapterInterface.php
+++ b/lib/internal/Magento/Framework/Translate/AdapterInterface.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Translate;
/**
diff --git a/lib/internal/Magento/Framework/Translate/Inline.php b/lib/internal/Magento/Framework/Translate/Inline.php
index 6ba3cb9dcb330..d8e2bf9e4a655 100644
--- a/lib/internal/Magento/Framework/Translate/Inline.php
+++ b/lib/internal/Magento/Framework/Translate/Inline.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Translate;
class Inline implements \Magento\Framework\Translate\InlineInterface
@@ -242,7 +240,11 @@ protected function stripInlineTranslations(&$body)
}
} else {
if (is_string($body)) {
- $body = preg_replace('#' . \Magento\Framework\Translate\Inline\ParserInterface::REGEXP_TOKEN . '#', '$1', $body);
+ $body = preg_replace(
+ '#' . \Magento\Framework\Translate\Inline\ParserInterface::REGEXP_TOKEN . '#',
+ '$1',
+ $body
+ );
}
}
return $this;
diff --git a/lib/internal/Magento/Framework/Url.php b/lib/internal/Magento/Framework/Url.php
index 7361fdb336dd8..6c9420536c490 100644
--- a/lib/internal/Magento/Framework/Url.php
+++ b/lib/internal/Magento/Framework/Url.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework;
/**
@@ -1068,7 +1066,10 @@ public function useSessionIdForUrl($secure = false)
$key = 'use_session_id_for_url_' . (int)$secure;
if (is_null($this->getData($key))) {
$httpHost = $this->_request->getHttpHost();
- $urlHost = parse_url($this->_getScope()->getBaseUrl(UrlInterface::URL_TYPE_LINK, $secure), PHP_URL_HOST);
+ $urlHost = parse_url(
+ $this->_getScope()->getBaseUrl(UrlInterface::URL_TYPE_LINK, $secure),
+ PHP_URL_HOST
+ );
if ($httpHost != $urlHost) {
$this->setData($key, true);
@@ -1090,7 +1091,10 @@ public function isOwnOriginUrl()
$referer = parse_url($this->_request->getServer('HTTP_REFERER'), PHP_URL_HOST);
foreach ($this->_scopeResolver->getScopes() as $scope) {
$scopeDomains[] = parse_url($scope->getBaseUrl(), PHP_URL_HOST);
- $scopeDomains[] = parse_url($scope->getBaseUrl(UrlInterface::URL_TYPE_LINK, true), PHP_URL_HOST);
+ $scopeDomains[] = parse_url(
+ $scope->getBaseUrl(UrlInterface::URL_TYPE_LINK, true),
+ PHP_URL_HOST
+ );
}
$scopeDomains = array_unique($scopeDomains);
if (empty($referer) || in_array($referer, $scopeDomains)) {
@@ -1163,7 +1167,7 @@ protected function getRouteParamsResolver()
private function getUrlModifier()
{
if ($this->urlModifier === null) {
- $this->urlModifier = \Magento\Framework\App\ObjectManager::getInstance()->get(
+ $this->urlModifier = \Magento\Framework\App\ObjectManager::getInstance()->get(
\Magento\Framework\Url\ModifierInterface::class
);
}
diff --git a/lib/internal/Magento/Framework/UrlFactory.php b/lib/internal/Magento/Framework/UrlFactory.php
index ac7876a66a757..a419ccb576e75 100644
--- a/lib/internal/Magento/Framework/UrlFactory.php
+++ b/lib/internal/Magento/Framework/UrlFactory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework;
class UrlFactory
@@ -24,8 +22,10 @@ class UrlFactory
* @param ObjectManagerInterface $objectManager
* @param string $instanceName
*/
- public function __construct(ObjectManagerInterface $objectManager, $instanceName = UrlInterface::class)
- {
+ public function __construct(
+ ObjectManagerInterface $objectManager,
+ $instanceName = UrlInterface::class
+ ) {
$this->_objectManager = $objectManager;
$this->_instanceName = $instanceName;
}
diff --git a/lib/internal/Magento/Framework/Validator/Builder.php b/lib/internal/Magento/Framework/Validator/Builder.php
index e31a2c86d9238..602681c04d762 100644
--- a/lib/internal/Magento/Framework/Validator/Builder.php
+++ b/lib/internal/Magento/Framework/Validator/Builder.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Validator;
use Magento\Framework\Validator\Constraint\OptionInterface;
@@ -257,7 +255,11 @@ protected function _createConstraint(array $data)
}
if (\Magento\Framework\Validator\Config::CONSTRAINT_TYPE_PROPERTY == $data['type']) {
- $result = new \Magento\Framework\Validator\Constraint\Property($validator, $data['property'], $data['alias']);
+ $result = new \Magento\Framework\Validator\Constraint\Property(
+ $validator,
+ $data['property'],
+ ['alias']
+ );
} else {
$result = $this->_constraintFactory->create(['validator' => $validator, 'alias' => $data['alias']]);
}
@@ -286,7 +288,10 @@ protected function _createConstraintValidator(array $data)
// Check validator type
if (!$validator instanceof \Magento\Framework\Validator\ValidatorInterface) {
throw new \InvalidArgumentException(
- sprintf('Constraint class "%s" must implement \Magento\Framework\Validator\ValidatorInterface', $data['class'])
+ sprintf(
+ 'Constraint class "%s" must implement \Magento\Framework\Validator\ValidatorInterface',
+ $data['class']
+ )
);
}
@@ -300,8 +305,10 @@ protected function _createConstraintValidator(array $data)
* @param array $options
* @return void
*/
- protected function _configureConstraintValidator(\Magento\Framework\Validator\ValidatorInterface $validator, array $options)
- {
+ protected function _configureConstraintValidator(
+ \Magento\Framework\Validator\ValidatorInterface $validator,
+ array $options
+ ) {
// Call all validator methods according to configuration
if (isset($options['methods'])) {
foreach ($options['methods'] as $methodData) {
diff --git a/lib/internal/Magento/Framework/Validator/Constraint/Property.php b/lib/internal/Magento/Framework/Validator/Constraint/Property.php
index c40e3c1237e64..dc96b9bc3899c 100644
--- a/lib/internal/Magento/Framework/Validator/Constraint/Property.php
+++ b/lib/internal/Magento/Framework/Validator/Constraint/Property.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Validator\Constraint;
class Property extends \Magento\Framework\Validator\Constraint
diff --git a/lib/internal/Magento/Framework/Validator/ConstraintFactory.php b/lib/internal/Magento/Framework/Validator/ConstraintFactory.php
index 1077f21bfa2bd..813961eb640ae 100644
--- a/lib/internal/Magento/Framework/Validator/ConstraintFactory.php
+++ b/lib/internal/Magento/Framework/Validator/ConstraintFactory.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Factory class for \Magento\Framework\Validator\Constraint
*/
@@ -33,8 +31,10 @@ class ConstraintFactory
* @param \Magento\Framework\ObjectManagerInterface $objectManager
* @param string $instanceName
*/
- public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName = \Magento\Framework\Validator\Constraint::class)
- {
+ public function __construct(
+ \Magento\Framework\ObjectManagerInterface $objectManager,
+ $instanceName = \Magento\Framework\Validator\Constraint::class
+ ) {
$this->_objectManager = $objectManager;
$this->_instanceName = $instanceName;
}
diff --git a/lib/internal/Magento/Framework/Validator/Factory.php b/lib/internal/Magento/Framework/Validator/Factory.php
index d2e3837d13138..c79e4e9bedf3a 100644
--- a/lib/internal/Magento/Framework/Validator/Factory.php
+++ b/lib/internal/Magento/Framework/Validator/Factory.php
@@ -6,8 +6,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Validator;
use Magento\Framework\Cache\FrontendInterface;
@@ -109,7 +107,7 @@ public function getValidatorConfig()
{
$this->_initializeConfigList();
$this->_initializeDefaultTranslator();
- return $this->_objectManager->create(
+ return $this->_objectManager->create(
\Magento\Framework\Validator\Config::class, ['configFiles' => $this->_configFiles]);
}
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Asset/NotationResolver/ModuleTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Asset/NotationResolver/ModuleTest.php
index 0ba45a729d916..9908b3806bfb7 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/Asset/NotationResolver/ModuleTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/Asset/NotationResolver/ModuleTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit\Asset\NotationResolver;
class ModuleTest extends \PHPUnit_Framework_TestCase
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Asset/SourceTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Asset/SourceTest.php
index 2a704650aa9dd..0b565a96d3c65 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/Asset/SourceTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/Asset/SourceTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit\Asset;
use Magento\Framework\App\Filesystem\DirectoryList;
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/BlockPoolTest.php b/lib/internal/Magento/Framework/View/Test/Unit/BlockPoolTest.php
index b93e9b7a0e045..9f058d325c6a7 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/BlockPoolTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/BlockPoolTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit;
use \Magento\Framework\View\BlockPool;
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/DataSourcePoolTest.php b/lib/internal/Magento/Framework/View/Test/Unit/DataSourcePoolTest.php
index ca74870a715ab..1ed3d501dc1af 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/DataSourcePoolTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/DataSourcePoolTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit;
use \Magento\Framework\View\DataSourcePool;
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Design/FileResolution/Fallback/Resolver/AlternativeTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Design/FileResolution/Fallback/Resolver/AlternativeTest.php
index 98946634477cb..1c2b51bc71fcc 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/Design/FileResolution/Fallback/Resolver/AlternativeTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/Design/FileResolution/Fallback/Resolver/AlternativeTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit\Design\FileResolution\Fallback\Resolver;
use \Magento\Framework\View\Design\FileResolution\Fallback\Resolver\Alternative;
@@ -58,8 +56,11 @@ protected function setUp()
*/
public function testConstructorException(array $alternativeExtensions)
{
- $this->setExpectedException('\InvalidArgumentException', "\$alternativeExtensions must be an array with format:"
- . " array('ext1' => array('ext1', 'ext2'), 'ext3' => array(...)]");
+ $this->setExpectedException(
+ '\InvalidArgumentException',
+ "\$alternativeExtensions must be an array with format:"
+ . " array('ext1' => array('ext1', 'ext2'), 'ext3' => array(...)]"
+ );
$readFactory = $this->getMock(\Magento\Framework\Filesystem\Directory\ReadFactory::class, [], [], '', false);
$rulePool = $this->getMock(\Magento\Framework\View\Design\Fallback\RulePool::class, [], [], '', false);
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Design/Theme/ImageTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Design/Theme/ImageTest.php
index 82bd042feb93e..bcb9144adf2b8 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/Design/Theme/ImageTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/Design/Theme/ImageTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Test theme image model
*/
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/DesignLoaderTest.php b/lib/internal/Magento/Framework/View/Test/Unit/DesignLoaderTest.php
index 58331e32deda4..7662eb9eca50f 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/DesignLoaderTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/DesignLoaderTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit;
class DesignLoaderTest extends \PHPUnit_Framework_TestCase
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Element/AbstractBlockTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Element/AbstractBlockTest.php
index 68cb485f571dd..431ca76fc8f15 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/Element/AbstractBlockTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/Element/AbstractBlockTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit\Element;
use Magento\Framework\View\Element\AbstractBlock;
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/File/Collector/Decorator/ModuleDependencyTest.php b/lib/internal/Magento/Framework/View/Test/Unit/File/Collector/Decorator/ModuleDependencyTest.php
index 38e585cce7928..aa2b32ec36c7f 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/File/Collector/Decorator/ModuleDependencyTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/File/Collector/Decorator/ModuleDependencyTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit\File\Collector\Decorator;
class ModuleDependencyTest extends \PHPUnit_Framework_TestCase
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/File/Collector/Decorator/ModuleOutputTest.php b/lib/internal/Magento/Framework/View/Test/Unit/File/Collector/Decorator/ModuleOutputTest.php
index 83be2ee7ac10e..713ad13660b9c 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/File/Collector/Decorator/ModuleOutputTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/File/Collector/Decorator/ModuleOutputTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit\File\Collector\Decorator;
class ModuleOutputTest extends \PHPUnit_Framework_TestCase
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/File/FileListTest.php b/lib/internal/Magento/Framework/View/Test/Unit/File/FileListTest.php
index 7cf14156d5656..4a251d7c55b1e 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/File/FileListTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/File/FileListTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit\File;
class FileListTest extends \PHPUnit_Framework_TestCase
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/FileSystemTest.php b/lib/internal/Magento/Framework/View/Test/Unit/FileSystemTest.php
index 7ab094d7b3f3f..09694d11298d6 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/FileSystemTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/FileSystemTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
/**
* Test for view filesystem model
*/
@@ -50,23 +48,23 @@ class FileSystemTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
- $this->_fileResolution = $this->getMock(
+ $this->_fileResolution = $this->getMock(
\Magento\Framework\View\Design\FileResolution\Fallback\File::class, [],
[], '', false
);
- $this->_templateFileResolution = $this->getMock(
+ $this->_templateFileResolution = $this->getMock(
\Magento\Framework\View\Design\FileResolution\Fallback\TemplateFile::class, [], [], '', false
);
- $this->_localeFileResolution = $this->getMock(
+ $this->_localeFileResolution = $this->getMock(
\Magento\Framework\View\Design\FileResolution\Fallback\LocaleFile::class, [], [], '', false
);
- $this->_staticFileResolution = $this->getMock(
+ $this->_staticFileResolution = $this->getMock(
\Magento\Framework\View\Design\FileResolution\Fallback\StaticFile::class, [], [], '', false
);
- $this->_emailTemplateFileResolution = $this->getMock(
+ $this->_emailTemplateFileResolution = $this->getMock(
\Magento\Framework\View\Design\FileResolution\Fallback\EmailTemplateFile::class, [], [], '', false
);
- $this->_assetRepo = $this->getMock(
+ $this->_assetRepo = $this->getMock(
\Magento\Framework\View\Asset\Repository::class,
['extractScope', 'updateDesignParams', 'createAsset'], [], '', false
);
@@ -85,7 +83,7 @@ public function testGetFilename()
{
$params = [
'area' => 'some_area',
- 'themeModel' => $this->getMock(
+ 'themeModel' => $this->getMock(
\Magento\Framework\View\Design\ThemeInterface::class, [], [], '', false, false
),
'module' => 'Some_Module', //It should be set in \Magento\Framework\View\Asset\Repository::extractScope
@@ -112,7 +110,7 @@ public function testGetTemplateFileName()
{
$params = [
'area' => 'some_area',
- 'themeModel' => $this->getMock(
+ 'themeModel' => $this->getMock(
\Magento\Framework\View\Design\ThemeInterface::class, [], [], '', false, false
),
'module' => 'Some_Module', //It should be set in \Magento\Framework\View\Asset\Repository::extractScope
@@ -139,7 +137,7 @@ public function testGetLocaleFileName()
{
$params = [
'area' => 'some_area',
- 'themeModel' => $this->getMock(
+ 'themeModel' => $this->getMock(
\Magento\Framework\View\Design\ThemeInterface::class,
[],
[],
@@ -165,7 +163,7 @@ public function testGetViewFile()
{
$params = [
'area' => 'some_area',
- 'themeModel' => $this->getMock(
+ 'themeModel' => $this->getMock(
\Magento\Framework\View\Design\ThemeInterface::class,
[],
[],
@@ -263,7 +261,7 @@ public function testGetEmailTemplateFile()
$locale = \Magento\Setup\Module\I18n\Locale::DEFAULT_SYSTEM_LOCALE;
$params = [
'area' => 'some_area',
- 'themeModel' => $this->getMock(
+ 'themeModel' => $this->getMock(
\Magento\Framework\View\Design\ThemeInterface::class, [], [], '', false, false
),
'module' => 'Some_Module',
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Layout/Reader/MoveTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Layout/Reader/MoveTest.php
index 34d8be322935b..04308256a00f5 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/Layout/Reader/MoveTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/Layout/Reader/MoveTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit\Layout\Reader;
use Magento\Framework\View\Layout\ScheduledStructure;
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Layout/XsdTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Layout/XsdTest.php
index 224727d9953c0..beccf1994bed8 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/Layout/XsdTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/Layout/XsdTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit\Layout;
class XsdTest extends \PHPUnit_Framework_TestCase
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/Result/LayoutTest.php b/lib/internal/Magento/Framework/View/Test/Unit/Result/LayoutTest.php
index ab97670dd6105..c382f8f54cdf8 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/Result/LayoutTest.php
+++ b/lib/internal/Magento/Framework/View/Test/Unit/Result/LayoutTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\View\Test\Unit\Result;
/**
@@ -52,7 +50,7 @@ protected function setUp()
$context->expects($this->any())->method('getEventManager')->will($this->returnValue($this->eventManager));
$this->resultLayout = (new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this))
- ->getObject(
+ ->getObject(
\Magento\Framework\View\Result\Layout::class,
['context' => $context, 'translateInline' => $this->translateInline]
);
diff --git a/lib/internal/Magento/Framework/View/Test/Unit/TemplateEngine/_files/simple.phtml b/lib/internal/Magento/Framework/View/Test/Unit/TemplateEngine/_files/simple.phtml
index 246ec95b2280e..7395ac755ef91 100644
--- a/lib/internal/Magento/Framework/View/Test/Unit/TemplateEngine/_files/simple.phtml
+++ b/lib/internal/Magento/Framework/View/Test/Unit/TemplateEngine/_files/simple.phtml
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
?>
testMethod();
diff --git a/lib/internal/Magento/Framework/Webapi/Test/Unit/ServiceInputProcessorTest.php b/lib/internal/Magento/Framework/Webapi/Test/Unit/ServiceInputProcessorTest.php
index 0ebb6d9be4f3d..b52f1cc849b4a 100644
--- a/lib/internal/Magento/Framework/Webapi/Test/Unit/ServiceInputProcessorTest.php
+++ b/lib/internal/Magento/Framework/Webapi/Test/Unit/ServiceInputProcessorTest.php
@@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/
-// @codingStandardsIgnoreFile
-
namespace Magento\Framework\Webapi\Test\Unit;
use Magento\Framework\Webapi\ServiceInputProcessor;