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