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 @@ -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 ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments