Update unused PHP file.
This commit is contained in:
parent
9d0d98edcc
commit
2a49145764
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue