File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Standards/Squiz/Tests/ControlStructures Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -347,11 +347,11 @@ doSomething();
347347
348348// Bug: the below should not throw "Blank lines are not allowed before/after..." errors (as there are no blank lines).
349349// Instead the sniff should flag case/default/break statements not being on their own line.
350- switch ($ condition ) {case 'string ' : $ varStr = 'one line ' ; break ;case 'bool ' :$ varStr = 'one line ' ;return $ foo ;default : $ varStr = 'test ' ; break ;}
350+ switch ($ condition ) {case 'string ' : $ varStr = 'one line ' ; break ; case 'bool ' :$ varStr = 'one line ' ;return $ foo ;default : $ varStr = 'test ' ; break ;}
351351
352352switch ($ condition ) {
353- case 'string ' : /*test comment handling when adding new lines*/ $ varStr = 'one line ' ;/*test comment handling when adding new lines*/ break ;
354- default :/*test comment handling when adding new lines*/ $ varStr = 'test ' ; /*test comment handling when adding new lines*/ break ;
353+ case 'string ' : /*test comment handling when adding new lines*/ $ varStr = 'one line ' ;/*test comment handling when adding new lines*/ break ;
354+ default :/*test comment handling when adding new lines*/ $ varStr = 'test ' ; /*test comment handling when adding new lines*/ break ;
355355}
356356
357357switch ($ condition ) {
You can’t perform that action at this time.
0 commit comments