Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | |||
17 | protected function buildFileContent() |
||
18 | { |
||
19 | $this->replaceClassNamespace(); |
||
20 | $this->replaceClassName(); |
||
21 | $this->replaceValidationRules(); |
||
22 | } |
||
23 | |||
24 | protected function replaceValidationRules() |
||
25 | { |
||
26 | $this->fileContent = str_replace('__rules__', ShortSyntaxArray::parse($this->command->schema->getValidationRules()->toArray()), $this->fileContent); |
||
|
|||
27 | } |
||
28 | } |
||
29 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.