| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 4 | public function decorateFile(AbstractFile $file) |
|
| 28 | { |
||
| 29 | 4 | if (preg_match('/^\s*(?:---[\s]*[\r\n]+)(.*?)(?:---[\s]*[\r\n]+)(.*?)$/s', $file->getContent(), $matches)) { |
|
| 30 | 2 | $file->changeContent($matches[2]); |
|
| 31 | |||
| 32 | 2 | $this->setConfigurationToFileIfFoundAny($matches[1], $file); |
|
| 33 | } |
||
| 34 | 4 | } |
|
| 35 | |||
| 44 |