• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

keradus / PHP-CS-Fixer / 16839019843

06 Aug 2025 10:45PM UTC coverage: 94.73% (-0.02%) from 94.749%
16839019843

push

github

web-flow
feat: introduce `PER-CS3.0` rulsets (#8841)

21 of 21 new or added lines in 5 files covered. (100.0%)

241 existing lines in 18 files now uncovered.

28255 of 29827 relevant lines covered (94.73%)

45.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/Runner/Event/FileProcessed.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of PHP CS Fixer.
7
 *
8
 * (c) Fabien Potencier <fabien@symfony.com>
9
 *     Dariusz Rumiński <dariusz.ruminski@gmail.com>
10
 *
11
 * This source file is subject to the MIT license that is bundled
12
 * with this source code in the file LICENSE.
13
 */
14

15
namespace PhpCsFixer\Runner\Event;
16

17
use Symfony\Contracts\EventDispatcher\Event;
18

19
/**
20
 * Event that is fired when file was processed by Fixer.
21
 *
22
 * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
23
 *
24
 * @internal
25
 */
26
final class FileProcessed extends Event
27
{
28
    /**
29
     * Event name.
30
     */
31
    public const NAME = 'fixer.file_processed';
32

33
    public const STATUS_INVALID = 1;
34
    public const STATUS_SKIPPED = 2;
35
    public const STATUS_NO_CHANGES = 3;
36
    public const STATUS_FIXED = 4;
37
    public const STATUS_EXCEPTION = 5;
38
    public const STATUS_LINT = 6;
39
    public const STATUS_NON_MONOLITHIC = 7;
40

41
    /**
42
     * @var self::STATUS_*
43
     */
44
    private int $status;
45

46
    private ?string $fileHash;
47

48
    /**
49
     * @param self::STATUS_* $status
50
     */
51
    public function __construct(int $status, ?string $fileHash = null)
52
    {
53
        $this->status = $status;
1✔
54
        $this->fileHash = $fileHash;
1✔
55
    }
56

57
    /**
58
     * @return self::STATUS_*
59
     */
60
    public function getStatus(): int
61
    {
62
        return $this->status;
1✔
63
    }
64

65
    public function getFileHash(): ?string
66
    {
UNCOV
67
        return $this->fileHash;
×
68
    }
69
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc