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

Validate tag order in PHPDoc function comments #22

Open aik099 opened 10 years ago

aik099 commented 10 years ago

Validate, that when present these tags must be in following order:

  1. @param
  2. @return
  3. @throw
  4. @throws
  5. @expectedException
  6. @expectedExceptionCode
  7. @expectedExceptionMessage
  8. @dataProvider
aik099 commented 8 years ago

The idea from https://github.com/squizlabs/PHP_CodeSniffer/issues/852#issuecomment-170110963 might help.