src/Standards/BestIt/CodeSniffer/Helper/DocDescriptionHelper.php 1 location
|
@@ 335-347 (lines=13) @@
|
332 |
|
* |
333 |
|
* @return void |
334 |
|
*/ |
335 |
|
private function fixDescriptionUcFirst(int $descriptionStartPtr): void |
336 |
|
{ |
337 |
|
$descStartToken = $this->tokens[$descriptionStartPtr]; |
338 |
|
|
339 |
|
$this->file->getFixer()->beginChangeset(); |
340 |
|
|
341 |
|
$this->file->getFixer()->replaceToken( |
342 |
|
$descriptionStartPtr, |
343 |
|
ucfirst($descStartToken['content']) |
344 |
|
); |
345 |
|
|
346 |
|
$this->file->getFixer()->endChangeset(); |
347 |
|
} |
348 |
|
} |
349 |
|
|
src/Standards/BestIt/CodeSniffer/Helper/DocSummaryHelper.php 1 location
|
@@ 277-284 (lines=8) @@
|
274 |
|
* |
275 |
|
* @return void |
276 |
|
*/ |
277 |
|
private function fixSummaryUcFirst(array $summaryToken, int $summaryPtr): void |
278 |
|
{ |
279 |
|
$this->file->getFixer()->beginChangeset(); |
280 |
|
|
281 |
|
$this->file->getFixer()->replaceToken($summaryPtr, ucfirst($summaryToken['content'])); |
282 |
|
|
283 |
|
$this->file->getFixer()->endChangeset(); |
284 |
|
} |
285 |
|
} |
286 |
|
|