File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -201,18 +201,18 @@ public function removeLastSemicolon(string $sString): string
201
201
return \implode ('; ' , $ sString );
202
202
}
203
203
204
- public function comments (Commentable $ oCommentable ): string
204
+ public function comments (Commentable $ commentable ): string
205
205
{
206
206
if (!$ this ->outputFormat ->getRenderComments ()) {
207
207
return '' ;
208
208
}
209
209
210
210
$ result = '' ;
211
- $ comments = $ oCommentable ->getComments ();
211
+ $ comments = $ commentable ->getComments ();
212
212
$ iLastCommentIndex = \count ($ comments ) - 1 ;
213
213
214
- foreach ($ comments as $ i => $ oComment ) {
215
- $ result .= $ oComment ->render ($ this ->outputFormat );
214
+ foreach ($ comments as $ i => $ comment ) {
215
+ $ result .= $ comment ->render ($ this ->outputFormat );
216
216
$ result .= $ i === $ iLastCommentIndex ? $ this ->spaceAfterBlocks () : $ this ->spaceBetweenBlocks ();
217
217
}
218
218
return $ result ;
Original file line number Diff line number Diff line change @@ -223,18 +223,18 @@ public function consumeWhiteSpace(): array
223
223
}
224
224
if ($ this ->parserSettings ->bLenientParsing ) {
225
225
try {
226
- $ oComment = $ this ->consumeComment ();
226
+ $ comment = $ this ->consumeComment ();
227
227
} catch (UnexpectedEOFException $ e ) {
228
228
$ this ->currentPosition = $ this ->length ;
229
229
return $ comments ;
230
230
}
231
231
} else {
232
- $ oComment = $ this ->consumeComment ();
232
+ $ comment = $ this ->consumeComment ();
233
233
}
234
- if ($ oComment !== false ) {
235
- $ comments [] = $ oComment ;
234
+ if ($ comment !== false ) {
235
+ $ comments [] = $ comment ;
236
236
}
237
- } while ($ oComment !== false );
237
+ } while ($ comment !== false );
238
238
return $ comments ;
239
239
}
240
240
You can’t perform that action at this time.
0 commit comments