<?php str_replace( array|string $search, array|string $replace, string|array $subject, int &$count = null): string|array
<?php private function renderLineIssue(Issue $issue): void { $relativePath = str_replace((string) getcwd(), '.', $issue->file); $lines = file($issue->file); $lineContent = $lines[$issue->line - 1] ?? '';
<?php private function renderLineLessIssue(Issue $issue): void { $relativePath = str_replace((string) getcwd(), '.', $issue->file); $column = $this->getIssueColumn($issue, $relativePath); $this->lastColumn[$issue->file][$issue->line][$issue->misspelling->word] = $column;
<?php ); return array_map( fn (string $path): string => ltrim(str_replace((string) realpath($in), '', $path), '/'), $paths, ); }
<?php $input = ltrim($input, '_'); $input = str_replace(['_', '-'], ' ', $input); $input = (string) preg_replace('/([a-z])([A-Z])/', '$1 $2', $input);
<?php $output = $process->getOutput(); preg_match('/Duration: ([0-9.]+)s/', $output, $matches); $output = str_replace($matches[1], '0.00', $output); expect($exitCode)->toBe(1) ->and($output)->toMatchSnapshot();
<?php $output = $process->getOutput(); preg_match('/Duration: ([0-9.]+)s/', $output, $matches); $output = str_replace($matches[1], '0.00', $output); expect($exitCode)->toBe(0) ->and($output)->toMatchSnapshot();