Skip to content

Commit 5af88d7

Browse files
authored
[CLEANUP] Avoid Hungarian notation for comment(able) (#968)
Part of #756
1 parent 9736e26 commit 5af88d7

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
@@ -201,18 +201,18 @@ public function removeLastSemicolon(string $sString): string
201201
return \implode(';', $sString);
202202
}
203203

204-
public function comments(Commentable $oCommentable): string
204+
public function comments(Commentable $commentable): string
205205
{
206206
if (!$this->outputFormat->getRenderComments()) {
207207
return '';
208208
}
209209

210210
$result = '';
211-
$comments = $oCommentable->getComments();
211+
$comments = $commentable->getComments();
212212
$iLastCommentIndex = \count($comments) - 1;
213213

214-
foreach ($comments as $i => $oComment) {
215-
$result .= $oComment->render($this->outputFormat);
214+
foreach ($comments as $i => $comment) {
215+
$result .= $comment->render($this->outputFormat);
216216
$result .= $i === $iLastCommentIndex ? $this->spaceAfterBlocks() : $this->spaceBetweenBlocks();
217217
}
218218
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)