make_result( array( 'id' => 'phpinfo_exposed', 'title' => $this->get_title(), 'severity' => AIPSC_Audit_Check_Result::SEVERITY_HIGH, 'description' => sprintf( /* translators: %d: Number of phpinfo files found. */ __( 'Found %d phpinfo file(s) accessible from the web.', 'aipatch-security-scanner' ), count( $found ) ), 'why_it_matters' => __( 'phpinfo() exposes PHP version, extensions, environment variables, and server paths that aid attackers.', 'aipatch-security-scanner' ), 'recommendation' => __( 'Delete phpinfo files from the server.', 'aipatch-security-scanner' ), 'evidence' => implode( ', ', $found ), 'meta' => array( 'files' => $found ), ) ) ); } return array( $this->make_result( array( 'id' => 'phpinfo_exposure', 'title' => $this->get_title(), 'severity' => AIPSC_Audit_Check_Result::SEVERITY_INFO, 'status' => AIPSC_Audit_Check_Result::STATUS_PASS, 'description' => __( 'No phpinfo files found.', 'aipatch-security-scanner' ), ) ) ); } }