1.2.1175. Strange Name For Constants¶
Those constants looks like a typo from other names. It is an unknown constant, and with a slight change of name, it could be another constant, that exists.
<?php
// This code looks OK : DIRECTORY_SEPARATOR is a native PHP constant
$path = $path . DIRECTORY_SEPARATOR . $file;
// Strange name DIRECOTRY_SEPARATOR
$path = $path . DIRECOTRY_SEPARATOR . $file;
?>
1.2.1175.1. Connex PHP features¶
1.2.1175.1.1. Suggestions¶
Fix any typo in the spelling of the constants
Tell us about common misspelling so we can upgrade this analysis
1.2.1175.1.2. Specs¶
Short name |
Constants/StrangeName |
Rulesets |
|
Exakat since |
0.10.5 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Slow (1 hour) |
Precision |
High |
Available in |