CRITICAL
Rule Definition
For performance reasons, it is preferable to avoid identical type operators because they increase response time and memory consumption.
Remediation
Try to reduce the number of Methods and Functions using type operators instead of EQUAL operators.
Violation Code Sample
<?php
if ($a) //Violation
{
...
}
?>
}"
Fixed Code Sample
<?php
if ($a === true) //Violation removed
{
...
}
?>
Reference
Code Sniffer - http://pear.php.net/package/PHP_CodeSniffer/docs/1.5.2/PHP_CodeSniffer/Squiz_Sniffs_Operators_ComparisonOperatorUsageSniff.html
Related Technologies
Technical Criterion
Complexity - Algorithmic and Control Structure Complexity
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.