Config class

Framework\CodingStandard\Config

Class Config.

Extends PhpCsFixer\Config

Implements: PhpCsFixer\Config\RuleCustomisationPolicyAwareConfigInterface, PhpCsFixer\CustomRulesetsAwareConfigInterface, PhpCsFixer\UnsupportedPhpVersionAllowedConfigInterface, PhpCsFixer\ParallelAwareConfigInterface, PhpCsFixer\ConfigInterface

Defined in libraries/coding-standard/src/Config.php

Constants #

Methods #

__construct()
-
replaceRules()
-
setDefaultHeaderComment()
-
setHeaderComment()
-
prepareRules()
-

__construct()

public function __construct(mixed ...$params)
Parameters
  • mixed $params

replaceRules()

public function replaceRules(array $rules): static
Parameters
  • array $rules
Returns static

setDefaultHeaderComment()

public function setDefaultHeaderComment(string $packageName, array|string $copyright = array ( )): static
Parameters
  • string $packageName
  • array|string $copyright
Returns static

setHeaderComment()

public function setHeaderComment(string $header): static
Parameters
  • string $header
Returns static

prepareRules()

protected function prepareRules(): void
Returns void

Inherited methods #