PHPCSStandards / PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
880 stars 54 forks source link

New Common::stripColors() method #445

Closed jrfnl closed 4 months ago

jrfnl commented 5 months ago

Description

This commit introduces a new static Common::stripColors() method to allow for stripping CLI color codes from an arbitrary text.

Includes starting to use the function in a few places.

Includes unit tests.

Suggested changelog entry

N/A This method is intended for internal use.

jrfnl commented 4 months ago

Rebased without changes. Merging once the build passes.