@@ -123,7 +123,6 @@ public function resetAfterRequestClassDataProvider()
123
123
* @magentoDbIsolation disabled
124
124
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
125
125
* @SuppressWarnings(PHPMD.NPathComplexity)
126
- * @SuppressWarnings(PHPCS.Magento2.Files.LineLength.MaxExceeded)
127
126
*/
128
127
public function testResetAfterRequestClasses (string $ className )
129
128
{
@@ -168,9 +167,15 @@ public function testResetAfterRequestClasses(string $className)
168
167
}
169
168
try {
170
169
/** @var ResetAfterRequestInterface $object */
171
- $ beforeProperties = $ this ->collector ->getPropertiesFromObject ($ object , CompareType::COMPARE_BETWEEN_REQUESTS );
170
+ $ beforeProperties = $ this ->collector ->getPropertiesFromObject (
171
+ $ object ,
172
+ CompareType::COMPARE_BETWEEN_REQUESTS
173
+ );
172
174
$ object ->_resetState ();
173
- $ afterProperties = $ this ->collector ->getPropertiesFromObject ($ object , CompareType::COMPARE_BETWEEN_REQUESTS );
175
+ $ afterProperties = $ this ->collector ->getPropertiesFromObject (
176
+ $ object ,
177
+ CompareType::COMPARE_BETWEEN_REQUESTS
178
+ );
174
179
$ differences = [];
175
180
foreach ($ afterProperties as $ propertyName => $ propertyValue ) {
176
181
if ($ propertyValue instanceof ObjectManagerInterface) {
@@ -194,7 +199,10 @@ public function testResetAfterRequestClasses(string $className)
194
199
// TODO: Can we convert _regionModels to member variable,
195
200
// or move to a dependency injected service class instead?
196
201
}
197
- $ result = $ this ->comparator ->checkValues ($ beforeProperties [$ propertyName ] ?? null , $ propertyValue , 3 );
202
+ $ result = $ this ->comparator ->checkValues (
203
+ $ beforeProperties [$ propertyName ] ?? null ,
204
+ $ propertyValue , 3
205
+ );
198
206
if ($ result ) {
199
207
$ differences [$ propertyName ] = $ result ;
200
208
}
0 commit comments