<?php str_replace( array|string $search, array|string $replace, string|array $subject, int &$count = null): string|array
<?php protected function getAlternativeOptionTemplate() { return \str_replace('%s', "'%s'", parent::getAlternativeOptionTemplate()); } }
<?php protected function filterErrorMsg($error, array $itemInfo, array $errorInfo) { if ($itemInfo['name'] === 'php_errormsg') { $error = \str_replace('Global', 'The', $error); } return $error; }
<?php $class = \get_class($this); $parts = \explode('\\', $class); $sniff = \array_pop($parts); $sniff = \str_replace('UnitTest', '', $sniff); $category = \array_pop($parts); return self::STANDARD_NAME . '.' . $category . '.' . $sniff; }
<?php { if (\strpos($pathToFile, 'UnitTest.php') !== false) { $pathToFile = \str_replace('UnitTest.php', 'UnitTest.inc', $pathToFile); } $pathToFile = \realpath($pathToFile);