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
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 ;
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