<?php

if (true) {

} elseif (false) {

}

if (true) {

}


if (true) {

} else {

}


while (true) {

}

do {

} while (true);

function () {
	for ($i = 0; $i < 10; $i++) {
		if (true) {

		}

		// With line comment
		if (false) {

		}
	}
};

function ($values) {
	foreach ($values as $value) {


		/**
		 * With doccomment
		 */
		if (true) {

		}

		/*
		 * With block comment
		 */
		if (false) {

		}

		try {

			switch ($value) {
			}



		} catch (Throwable $e) {
			// Don't care
		}
	}
};

function () {
	doSomething(); // Do something

	foreach ([] as $value) {

	}



};

function () {
	doSomething();
	foreach ([] as $value) {

	} // Foreach
};
