1.2.410. Empty Instructions

Empty instructions are part of the code that have no instructions.

This may be trailing semi-colon or empty blocks for if-then structures.

Comments that explains the reason of the situation are not taken into account.

<?php
    $condition = 3;;;;
    if ($condition) { }
?>

1.2.410.1. Suggestions

  • Remove the empty lines

  • Fill the empty lines

1.2.410.2. Specs

Short name

Structures/EmptyLines

Rulesets

All, Analyze, Dead code

Exakat since

0.8.4

PHP Version

All

Severity

Minor

Time To Fix

Instant (5 mins)

Precision

High

Examples

Zurmo, ThinkPHP

Available in

Entreprise Edition, Exakat Cloud