PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
Size: 1,103 bytes
 

Contents

Class file image Download
if (something) { } for (i = 0; i < 10; i++) { } while (true) { for (i = 0; i < 10; i++) { } if (something) { } do { } while (true); } if (one) { } else (two) { } else if (three) { } if (one) { } else (two) { } else if (three) { } switch (blah) { case 'one': if (blah) { // There are no spaces before break. } break; default: if (blah) { // There are no spaces before break. } break; } switch (blah) { case 'one': if (blah) { // There are no spaces before break. } break; default: if (blah) { // Code here. } } for (i = 0; i < 10; i++) { if (blah) { } break; } while (true) { for (i = 0; i < 10; i++) { if (something) { } } do { alert(i); } while (true); } for ( i = 0; i < 10; i++ ) { if ( blah ) { } } var x = { a: function () { if (blah) { } }, }; if (one) { } // else if something else if (two) { } // else do something else { }