PHP Classes

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

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   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: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 2 days 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 { }