File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/PHPCR/Util/CND/Scanner Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ preset: psr2
2
2
3
3
enabled :
4
4
- short_array_syntax
5
- - duplicate_semicolon
5
+ - duplicate_semicolon
6
+ - no_useless_else
Original file line number Diff line number Diff line change @@ -195,13 +195,12 @@ protected function consumeBlockComments(ReaderInterface $reader)
195
195
196
196
// End of file reached and no end delimiter found, error
197
197
throw new ScannerException ($ reader , "Unterminated block comment " );
198
- } else {
198
+ }
199
199
200
- // Start delimiter not found, rewind the looked up characters
201
- $ reader ->rewind ();
200
+ // Start delimiter not found, rewind the looked up characters
201
+ $ reader ->rewind ();
202
202
203
- return false ;
204
- }
203
+ return false ;
205
204
}
206
205
}
207
206
You can’t perform that action at this time.
0 commit comments