|
@@ 67-74 (lines=8) @@
|
| 64 |
|
$linesToNextClass = $this->getLinesToNextClass(); |
| 65 |
|
|
| 66 |
|
if ($linesToNextUse) { |
| 67 |
|
if ($linesToNextUse !== $this->emptyLinesBeforeUseStatement) { |
| 68 |
|
$error = 'There should be %s empty line(s) from namespace to use statement; %s found'; |
| 69 |
|
$data = [ |
| 70 |
|
$this->emptyLinesBeforeUseStatement, |
| 71 |
|
$linesToNextUse |
| 72 |
|
]; |
| 73 |
|
$file->addError($error, $position, 'BlankLineAfter', $data); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
} elseif ($linesToNextClass) { |
| 77 |
|
if ($linesToNextClass !== $this->emptyLinesAfterNamespace) { |
|
@@ 76-85 (lines=10) @@
|
| 73 |
|
$file->addError($error, $position, 'BlankLineAfter', $data); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
} elseif ($linesToNextClass) { |
| 77 |
|
if ($linesToNextClass !== $this->emptyLinesAfterNamespace) { |
| 78 |
|
$error = 'There should be %s empty line(s) after the namespace declaration; %s found'; |
| 79 |
|
$data = [ |
| 80 |
|
$this->emptyLinesAfterNamespace, |
| 81 |
|
$linesToNextClass |
| 82 |
|
]; |
| 83 |
|
$file->addError($error, $position, 'BlankLineAfter', $data); |
| 84 |
|
} |
| 85 |
|
} |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
|