Skip to content

♻️ Remove unnecessary __call method #61

Description

@David-2357

The __call magic method is currently unnecessary. Methods can invoke replaceKeyWordsIndata directly if keyword replacement is required, instead of relying on __call.

Proposed change:

  • Remove the __call method from the class.
  • Update all relevant methods to call replaceKeyWordsIndata directly when needed.

Example:

// Instead of using __call:
$this->replaceKeyWordsIndata($data);

Files affected:

  • The main class file where __call is defined (e.g., DatabaseMethods.php)
  • Any files where dynamic calls were previously routed through __call

Note:
Backward compatibility is NOT required, as this method is unused elsewhere.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions