@@ -130,8 +130,7 @@ protected function setUp(): void
130
130
131
131
public function testGetPlugin ()
132
132
{
133
- $ inheritPlugins = function ($ type )
134
- {
133
+ $ inheritPlugins = function ($ type ) {
135
134
$ inheritedItem = [
136
135
Item::class => [
137
136
'advanced_plugin ' => [
@@ -147,17 +146,12 @@ public function testGetPlugin()
147
146
$ processedItem = [
148
147
'Magento\Framework\Interception\Test\Unit\Custom\Module\Model\Item_getName___self ' => [
149
148
2 => 'advanced_plugin ' ,
150
- 4 => [
151
- 'advanced_plugin '
152
- ]
149
+ 4 => ['advanced_plugin ' ]
153
150
],
154
151
'Magento\Framework\Interception\Test\Unit\Custom\Module\Model\Item_getName_advanced_plugin ' => [
155
- 4 => [
156
- 'simple_plugin '
157
- ]
152
+ 4 => ['simple_plugin ' ]
158
153
]
159
154
];
160
-
161
155
$ inheritedItemContainer = [
162
156
ItemContainer::class => [
163
157
'simple_plugin ' => [
@@ -168,12 +162,9 @@ public function testGetPlugin()
168
162
];
169
163
$ processedItemContainer = [
170
164
'Magento\Framework\Interception\Test\Unit\Custom\Module\Model\ItemContainer_getName___self ' => [
171
- 4 => [
172
- 'simple_plugin '
173
- ]
165
+ 4 => ['simple_plugin ' ]
174
166
]
175
167
];
176
-
177
168
$ inheritedStartingBackslash = [
178
169
StartingBackslash::class => [
179
170
'simple_plugin ' => [
@@ -187,12 +178,10 @@ public function testGetPlugin()
187
178
$ this ->_inherited = $ inheritedItem ;
188
179
$ this ->_processed = $ processedItem ;
189
180
}
190
-
191
181
if ($ type === 'Magento\Framework\Interception\Test\Unit\Custom\Module\Model\ItemContainer ' ) {
192
182
$ this ->_inherited = array_merge ($ inheritedItem , $ inheritedItemContainer );
193
183
$ this ->_processed = array_merge ($ processedItem , $ processedItemContainer );
194
184
}
195
-
196
185
if ($ type === 'Magento\Framework\Interception\Test\Unit\Custom\Module\Model\StartingBackslash ' ) {
197
186
$ this ->_inherited = array_merge ($ inheritedItem , $ inheritedItemContainer , $ inheritedStartingBackslash );
198
187
$ this ->_processed = array_merge ($ processedItem , $ processedItemContainer );
@@ -203,14 +192,8 @@ public function testGetPlugin()
203
192
204
193
$ this ->configScopeMock ->method ('getCurrentScope ' )->willReturn ('backend ' );
205
194
$ this ->object ->getNext (Item::class, 'getName ' );
206
- $ this ->object ->getNext (
207
- ItemContainer::class,
208
- 'getName '
209
- );
210
- $ this ->object ->getNext (
211
- StartingBackslash::class,
212
- 'getName '
213
- );
195
+ $ this ->object ->getNext (ItemContainer::class, 'getName ' );
196
+ $ this ->object ->getNext (StartingBackslash::class, 'getName ' );
214
197
$ this ->assertEquals (
215
198
Simple::class,
216
199
$ this ->object ->getPlugin (
@@ -261,8 +244,7 @@ public function testGetPlugins(
261
244
$ this ->setScopePriorityScheme ($ scopePriorityScheme );
262
245
$ this ->configScopeMock ->method ('getCurrentScope ' )->willReturn ($ scopeCode );
263
246
264
- $ inheritPlugins = function ($ type )
265
- {
247
+ $ inheritPlugins = function ($ type ) {
266
248
$ inheritedItem = [
267
249
Item::class => [
268
250
'simple_plugin ' => [
@@ -327,8 +309,7 @@ public function testLoadScopedDataCached()
327
309
->with ('global|scope|interception ' )
328
310
->willReturn ($ serializedData );
329
311
330
- $ inheritPlugins = function ($ type )
331
- {
312
+ $ inheritPlugins = function ($ type ) {
332
313
$ inherited = [
333
314
0 => 'key ' ,
334
315
'Type ' => null
@@ -365,8 +346,7 @@ public function testLoadScopedDataGenerated()
365
346
->with ('global|scope|interception ' )
366
347
->willReturn ($ data );
367
348
368
- $ inheritPlugins = function ($ type )
369
- {
349
+ $ inheritPlugins = function ($ type ) {
370
350
$ inherited = [
371
351
0 => 'key ' ,
372
352
'Type ' => null
0 commit comments