| @@ 74-89 (lines=16) @@ | ||
| 71 | /** |
|
| 72 | * @SuppressWarnings(PHPMD.StaticAccess) |
|
| 73 | */ |
|
| 74 | protected function processConfig() |
|
| 75 | { |
|
| 76 | foreach ($this->getConfig() as $key => $value) { |
|
| 77 | switch ($key) { |
|
| 78 | case 'presets': |
|
| 79 | case 'files': |
|
| 80 | continue 2; |
|
| 81 | case 'default_standard': |
|
| 82 | if (is_array($value)) { |
|
| 83 | $value = implode(',', $value); |
|
| 84 | } |
|
| 85 | } |
|
| 86 | ||
| 87 | \PHP_CodeSniffer::setConfigData($key, $value, true); |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * @codeCoverageIgnore hard coded `exit()` in `parent::runphpcbf` |
|
| @@ 76-91 (lines=16) @@ | ||
| 73 | /** |
|
| 74 | * @SuppressWarnings(PHPMD.StaticAccess) |
|
| 75 | */ |
|
| 76 | protected function sugaredRimProcessConfig() |
|
| 77 | { |
|
| 78 | foreach ($this->sugaredRimGetConfig() as $key => $value) { |
|
| 79 | switch ($key) { |
|
| 80 | case 'presets': |
|
| 81 | case 'files': |
|
| 82 | continue 2; |
|
| 83 | case 'default_standard': |
|
| 84 | if (is_array($value)) { |
|
| 85 | $value = implode(',', $value); |
|
| 86 | } |
|
| 87 | } |
|
| 88 | ||
| 89 | $this->setConfigData($key, $value, true); |
|
| 90 | } |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||