PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc
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,738 bytes
 

Contents

Class file image Download
<?php if ($something) { } foreach ($this as $that ) { } while (true) { for ($i = 0; $i < 10; $i++) { } if ($something) { } foreach ($this as $that) { do { } while ( true ); } } if ($defaultPageDesign === 0 && $defaultCascade === TRUE && $defaultChildDesign === 0 ) { $settingsUpdated = FALSE; } foreach ( $blah as $var ) { if ( $blah ) { } } if ( $defaultPageDesign === 0 && $defaultCascade === TRUE && $defaultChildDesign === 0 ) { $settingsUpdated = FALSE; } if ( // comment $something ) { } while ( /* comment */ true ) { } // phpcs:set PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 1 // phpcs:set PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 1 foreach ($something as $blah => $that) {} foreach ( $something as $blah => $that ) {} foreach ( $something as $blah => $that ) {} // phpcs:set PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 0 // phpcs:set PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 0 $binary = b"binary string"; if ($expr1 && $expr2 ) { } if ($expr1 && $expr2 /* comment */ ) { } if ($expr1 && $expr2 /* comment */ ) { } $r = match ($x) {}; $r = match ( $x ) {}; // phpcs:set PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 1 // phpcs:set PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 1 $r = match ($x) {}; $r = match ( $x ) {}; $r = match ( $x ) {}; // phpcs:set PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 0 // phpcs:set PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 0