1.2.183. Collect Native Calls Per Expressions¶
This rule collects the number of PHP native call per expression. The more calls in an expression, the more complex the code.
<?php
// 2 calls to PHP native functions in the same expression
$a = hexdec($a) + hexdec($b);
?>
1.2.183.1. Specs¶
Short name |
Dump/CollectNativeCallsPerExpressions |
Rulesets |
|
Exakat since |
2.1.7 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Available in |