1.2.1154. Strange Name For Constants

Those constants looks like a typo from other names.

<?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.1154.1. Suggestions

  • Fix any typo in the spelling of the constants

  • Tell us about common misspelling so we can upgrade this analysis

1.2.1154.2. Specs

Short name

Constants/StrangeName

Rulesets

All, Analyze, Changed Behavior, Semantics

Exakat since

0.10.5

PHP Version

All

Severity

Minor

Time To Fix

Slow (1 hour)

Precision

High

Features

constant

Available in

Entreprise Edition, Exakat Cloud