1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-10 06:58:41 +01:00
psalm/src/Psalm/Progress/DebugProgress.php

41 lines
772 B
PHP
Raw Normal View History

<?php
namespace Psalm\Progress;
2019-07-05 22:24:00 +02:00
use function error_reporting;
2021-06-08 04:55:21 +02:00
use const E_ALL;
final 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_name): void
2019-06-02 15:59:45 +02:00
{
2020-08-10 05:19:59 +02:00
$this->write('Altered ' . $file_name . "\n");
2019-06-02 15:59:45 +02:00
}
}