Skip to content
Snippets Groups Projects
Commit 3894d310 authored by Olga Kopylova's avatar Olga Kopylova
Browse files

MAGETWO-58691: Refactor Module_Quote, Module_Sales

- simplified regexp for the static test
parent 11daa344
No related merge requests found
......@@ -159,10 +159,6 @@ class UnsecureFunctionsUsageTest extends \PHPUnit_Framework_TestCase
if (empty($functions)) {
return '';
}
$regexArray = [];
foreach ($functions as $function) {
$regexArray[] = '(?<!function |[^\s])\b' . $function . '\b\(';
}
return '/' . implode('|', $regexArray) . '/i';
return '/(?<!function |[^\s])\b(' . join('|', $functions) . ')\s*\(/i';
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment