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

keradus / PHP-CS-Fixer / 16715837382

04 Aug 2025 06:34AM UTC coverage: 94.728% (+0.01%) from 94.716%
16715837382

push

github

keradus
chore: switch to official checkstyle.xsd

28212 of 29782 relevant lines covered (94.73%)

45.91 hits per line

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

66.67
/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

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

45
    private ?string $fileRelativePath;
46
    private ?string $fileHash;
47

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

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

66
    public function getFileRelativePath(): ?string
67
    {
68
        return $this->fileRelativePath;
×
69
    }
70

71
    public function getFileHash(): ?string
72
    {
73
        return $this->fileHash;
×
74
    }
75
}
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