PHP Class Flitch\Cli\Cli

Afficher le fichier Open project: dasprid/flitch

Protected Properties

Свойство Type Description
$checkstyleReportFilename string Path to checkstyle report output file
$paths array Paths to scan.
$quiet boolean Run silently w/o any console output
$reports array Reports
$standard string Standard to use.
$workingDirectory string Working directory.

Méthodes publiques

Méthode Description
__construct ( string $workingDirectory ) : void Create a new CLI object.
run ( array $arguments ) : void Run Flitch.

Méthodes protégées

Méthode Description
analyzeFile ( string $path, Tokenizer $tokenizer, Manager $manager ) : File Analyze single file for coding standard violations.
analyzeFiles ( ) : void Analyze files for coding standard violations.
printHelp ( ) : void Print help.

Method Details

__construct() public méthode

Create a new CLI object.
public __construct ( string $workingDirectory ) : void
$workingDirectory string
Résultat void

analyzeFile() protected méthode

Analyze single file for coding standard violations.
protected analyzeFile ( string $path, Tokenizer $tokenizer, Manager $manager ) : File
$path string
$tokenizer Flitch\File\Tokenizer
$manager Flitch\Rule\Manager
Résultat File

analyzeFiles() protected méthode

Analyze files for coding standard violations.
protected analyzeFiles ( ) : void
Résultat void

printHelp() protected méthode

Print help.
protected printHelp ( ) : void
Résultat void

run() public méthode

Run Flitch.
public run ( array $arguments ) : void
$arguments array
Résultat void

Property Details

$checkstyleReportFilename protected_oe property

Path to checkstyle report output file
protected string $checkstyleReportFilename
Résultat string

$paths protected_oe property

Paths to scan.
protected array $paths
Résultat array

$quiet protected_oe property

Run silently w/o any console output
protected bool $quiet
Résultat boolean

$reports protected_oe property

Reports
protected array $reports
Résultat array

$standard protected_oe property

Standard to use.
protected string $standard
Résultat string

$workingDirectory protected_oe property

Working directory.
protected string $workingDirectory
Résultat string