[source,php]
----
if ($condition)
  firstActionInBlock();
  secondAction();  // Noncompliant: secondAction is executed unconditionally
thirdAction();
----

[source,php]
----
if($condition) firstActionInBlock(); secondAction();  // Noncompliant: secondAction is executed unconditionally
----

[source,php]
----
if($condition) firstActionInBlock();  // Noncompliant
  secondAction();  // Executed unconditionally
----

[source,php]
----
$str = null;
for ($i = 0; $i < count($array); $i++)
  $str = $array[$i];
  doTheThing($str);  // Noncompliant: executed only on the last element
----
