PHPCSStandards / PHPCSExtra

A collection of code standards for use with PHP_CodeSniffer
GNU Lesser General Public License v3.0
91 stars 8 forks source link

:sparkles: New `Universal.CodeAnalysis.NoEchoSprintf` sniff #242

Closed jrfnl closed 1 year ago

jrfnl commented 1 year ago

Detects use of the inefficient echo [v]sprintf(...); combi. Use [v]printf() instead.

Refs:

Includes fixer. Includes unit tests. Includes documentation.