Skip to content

Commit d2ad11c

Browse files
fix: satisfy worktree prune lint
1 parent 14d41ac commit d2ad11c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

inc/Workspace/WorkspaceWorktreeLifecycle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ private function prune_stale_worktree_inventory_rows(): array|\WP_Error {
12281228
continue;
12291229
}
12301230

1231-
$contents = file_get_contents($marker);
1231+
$contents = file_get_contents($marker); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- Reads a validated local .git marker, not a remote URL.
12321232
if ( false === $contents || ! preg_match('/^gitdir:\s*(.+)$/mi', $contents, $matches) ) {
12331233
continue;
12341234
}
@@ -1242,7 +1242,7 @@ private function prune_stale_worktree_inventory_rows(): array|\WP_Error {
12421242
continue;
12431243
}
12441244

1245-
$primary_path = '' !== $repo ? $this->get_primary_path($repo) : (string) ( $row['primary_path'] ?? '' );
1245+
$primary_path = '' !== $repo ? $this->get_primary_path($repo) : (string) ( $row['primary_path'] ?? '' );
12461246
$stale_marker_blockers[] = array(
12471247
'handle' => $handle,
12481248
'repo' => $repo,

0 commit comments

Comments
 (0)