Update unused PHP file.

This commit is contained in:
Buster "Silver Eagle" Neece 2020-07-04 10:48:05 -05:00
parent 9d0d98edcc
commit 2a49145764
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,12 @@
<?php <?php
/*
* Install unused checker with:
* composer global require insolita/unused-scanner
*
* Invoke with:
* php ~/.composer/vendor/bin/unused_scanner util/unused.php
*/
/** /**
* Set $projectPath = getcwd(); if your put it under project root * Set $projectPath = getcwd(); if your put it under project root
**/ **/
@ -12,9 +20,8 @@ $projectPath = dirname(__DIR__);
**/ **/
$scanDirectories = [ $scanDirectories = [
$projectPath . '/config/', $projectPath . '/config/',
$projectPath . '/bootstrap/',
$projectPath . '/src/', $projectPath . '/src/',
$projectPath . '/resources/templates', $projectPath . '/templates',
]; ];
$scanFiles = [ $scanFiles = [
@ -58,7 +65,7 @@ return [
* return $isPresent; * return $isPresent;
* } * }
**/ **/
'customMatch'=> null, 'customMatch' => null,
/** /**
* Report mode options * Report mode options
@ -85,6 +92,6 @@ return [
* return print_r($report, true); * return print_r($report, true);
* } * }
**/ **/
'reportFormatter'=>null, 'reportFormatter' => null,
'reportExtension'=>null, //by default - json, set own, if use custom formatter 'reportExtension' => null, //by default - json, set own, if use custom formatter
]; ];