src/Standards/BestIt/CodeSniffer/Helper/DocDescriptionHelper.php 1 location
|
@@ 294-307 (lines=14) @@
|
| 291 |
|
* |
| 292 |
|
* @return void |
| 293 |
|
*/ |
| 294 |
|
private function fixNoLineAfterDescription() |
| 295 |
|
{ |
| 296 |
|
$descEndPtr = $this->getCommentDescriptionEndPointer(); |
| 297 |
|
$descEndToken = $this->tokens[$descEndPtr]; |
| 298 |
|
|
| 299 |
|
$this->file->getFixer()->beginChangeset(); |
| 300 |
|
|
| 301 |
|
$this->file->getFixer()->addContent( |
| 302 |
|
$descEndPtr, |
| 303 |
|
$this->file->getEolChar() . str_repeat(' ', $descEndToken['level']) . ' *' |
| 304 |
|
); |
| 305 |
|
|
| 306 |
|
$this->file->getFixer()->endChangeset(); |
| 307 |
|
} |
| 308 |
|
|
| 309 |
|
/** |
| 310 |
|
* Fixes much lines after description. |
src/Standards/BestIt/CodeSniffer/Helper/DocSummaryHelper.php 1 location
|
@@ 234-247 (lines=14) @@
|
| 231 |
|
* |
| 232 |
|
* @return void |
| 233 |
|
*/ |
| 234 |
|
private function fixNoLineAfterSummary() |
| 235 |
|
{ |
| 236 |
|
$summaryPtr = $this->getCommentSummaryPointer(); |
| 237 |
|
$summaryToken = $this->getCommentSummaryToken(); |
| 238 |
|
|
| 239 |
|
$this->file->getFixer()->beginChangeset(); |
| 240 |
|
|
| 241 |
|
$this->file->getFixer()->addContent( |
| 242 |
|
$summaryPtr, |
| 243 |
|
$this->file->getEolChar() . str_repeat(' ', $summaryToken['level']) . ' *' |
| 244 |
|
); |
| 245 |
|
|
| 246 |
|
$this->file->getFixer()->endChangeset(); |
| 247 |
|
} |
| 248 |
|
|
| 249 |
|
/** |
| 250 |
|
* Fixes summary not first statement. |