File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
app/code/Magento/BundleImportExport/Model/Import/Product/Type
dev/tests/integration/testsuite/Magento/Framework/ObjectManager Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
6
7
7
8
namespace Magento \BundleImportExport \Model \Import \Product \Type ;
8
9
Original file line number Diff line number Diff line change 15
15
/**
16
16
* Test that verifies that resetState method for classes cause the state to be the same as it was initially constructed
17
17
* @magentoDbIsolation disabled
18
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
19
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
20
+ * @SuppressWarnings(PHPMD.NPathComplexity)
18
21
*/
19
22
class ResetAfterRequestTest extends \PHPUnit \Framework \TestCase
20
23
{
@@ -169,8 +172,7 @@ public function testResetAfterRequestClasses(string $className)
169
172
continue ; // We can skip _select because we load a fresh new Select after reset
170
173
}
171
174
if ('_regionModels ' == $ propertyName
172
- && is_a ($ className , \Magento \Customer \Model \Address \AbstractAddress::class, true ))
173
- {
175
+ && is_a ($ className , \Magento \Customer \Model \Address \AbstractAddress::class, true )) {
174
176
continue ; // AbstractAddress has static property _regionModels, so it would fail this test.
175
177
// TODO: Can we convert _regionModels to member variable,
176
178
// or move to a dependency injected service class instead?
You can’t perform that action at this time.
0 commit comments