PHP Classes

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

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   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: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year 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; } } } ?>