Closed stklcode closed 5 months ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Apparently this was already done in b2abe7a800f3d64b10c17a88699b475325c9dd54 and the only remaining change is superseded by #286. Closing this PR.
- use
printf()
instead ofecho sprintf()
Is there an advantage to using echo sprint()
over printf()
?
No, there is no benefit in generating a formatted string and echoing the output immediately.
There is a marginal difference from the outside:
echo sprintf(...)
has no return valueprintf(...)
returns the output length (we don't use it)
printf()
instead ofecho sprintf()
__DIR__
instead ofdirname( __FILE__ )
track_visit()