Skip to content

Commit

Permalink
Merge pull request #274 from wayofdev/docs/updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp authored May 23, 2024
2 parents 8d82f53 + d1f30ec commit f1abae9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
10 changes: 10 additions & 0 deletions src/ConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ public function addFiles(array $files): self
return $this;
}

/**
* @param list<string> $files
*/
public function exclude(array $files): self
{
$this->getFinder()->exclude($files);

return $this;
}

public function getConfig(): ConfigInterface
{
return $this->config->setRules($this->ruleSet->rules());
Expand Down
3 changes: 3 additions & 0 deletions src/RuleSets/DefaultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ public function rules(): array
'self_static_accessor' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'class_definition' => [
'space_before_parenthesis' => false,
],

/*
* @PhpCsFixer:risky
Expand Down
14 changes: 9 additions & 5 deletions src/RuleSets/ExtendedPERSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,15 @@ public function rules(): array
'@PER-CS2.0' => true,

/*
* @Symfony
* @PER-CS2.0 Overrides
*/
'phpdoc_align' => [
'align' => 'left',
'class_definition' => [
'space_before_parenthesis' => false,
],

/*
* @Symfony
*/
'yoda_style' => [
'equal' => false,
'identical' => false,
Expand Down Expand Up @@ -166,9 +170,9 @@ public function rules(): array
'use_parentheses' => false,
],
'phpdoc_line_span' => [
'const' => 'multi',
'const' => null,
'method' => 'multi',
'property' => 'multi',
'property' => null,
],
], $this->rules);
}
Expand Down

0 comments on commit f1abae9

Please sign in to comment.