aik099 / CodingStandard

The PHP_CodeSniffer coding standard I'm using on all of my projects
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Allow block/doc comment around control structure in function #69

Open aik099 opened 9 years ago

aik099 commented 9 years ago

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());
    }
}