Skip to content

Commit 5a40693

Browse files
committed
[CLEANUP] Avoid Hungarian notation for comment(able)
Part of #756
1 parent f28fc1f commit 5a40693

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/OutputFormatter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,18 @@ public function removeLastSemicolon(string $sString): string
165165
return \implode(';', $sString);
166166
}
167167

168-
public function comments(Commentable $oCommentable): string
168+
public function comments(Commentable $commentable): string
169169
{
170170
if (!$this->outputFormat->bRenderComments) {
171171
return '';
172172
}
173173

174174
$result = '';
175-
$comments = $oCommentable->getComments();
175+
$comments = $commentable->getComments();
176176
$iLastCommentIndex = \count($comments) - 1;
177177

178-
foreach ($comments as $i => $oComment) {
179-
$result .= $oComment->render($this->outputFormat);
178+
foreach ($comments as $i => $comment) {
179+
$result .= $comment->render($this->outputFormat);
180180
$result .= $i === $iLastCommentIndex ? $this->spaceAfterBlocks() : $this->spaceBetweenBlocks();
181181
}
182182
return $result;

src/Parsing/ParserState.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,18 +223,18 @@ public function consumeWhiteSpace(): array
223223
}
224224
if ($this->parserSettings->bLenientParsing) {
225225
try {
226-
$oComment = $this->consumeComment();
226+
$comment = $this->consumeComment();
227227
} catch (UnexpectedEOFException $e) {
228228
$this->currentPosition = $this->length;
229229
return $comments;
230230
}
231231
} else {
232-
$oComment = $this->consumeComment();
232+
$comment = $this->consumeComment();
233233
}
234-
if ($oComment !== false) {
235-
$comments[] = $oComment;
234+
if ($comment !== false) {
235+
$comments[] = $comment;
236236
}
237-
} while ($oComment !== false);
237+
} while ($comment !== false);
238238
return $comments;
239239
}
240240

0 commit comments

Comments
 (0)