Commit graph

7 commits

Author SHA1 Message Date
426dc8b318
BUGFIX: Define property where it's used
* As we use it in parent class, define it there.
2017-03-23 16:48:28 +01:00
eaa99973b1
TASK: Refactor existing sniffs to work again
* As we migrated trait to class, all sniffs have to extend instead to
  use the new class.
* Also make PhpCsFile import and type hints the same across all sniffs.

Relates: #36
2017-03-23 13:23:26 +01:00
fc070f3bf6
FEATURE: Make PHPDoc tags configurable
* Make them configurable in Sniff.
* Extend readme with new configuration option.
* Provide example in ruleset.xml

Resolves: #25, #24, #23
2017-03-16 16:25:55 +01:00
cec410eabe
BUGFIX: Fix visibility of method
* Only this way we can overwrite the content and provide the more
  specific class name replacement.
2017-03-14 10:01:46 +01:00
d1a2271e6e
FIX: Adjust variable name and type
* As the property only contains the content, and content is a string, we
  adjust the code accordingly.
2017-03-07 16:22:37 +01:00
10ee6295ac
TASK: Add suffix to trait and @var
* Add @var to processed annotations.
* Add suffix to trait.
2017-03-07 15:17:47 +01:00
9e0106c83f
FEATURE: Also migrate PHPDoc annotations
* Migrate @param and @return statements.
2017-03-07 14:56:18 +01:00