Skip to content

Conversation

@mambax7
Copy link
Collaborator

@mambax7 mambax7 commented Nov 15, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 15, 2025 10:09
Copilot finished reviewing on behalf of mambax7 November 15, 2025 10:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds @deprecated PHPDoc tags to various functions, methods, and classes throughout the codebase to mark them as deprecated. This improves code documentation by signaling to developers which APIs should no longer be used.

  • Marks multiple legacy functions and methods as deprecated across 16 files
  • Adds missing PHPDoc blocks where needed to include deprecation notices
  • Updates existing documentation blocks with deprecation tags

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
htdocs/register.php Marks userCheck() function as deprecated
htdocs/kernel/module.php Adds deprecation tags to 17 module-related methods
htdocs/include/old_theme_functions.php Marks legacy theme functions as deprecated and adds missing PHPDoc block
htdocs/include/functions.legacy.php Marks 6 legacy functions as deprecated with documentation updates
htdocs/include/cp_functions.php Deprecates xoops_module_write_admin_menu() function
htdocs/class/xoopstopic.php Marks entire XoopsTopic class as deprecated
htdocs/class/xoopsload.php Deprecates XoopsLoad::load() static method
htdocs/class/xoopseditor/xoopseditor.php Marks render() method as deprecated
htdocs/class/xoopscomments.php Deprecates entire XoopsComments class
htdocs/class/template.php Adds deprecation tags to 28 template methods
htdocs/class/module.textsanitizer.php Marks addSlashes() method as deprecated
htdocs/class/module.errorhandler.php Deprecates entire ErrorHandler class
htdocs/class/model/read.php Marks 2 data access methods as deprecated
htdocs/class/errorhandler.php Deprecates XoopsErrorHandler class
htdocs/class/database/database.php Marks queryF() legacy alias as deprecated
htdocs/Frameworks/art/functions.user.php Deprecates 3 user-related functions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mambax7 and others added 3 commits November 15, 2025 05:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mambax7 mambax7 requested a review from Copilot November 15, 2025 11:14
Copilot finished reviewing on behalf of mambax7 November 15, 2025 11:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 9 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* @param string $module
* @param string $default
* @return bool
* @deprecated
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The @deprecated tag should follow PHPDoc standards with additional information. According to PHPDoc standards, the @deprecated tag should include a version number and optionally a description or replacement suggestion. For example: @deprecated since version X.X.X Use alternativeFunction() instead.

Consider adding more context like:

 * @deprecated since version X.X.X Use <alternative> instead.

This applies to all deprecated items in this file.

Copilot uses AI. Check for mistakes.
*
* @param string $content
* @return bool
* @deprecated
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The @deprecated tag should follow PHPDoc standards with additional information. According to PHPDoc standards, the @deprecated tag should include a version number and optionally a description or replacement suggestion. For example: @deprecated since version X.X.X Use alternativeFunction() instead.

This applies to all deprecated items in this file.

Suggested change
* @deprecated
* @deprecated since version 2.5.0 This function is deprecated and should not be used. No replacement available.

Copilot uses AI. Check for mistakes.
* @package kernel
* @subpackage comments
* @access public
* @deprecated
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The @deprecated tag should follow PHPDoc standards with additional information. According to PHPDoc standards, the @deprecated tag should include a version number and optionally a description or replacement suggestion. For example: @deprecated since version X.X.X Use AlternativeClass instead.

This applies to all deprecated items in this file.

Suggested change
* @deprecated
* @deprecated since 2.5.4 Use \XoopsComment in /kernel/comment.php instead.

Copilot uses AI. Check for mistakes.
* @author Kazumi Ono <onokazu@xoops.org>
* @author John Neill <catzwolf@xoops.org>
* @copyright (c) 2000-2025 XOOPS Project (https://xoops.org)
* @deprecated
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The @deprecated tag should follow PHPDoc standards with additional information. According to PHPDoc standards, the @deprecated tag should include a version number and optionally a description or replacement suggestion. For example: @deprecated since version X.X.X Use AlternativeClass instead.

This applies to all deprecated items in this file.

Copilot uses AI. Check for mistakes.
Comment on lines +66 to +67
* @deprecated
*/
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent formatting: the asterisk (*) should be aligned with other PHPDoc lines. The correct format should have a space after the asterisk:

/**
 * Function to display banners in all pages
 * @deprecated
 */

The same issue appears on lines 76-77 and 116-117.

Copilot uses AI. Check for mistakes.
/**
* This function is deprecated. Do not use!
*/
* @deprecated
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent formatting: the asterisk (*) should be aligned with other PHPDoc lines. The correct format should have a space after the asterisk:

/**
 * This function is deprecated. Do not use!
 * @deprecated
 */
Suggested change
* @deprecated
* @deprecated

Copilot uses AI. Check for mistakes.
/**
* Functions to display dhtml loading image box
*/
* @deprecated
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent formatting: the asterisk (*) should be aligned with other PHPDoc lines. The correct format should have a space after the asterisk:

/**
 * Functions to display dhtml loading image box
 * @deprecated
 */
Suggested change
* @deprecated
* @deprecated

Copilot uses AI. Check for mistakes.

/**
* Class XoopsTopic
* @deprecated
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The @deprecated tag should follow PHPDoc standards with additional information. According to PHPDoc standards, the @deprecated tag should include a version number and optionally a description or replacement suggestion. For example: @deprecated since version X.X.X Use AlternativeClass instead.

This applies to all deprecated items in this file.

Copilot uses AI. Check for mistakes.
* @package kernel
* @subpackage core
* @author Goghs (http://www.eqiao.com/)
* @deprecated
Copy link

Copilot AI Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The @deprecated tag should follow PHPDoc standards with additional information. According to PHPDoc standards, the @deprecated tag should include a version number and optionally a description or replacement suggestion. For example: @deprecated since version X.X.X Use AlternativeClass instead.

This applies to all deprecated items in this file.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants