1.2.181. 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.181.1. Specs

Short name

Dump/CollectNativeCallsPerExpressions

Rulesets

All, CE, Changed Behavior, Dump

Exakat since

2.1.7

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

High

Available in

Entreprise Edition, Community Edition, Exakat Cloud