Skip to content

Commit 07e1d46

Browse files
fix: satisfy active no-signal lint
1 parent 2d00bf9 commit 07e1d46

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

inc/Cli/Commands/WorkspaceCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3635,7 +3635,7 @@ public function worktree( array $args, array $assoc_args ): void {
36353635

36363636
$input = array();
36373637
$input_builder = (string) ( $operation_config['input_builder'] ?? '' );
3638-
if ( '' !== $input_builder && method_exists($this, $input_builder) ) {
3638+
if ( '' !== $input_builder ) {
36393639
$input = $this->{$input_builder}($operation, $assoc_args);
36403640
}
36413641

@@ -5998,7 +5998,7 @@ private function render_worktree_bounded_cleanup_eligible_apply_result( array $r
59985998
}
59995999
}
60006000

6001-
$this->render_active_no_signal_triage_preview((array) ( $result['active_no_signal_triage'] ?? array() ));
6001+
$this->render_active_no_signal_triage_preview( (array) ( $result['active_no_signal_triage'] ?? array() ) );
60026002

60036003
WP_CLI::log('');
60046004
$remaining = (int) ( $continuation['remaining_total'] ?? 0 );

inc/Workspace/WorkspaceWorktreeCleanupEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ private function discover_broken_orphan_worktree_markers( array $listed_worktree
697697
}
698698

699699
$parsed = $this->parse_handle($entry);
700-
if ( empty($parsed['is_worktree']) || '' === (string) ( $parsed['repo'] ?? '' ) ) {
700+
if ( empty($parsed['is_worktree']) || '' === (string) $parsed['repo'] ) {
701701
continue;
702702
}
703703

inc/Workspace/WorktreeActiveNoSignalTriagePreview.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function build( array $rows, int $limit = 25, ?int $now = null ):
4444
);
4545

4646
foreach ( $rows as $row ) {
47-
if ( ! is_array($row) || ! in_array((string) ( $row['reason_code'] ?? '' ), self::ACTIVE_REASON_CODES, true) ) {
47+
if ( ! in_array( (string) ( $row['reason_code'] ?? '' ), self::ACTIVE_REASON_CODES, true ) ) {
4848
continue;
4949
}
5050

0 commit comments

Comments
 (0)