Commit graph

229 commits

Author SHA1 Message Date
20722f26d1
TASK: Refactor code base
* As method does not belong to class renaming, but is a general method,
  it was moved to a new trait.

Relates: #4
2017-03-14 11:37:06 +01:00
4134ba98f3
FEATURE: Migrate makeInstance instantiations
Relates: #4
2017-03-14 10:06:07 +01:00
5196baf185
FEATURE: Migrate legacy class names after "new"
Relates: #4
2017-03-14 10:02:36 +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
1eb52ff975
TASK: Remove development package psysh
* Instead install it on your local machine, it's not related to this
  project.
2017-03-14 09:19:12 +01:00
b3023f94ff
FEATURE: Migrate inline comments for IDEs
* Check all inline comments matching the necessary pattern.
* Check the contained class name.
* Migrate class name.

Resolves: #3
2017-03-14 08:42:20 +01:00
11cfcf8563
TASK: Extend docs with new feature 2017-03-14 08:40:45 +01:00
097fd7522c
FEATURE: Migrate legacy class names for insteanceof
* Check classes after instanceof token and migrate them when possible

Resolves: #7
2017-03-14 08:38:19 +01:00
1a17e160b5 FEATURE: Display new class name in error
* To be more helpful while searching without fixing.
* E.g. if sniffs are integrated into IDE, the user has a chance to fix
  them while checking.
2017-03-14 08:16:33 +01:00
04a1b860a6 TASK: Adjust visibility of trait members
* As they are internal API and even protected is published to the using
  classes as this is a trait.
2017-03-14 08:16:33 +01:00
Daniel Hürtgen
56f3bdf245 Merge pull request #11 from DanielSiepmann/feature/extend-docs
TASK: Improve documentation
2017-03-10 11:47:52 +01:00
7748d46c1d
FEATURE: Provide a "preview"
* To let other know whether its helpful for them
2017-03-09 11:57:49 +01:00
913d365a08
TASK: Improve documentation
* Provide basic usage.
* Provide what's included.
2017-03-09 11:49:41 +01:00
Daniel Hürtgen
8c7a671ea3 Merge pull request #9 from DanielSiepmann/feature/6-static-calls
FEATURE: Migrate static calls to legacy classnames
2017-03-09 08:34:50 +01:00
73d58fffb6
FEATURE: Migrate static calls to legacy classnames
Fixes: #6
2017-03-08 21:47:56 +01:00
Daniel Hürtgen
c20662cb4a Merge pull request #8 from DanielSiepmann/feature/5-typehints
Feature/5 typehints
2017-03-07 17:27:34 +01:00
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
Daniel Hürtgen
2d57fef6f1 Merge pull request #2 from DanielSiepmann/feature/extend-legacy-class-name-migration
FEATURE: Also migrate PHPDoc annotations
2017-03-07 15:19:23 +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
Daniel Hürtgen
eb663573fa Merge pull request #1 from DanielSiepmann/feature/migrate-legacy-classnames
Feature/migrate legacy classnames
2017-03-07 14:00:26 +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
12e99db455 Initial commit 2017-03-07 11:41:40 +01:00