1.2.179. Collect Method Counts

This analysis collects the number of methods per class, trait or interface.

The count applies to classes, anonymous classes, traits and interfaces. They are considered distinct one from another.

<?php

class foo {
    // 2 methods
    function __construct() {}
    function foo() {}
}

interface bar {
    // 1 method
    function a() ;
}

class barbar {
    // 3 methods
    function __construct() {}
    function foo() {}
    function a() {}
}

?>

1.2.179.1. Specs

Short name

Dump/CollectMethodCounts

Rulesets

All, CE, Changed Behavior, Dump

Exakat since

2.1.2

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

inclusion

Available in

Entreprise Edition, Community Edition, Exakat Cloud