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

PHP-CS-Fixer / PHP-CS-Fixer / 3721300657

pending completion
3721300657

push

github

GitHub
minor: Follow PSR12 ordered imports in Symfony ruleset (#6712)

9 of 9 new or added lines in 2 files covered. (100.0%)

22674 of 24281 relevant lines covered (93.38%)

39.08 hits per line

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

0.0
/src/RuleSet/RuleSetInterface.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\RuleSet;
16

17
/**
18
 * Set of rules to be used by fixer.
19
 *
20
 * Example of set: ["@PSR2" => true, "@PSR1" => false, "strict" => true].
21
 *
22
 * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
23
 */
24
interface RuleSetInterface
25
{
26
    /**
27
     * @param array<string, array<string, mixed>|bool> $set
28
     */
29
    public function __construct(array $set = []);
×
30

31
    /**
32
     * Get configuration for given rule.
33
     *
34
     * @return null|array<string, mixed>
35
     */
36
    public function getRuleConfiguration(string $rule): ?array;
×
37

38
    /**
39
     * Get all rules from rules set.
40
     *
41
     * @return array<string, array<string, mixed>|bool>
42
     */
43
    public function getRules(): array;
44

45
    /**
46
     * Check given rule is in rules set.
47
     */
48
    public function hasRule(string $rule): bool;
49
}
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

© 2025 Coveralls, Inc