mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 02:52:12 +02:00
chore: style
This commit is contained in:
@ -1326,7 +1326,7 @@ final class Graph
|
||||
* test IDs are no longer present (e.g. the test method was removed or renamed).
|
||||
*
|
||||
* @param array<int, string> $touchedFiles Absolute or project-relative paths.
|
||||
* @param array<int, string> $keepTestIds Test IDs that produced a result this run.
|
||||
* @param array<int, string> $keepTestIds Test IDs that produced a result this run.
|
||||
*/
|
||||
public function pruneStaleResults(string $branch, array $touchedFiles, array $keepTestIds): void
|
||||
{
|
||||
@ -1351,8 +1351,10 @@ final class Graph
|
||||
|
||||
foreach ($this->baselines[$branch]['results'] as $testId => $result) {
|
||||
$file = $result['file'] ?? null;
|
||||
|
||||
if (! is_string($file) || ! isset($touched[$file])) {
|
||||
if (! is_string($file)) {
|
||||
continue;
|
||||
}
|
||||
if (! isset($touched[$file])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user