dev-master
9999999-dev
proprietary
The Requires
by Magnus Reiß
dev-hotfix/namespaces-directorys-parameter
dev-hotfix/namespaces-directorys-parameter
proprietary
The Requires
by Magnus Reiß
v0.1
0.1.0.0
proprietary
The Requires
by Magnus Reiß
Wallogit.com
2017 © Pedro Peláez
This repository is experimental., (*1)
With this repository I want to solve some problems of my own projects. For example, incorrect namespaces in unit tests., (*2)
PHP Unit doesn't need namespaces and therefore they are often wrong., (*3)
you only need composer, (*4)
composer require 22h/code-analyser --dev
search exceptions in all autoload folders, (*5)
bin/code-analyser code-analyser:exceptions
search exceptions in vendor folder recursive, (*6)
bin/code-analyser code-analyser:exceptions -d vendor
search incorrect namespaces in autoload folders, (*7)
bin/code-analyser code-analyser:namespaces
$ php code-analyser code-analyser:namespaces Lookup autoload paths --------------------- ------ ------------------------------- -------- env namespace folder ------ ------------------------------- -------- prod TwentyTwo\CodeAnalyser\ src dev TwentyTwo\CodeAnalyser\Tests\ tests ------ ------------------------------- -------- Search matching files --------------------- Find 11 matching files in directories Search incorrect namespaces --------------------------- 11/11 [============================] 100% List incorrect namespaces ------------------------- ------------------- ------------------------------------ File tests/\Test\Wrang.php Current Namespace TwentyTwo\CodeAnalyserA\Tests\Test New Namespace TwentyTwo\CodeAnalyser\Tests\Test ------------------- ------------------------------------ ------------------- ------------------------------- File tests/\Wrong.php Current Namespace TwentyTwo\CodeAnalyser2\Tests New Namespace TwentyTwo\CodeAnalyser\Tests ------------------- -------------------------------
$ php code-analyser code-analyser:exceptions Lookup autoload paths --------------------- ------ ------------------------------- -------- env namespace folder ------ ------------------------------- -------- prod TwentyTwo\CodeAnalyser\ src dev TwentyTwo\CodeAnalyser\Tests\ tests ------ ------------------------------- -------- Search matching files --------------------- Find 12 matching files in directories Search exceptions ----------------- 12/12 [============================] 100% List founded exceptions ----------------------- ------------------------------- ---------------------------------- exception files ------------------------------- ---------------------------------- ComposerFileNotFoundException src\Composer.php ComposerFileNotFoundException tests/\Test\Wrang.php FileNotFoundException src\Autoload\CheckFile.php FileNotFoundException src\FindExceptions\CheckFile.php Exception tests/\Test\Wrang.php ------------------------------- ---------------------------------- List grouped exceptions ----------------------- ------------------------------- ------- exception count ------------------------------- ------- ComposerFileNotFoundException 2 FileNotFoundException 2 Exception 1 ------------------------------- ------- [OK] find 5 exceptions
proprietary
proprietary
proprietary