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

keradus / PHP-CS-Fixer / 17253322895

26 Aug 2025 11:52PM UTC coverage: 94.753% (+0.008%) from 94.745%
17253322895

push

github

keradus
add to git-blame-ignore-revs

28316 of 29884 relevant lines covered (94.75%)

45.64 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
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise.
27
 */
28
final class FileProcessed extends Event
29
{
30
    /**
31
     * Event name.
32
     */
33
    public const NAME = 'fixer.file_processed';
34

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

43
    /**
44
     * @var self::STATUS_*
45
     */
46
    private int $status;
47

48
    private ?string $fileHash;
49

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

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

67
    public function getFileHash(): ?string
68
    {
69
        return $this->fileHash;
×
70
    }
71
}
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