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

Empty line between class/method and it's PHPDoc #18

Open aik099 opened 10 years ago

aik099 commented 10 years ago

Empty line between class/method and it's PHPDoc should be reported as error. Tricky case if instead of finding /** or */ we'll find } or { then it's ok, because this means, that method has no PHPDoc.

/**
 * @expectedException \aik099\QATools\PageObject\Exception\UrlException
 * @expectedExceptionCode \aik099\QATools\PageObject\Exception\UrlException::TYPE_INVALID_URL
 */

public function testConstructorMissingProtocol()
{
    $builder = new Builder($normalized_components);
}