Ticket Details

Rule for `while` loop should be updated to account for `do` loops

RFC Ticket (closed)

Currently, the QA rules always expect a `while (...)` statement to be followed by an opening brace. This is invalid for `do {...} while (...)` loops, as in the following:

{{{
[Failed ] syntax check of `libraries/lithium/console/Command.php`
 182|   5| No brace for `while` statement
}}}

The rule should be updated to account for this.
on 08.24.10 reported by: nate owned by: davidpersson

Updates

(fixed) on 08.24.10 by davidpersson
  • id was changed to 255
  • number was changed to 2
  • project_id was changed to 5
  • owner was changed to davidpersson
  • status was changed to closed
  • resolution was changed to fixed
  • title was changed to Rule for `while` loop should be updated to account for `do` loops
  • description was changed
Fixed in [88947fcd01bc8db8d5f01edb63958456b5156e49]. 

See also:
http://github.com/UnionOfRAD/phpca/commit/bff0622e975e62547f37a57efd65c45bb35450ed