|
24 | 24 | */
|
25 | 25 | class Files
|
26 | 26 | {
|
27 |
| - /** |
28 |
| - * Include app code |
29 |
| - */ |
30 | 27 | const INCLUDE_APP_CODE = 1;
|
31 | 28 |
|
32 |
| - /** |
33 |
| - * Include tests |
34 |
| - */ |
35 | 29 | const INCLUDE_TESTS = 2;
|
36 | 30 |
|
37 |
| - /** |
38 |
| - * Include dev tools |
39 |
| - */ |
40 | 31 | const INCLUDE_DEV_TOOLS = 4;
|
41 | 32 |
|
42 |
| - /** |
43 |
| - * Include templates |
44 |
| - */ |
45 | 33 | const INCLUDE_TEMPLATES = 8;
|
46 | 34 |
|
47 |
| - /** |
48 |
| - * Include lib files |
49 |
| - */ |
50 | 35 | const INCLUDE_LIBS = 16;
|
51 | 36 |
|
52 |
| - /** |
53 |
| - * Include pub code |
54 |
| - */ |
55 | 37 | const INCLUDE_PUB_CODE = 32;
|
56 | 38 |
|
57 |
| - /** |
58 |
| - * Include non classes |
59 |
| - */ |
60 | 39 | const INCLUDE_NON_CLASSES = 64;
|
61 | 40 |
|
62 |
| - /** |
63 |
| - * Include setup |
64 |
| - */ |
65 | 41 | const INCLUDE_SETUP = 128;
|
66 | 42 |
|
67 | 43 | /**
|
@@ -397,6 +373,7 @@ public function getMainConfigFiles($asDataSet = true)
|
397 | 373 | $configXmlPaths = array_merge($globPaths, $configXmlPaths);
|
398 | 374 | $files = [];
|
399 | 375 | foreach ($configXmlPaths as $xmlPath) {
|
| 376 | + // phpcs:ignore Magento2.Performance.ForeachArrayMerge |
400 | 377 | $files = array_merge($files, glob($xmlPath, GLOB_NOSORT));
|
401 | 378 | }
|
402 | 379 | self::$_cache[$cacheKey] = $files;
|
@@ -679,6 +656,7 @@ private function collectModuleLayoutFiles(array $params, $location)
|
679 | 656 | }
|
680 | 657 | }
|
681 | 658 | } else {
|
| 659 | + // phpcs:ignore Magento2.Performance.ForeachArrayMerge |
682 | 660 | $files = array_merge($files, $moduleFiles);
|
683 | 661 | }
|
684 | 662 | }
|
@@ -713,8 +691,10 @@ private function collectThemeLayoutFiles(array $params, $location)
|
713 | 691 | );
|
714 | 692 |
|
715 | 693 | if ($params['with_metainfo']) {
|
| 694 | + // phpcs:ignore Magento2.Performance.ForeachArrayMerge |
716 | 695 | $files = array_merge($this->parseThemeFiles($themeFiles, $currentThemePath, $theme));
|
717 | 696 | } else {
|
| 697 | + // phpcs:ignore Magento2.Performance.ForeachArrayMerge |
718 | 698 | $files = array_merge($files, $themeFiles);
|
719 | 699 | }
|
720 | 700 | }
|
|
0 commit comments