23 $param = sprintf(
'%s" value="%s', $key, $_ENV[$key]);
25 $lastSymbol = substr($param, -1);
26 if ($lastSymbol !=
'/') {
27 $_ENV[$key] = $_ENV[$key] .
'/';
28 $fileContents = str_replace($param, $param .
'/', $fileContents);
30 $message[
'info'][] =
"Slash at the end of url was added in the config file.";
44 $pattern =
'/(backend_url.*?=")(.+)"/';
48 return [
'info' => [
'"app_backend_url" has been updated in the phpunit.xml.']];
62 $messages[
'error'][] =
63 'Instance should have domain name with at least one subdomain to function correctly. Examples:' 64 . PHP_EOL .
"\tValid: http://magento.dev/, https://mage.local/." 65 . PHP_EOL .
"\tInvalid: http://localhost/, https://magento/.";
resolveIndexPhpProblem($url)