File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
framework/Magento/TestFramework/Dependency
testsuite/Magento/Test/Integrity Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2013 Adobe
4+ * All Rights Reserved .
55 */
66declare (strict_types=1 );
77
@@ -178,11 +178,10 @@ private function getRoutesWhitelist(): array
178178 private function caseClassesAndIdentifiers ($ currentModule , $ file , &$ contents )
179179 {
180180 $ pattern = '~\b(?<class>(?<module>( '
181- . implode (
182- '[_ \\\\]| ' ,
183- Files::init ()->getNamespaces ()
184- )
185- . '(?<delimiter>[_ \\\\]))[a-zA-Z0-9]{2,}) '
181+ .'(?: '
182+ . implode ('| ' , Files::init ()->getNamespaces ())
183+ . ') '
184+ . '(?<delimiter>[_ \\\\]))[A-Z]{1,}[a-zA-Z0-9]{1,}) '
186185 . '(?<class_inside_module> \\4[a-zA-Z0-9_ \\\\]{2,})?)\b '
187186 . '(?:::(?<module_scoped_key>[A-Za-z0-9_/.]+)[ \'"])?~ ' ;
188187
Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2013 Adobe
4+ * All Rights Reserved .
55 */
66namespace Magento \Test \Integrity ;
77
@@ -967,7 +967,7 @@ protected static function _prepareMapLayoutBlocks()
967967 $ area = $ matches ['area ' ];
968968 self ::$ _mapLayoutBlocks [$ area ] = self ::$ _mapLayoutBlocks [$ area ] ?? [];
969969 }
970- if (preg_match ('/(?<namespace>[A-Z][a -z]+)[_\/ \\\\](?<module>[A-Z][a-zA-Z]+)/ ' , $ file , $ matches )) {
970+ if (preg_match ('/(?<namespace>[A-Z][A-Za -z]+)[_\/ \\\\](?<module>[A-Z][a-zA-Z]+)/ ' , $ file , $ matches )) {
971971 $ module = $ matches ['namespace ' ] . '\\' . $ matches ['module ' ];
972972 $ xml = simplexml_load_file ($ file );
973973 foreach ((array )$ xml ->xpath ('//container | //block ' ) as $ element ) {
You can’t perform that action at this time.
0 commit comments