Commit graph

10 commits

Author SHA1 Message Date
e88e177440
FEATURE: Migrate legacy class names in TypeHints
* Check function / method definitions and their type hints.

Resolves: #5
2017-03-07 16:24:17 +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
eab9d0c999
TASK: Fix PR issue, add exception if type could not be fixed 2017-03-07 13:58:50 +01:00
8d8a8cc330
TASK: Adjust flow
* Reduce indentation by introducing guards to code.
2017-03-07 13:52:40 +01:00
4fe1287247
TASK: Fix Scrutinizer issues 2017-03-07 13:41:36 +01:00
f912313da3 FEATURE: Also migrate legacy classes in extends
* Migrate legacy classes after extends keyword.
* Sort token types alphabetical.
2017-03-07 13:36:18 +01:00
1aaf0e5840 BUGFIX: Prefix classes with slash to prevent issues
* As we might be in a namespace, we have to prefix new class names with
  a leading slash
2017-03-07 13:36:18 +01:00
f4fbbcab77
FEATURE: Provide first basic implementation of classmapping
* Install PHP CodeSniffer.
* Install our project as new Standard.
* Set our Standard as default.
* Provide first basic implementation to detect implemented interfaces
  with old legacy class names and migrate them to new ones.
2017-03-07 13:36:09 +01:00