Skip to content

Instantly share code, notes, and snippets.

@pmjones
Created January 10, 2017 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmjones/8df962c285a127fd26dc7a3aa88082a6 to your computer and use it in GitHub Desktop.
Save pmjones/8df962c285a127fd26dc7a3aa88082a6 to your computer and use it in GitHub Desktop.
Radar.Adr phploc
$ composer require radar/adr 1.x
$ rm -rf vendor/composer/ vendor/container-interop/ vendor/psr/
$ phploc --names-exclude="*Test.php" .
phploc 3.0.1 by Sebastian Bergmann.
Directories 31
Files 121
Size
Lines of Code (LOC) 9390
Comment Lines of Code (CLOC) 5149 (54.83%)
Non-Comment Lines of Code (NCLOC) 4241 (45.17%)
Logical Lines of Code (LLOC) 1377 (14.66%)
Classes 1069 (77.63%)
Average Class Length 9
Minimum Class Length 0
Maximum Class Length 63
Average Method Length 2
Minimum Method Length 0
Maximum Method Length 12
Functions 0 (0.00%)
Average Function Length 0
Not in classes or functions 308 (22.37%)
Cyclomatic Complexity
Average Complexity per LLOC 0.16
Average Complexity per Class 2.95
Minimum Class Complexity 1.00
Maximum Class Complexity 31.00
Average Complexity per Method 1.64
Minimum Method Complexity 1.00
Maximum Method Complexity 10.00
Dependencies
Global Accesses 0
Global Constants 0 (0.00%)
Global Variables 0 (0.00%)
Super-Global Variables 0 (0.00%)
Attribute Accesses 574
Non-Static 571 (99.48%)
Static 3 (0.52%)
Method Calls 355
Non-Static 336 (94.65%)
Static 19 (5.35%)
Structure
Namespaces 18
Interfaces 9
Traits 3
Classes 100
Abstract Classes 2 (2.00%)
Concrete Classes 98 (98.00%)
Methods 360
Scope
Non-Static Methods 350 (97.22%)
Static Methods 10 (2.78%)
Visibility
Public Methods 267 (74.17%)
Non-Public Methods 93 (25.83%)
Functions 1
Named Functions 0 (0.00%)
Anonymous Functions 1 (100.00%)
Constants 30
Global Constants 8 (26.67%)
Class Constants 22 (73.33%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment