aik099/CodingStandard

Allow block/doc comment around control structure in function

Opened this issue · 0 comments

Code with error:

public function selectButtonByValue($value)
{
    /** @var $button RadioButton */
    foreach ( $this as $button ) {
        $a;
    }

    $something = 5;

    /** @var ITypifiedElement $element */
    foreach ( $iterator as $element ) {
        $element->setName($this->getName());
    }
}