File "InlineControlStructureUnitTest.js.fixed"
Full Path: /home/warrior1/public_html/languages/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js.fixed
File size: 565 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)'};
}