PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.inc

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.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: 2,445 bytes
 

Contents

Class file image Download
<?php function nestingOne() { if ($condition) { echo 'hi'; } } function nestingFive() { if ($condition) { echo 'hi'; switch ($condition) { case '1': if ($condition === '1') { if ($cond) { echo 'hi'; } } break; } } } function nestingSix() { if ($condition) { echo 'hi'; switch ($condition) { case '1': if ($condition === '1') { if ($cond) { foreach ($conds as $cond) { echo 'hi'; } } } break; } } } function nestingTen() { if ($condition) { echo 'hi'; switch ($condition) { case '1': if ($condition === '1') { if ($cond) { switch ($cond) { case '1': if ($cond === '1') { foreach ($conds as $cond) { if ($cond === 'hi') { echo 'hi'; } } } break; } } } break; } } } function nestingEleven() { if ($condition) { echo 'hi'; switch ($condition) { case '1': if ($condition === '1') { if ($cond) { switch ($cond) { case '1': if ($cond === '1') { foreach ($conds as $cond) { if ($cond === 'hi') { if ($cond !== 'bye') { echo 'hi'; } } } } break; } } } break; } } } ?>