@@ -754,10 +754,10 @@ public function show_repo( string $handle ): array|\WP_Error {
754754 if ( empty ($ inspection ['exists ' ]) && null === $ context_policy ) {
755755 $ resolved_handle = $ this ->resolve_primary_repo_name ($ handle );
756756 if ( ! is_wp_error ($ resolved_handle ) && $ resolved_handle !== $ handle ) {
757- $ handle = $ resolved_handle ;
758- $ parsed = $ this ->parse_handle ($ handle );
759- $ repo_path = $ this ->workspace_path . '/ ' . $ parsed ['dir_name ' ];
760- $ inspection = WorkspaceTargetInspector::inspect ($ repo_path , $ parsed ['dir_name ' ]);
757+ $ handle = $ resolved_handle ;
758+ $ parsed = $ this ->parse_handle ($ handle );
759+ $ repo_path = $ this ->workspace_path . '/ ' . $ parsed ['dir_name ' ];
760+ $ inspection = WorkspaceTargetInspector::inspect ($ repo_path , $ parsed ['dir_name ' ]);
761761 if ( is_wp_error ($ inspection ) ) {
762762 return $ inspection ;
763763 }
@@ -780,7 +780,7 @@ public function show_repo( string $handle ): array|\WP_Error {
780780 'commit ' => $ inspection ['commit ' ] ?? null ,
781781 'dirty ' => (int ) ( $ inspection ['dirty ' ] ?? 0 ),
782782 'primary_freshness ' => ! $ parsed ['is_worktree ' ] && is_string ($ inspection ['branch_status ' ] ?? null )
783- ? $ this ->build_primary_freshness_report_from_status_output ((string ) $ inspection ['branch_status ' ], $ parsed ['dir_name ' ])
783+ ? $ this ->build_primary_freshness_report_from_status_output (( string ) $ inspection ['branch_status ' ], $ parsed ['dir_name ' ])
784784 : null ,
785785 );
786786 if ( null !== $ context_policy ) {
0 commit comments