2019-05-30 16:30:41 +02:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Progress;
|
|
|
|
|
|
|
|
class DebugProgress extends Progress
|
|
|
|
{
|
|
|
|
public function setErrorReporting(): void
|
|
|
|
{
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function debug(string $message): void
|
|
|
|
{
|
|
|
|
$this->write($message);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function startScanningFiles(): void
|
|
|
|
{
|
|
|
|
$this->write('Scanning files...' . "\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
public function startAnalyzingFiles(): void
|
|
|
|
{
|
|
|
|
$this->write('Analyzing files...' . "\n");
|
|
|
|
}
|
2019-06-02 15:59:45 +02:00
|
|
|
|
|
|
|
public function startAlteringFiles(): void
|
|
|
|
{
|
|
|
|
$this->write('Updating files...' . "\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
public function alterFileDone(string $file_path) : void
|
|
|
|
{
|
|
|
|
$this->write('Altered ' . $file_path . "\n");
|
|
|
|
}
|
2019-05-30 16:30:41 +02:00
|
|
|
}
|