generated from yardinternet/skeleton-package
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigInterface.php
More file actions
40 lines (32 loc) · 868 Bytes
/
ConfigInterface.php
File metadata and controls
40 lines (32 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
declare(strict_types=1);
namespace Yard\PhpCsFixerRules\Interfaces;
use PhpCsFixer\Finder;
interface ConfigInterface extends \PhpCsFixer\ConfigInterface
{
/**
* Creates default PHP CS fixer config. Calls setDefaultSettings()
*/
public static function create(Finder $finder, string $name = 'default'): self;
/**
* Sets rules, line ending and risky allowed
*/
public function setDefaultRules(): self;
/**
* Recursively merges provided rules with current rules.
* Allows default rules to be overridden.
*
* @param array<string, array<string, mixed>|bool> $rules
*/
public function mergeRules(array $rules): self;
/**
* Unset matching rules
*
* @param array<int, string> $rulesKeys
*/
public function removeRules(array $rulesKeys): self;
/**
* Removes rule name
*/
public function removeRule(string $ruleKey): self;
}