1.2.1015. Real Functions

Real functions, not methods.

Function keywords, that are not in a class, trait, interface, nor a closure <https://www.php.net/`closure>`_.

<?php

// a real Function
function realFunction () {}

// Those are not real functions
function ($closure) { }

class foo {
    function isAClassMethod() {}
}

interface fooi {
    function isAnInterfaceMethod() {}
}

trait foot {
    function isATraitMethod() {}
}
?>

1.2.1015.1. Specs

Short name

Functions/RealFunctions

Rulesets

All

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

function

Available in

Entreprise Edition, Exakat Cloud