Skip to content

Fix: formatting hotfix#362

Merged
apinto-uc merged 1 commit intomasterfrom
v4.6.3-hotfix
Jan 27, 2026
Merged

Fix: formatting hotfix#362
apinto-uc merged 1 commit intomasterfrom
v4.6.3-hotfix

Conversation

@apinto-uc
Copy link
Collaborator

@apinto-uc apinto-uc commented Jan 27, 2026

User description

PR Type

Bug fix


Description

  • Remove trailing whitespace from multiple files

  • Clean up formatting inconsistencies in PHP code


Diagram Walkthrough

flowchart LR
  A["PHP Files with<br/>Trailing Whitespace"] -- "Remove whitespace" --> B["Clean Formatted<br/>Code"]
Loading

File Walkthrough

Relevant files
Formatting
Cookiebot_Activated.php
Remove trailing whitespace in Cookiebot_Activated               

src/lib/Cookiebot_Activated.php

  • Remove trailing whitespace on lines 90 and 95
  • Clean up empty lines in set_banner_enabled_by_default() method
+2/-2     
Script_Loader_Tag.php
Remove trailing whitespace in Script_Loader_Tag                   

src/lib/script_loader_tag/Script_Loader_Tag.php

  • Remove trailing whitespace on lines 114 and 144
  • Clean up empty lines in consent attribute methods
+2/-2     


CodeAnt-AI Description

Remove trailing whitespace and clean up PHP formatting

What Changed

  • Removed trailing whitespace and stray empty lines in PHP files that caused formatting inconsistencies (script loader and Cookiebot activation logic)
  • Consolidated blank lines inside functions to produce consistent file formatting
  • No changes to runtime behavior or feature logic

Impact

✅ Fewer lint/format warnings
✅ Cleaner diffs and PR reviews
✅ No functional change

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@codeant-ai
Copy link

codeant-ai bot commented Jan 27, 2026

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@qodo-code-review
Copy link

PR Compliance Guide 🔍

Below is a summary of compliance checks for this PR:

Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
🎫 No ticket provided
  • Create ticket/issue
Codebase Duplication Compliance
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
🟢
Generic: Comprehensive Audit Trails

Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Meaningful Naming and Self-Documenting Code

Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Robust Error Handling and Edge Case Management

Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Error Handling

Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Logging Practices

Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Security-First Input Validation and Data Handling

Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Compliance status legend 🟢 - Fully Compliant
🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label

@sonarqubecloud
Copy link

@qodo-code-review
Copy link

PR Code Suggestions ✨

No code suggestions found for the PR.

@codeant-ai codeant-ai bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Jan 27, 2026
@codeant-ai
Copy link

codeant-ai bot commented Jan 27, 2026

CodeAnt AI finished reviewing your PR.

@apinto-uc apinto-uc merged commit d1bdcb3 into master Jan 27, 2026
11 checks passed
@apinto-uc apinto-uc deleted the v4.6.3-hotfix branch January 27, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review effort 1/5 size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants