File "InlineControlStructureUnitTest.js"

Full Path: /home/warrior1/public_html/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js
File size: 533 bytes
MIME-type: text/plain
Charset: utf-8



if (something) print 'hello';

if (something) {
    print 'hello';
} else print 'hi';

if (something) {
    print 'hello';
} else if (something) print 'hi';

for (i; i > 0; i--) print 'hello';

while (something) print 'hello';

do {
    i--;
} while (something);

do i++; while (i < 5);

SomeClass.prototype.switch = function() {
    // do something
};

if ($("#myid").rotationDegrees()=='90')
    $('.modal').css({'transform': 'rotate(90deg)'});

if ($("#myid").rotationDegrees()=='90')
    $foo = {'transform': 'rotate(90deg)'};