5fd8e965ac
BUGFIX: Fix bug introduced in e6e372f8b1
...
* Allow static calls to find class name before $stackPtr.
2017-03-21 10:31:14 +01:00
simonhard
c59351f92e
Merge pull request #30 from DanielSiepmann/feature/22-is_a-checks
...
Feature/22 is a checks
2017-03-21 09:43:38 +01:00
simonhard
b080696803
Merge pull request #29 from DanielSiepmann/feature/refactor-string-classname-replacement
...
TASK: Refactor code
2017-03-21 09:38:18 +01:00
a16cad06cd
FEATURE: Provide sniff to migrate is_a calls
...
Resolves: #22
2017-03-21 09:14:11 +01:00
ba2ed2cf5f
TASK: Refactor code
...
* As we sometimes have to fix classnames inside a string, move this
common work to trait.
* Also make classname "free" of string quotes inside the check, not the
concrete sniffs.
2017-03-21 08:59:26 +01:00
Daniel Hürtgen
85950cb181
Merge pull request #28 from DanielSiepmann/feature/refactor-common-process-method
...
Feature/refactor common process method
2017-03-21 08:49:35 +01:00
Daniel Hürtgen
03fb9ab839
Merge pull request #27 from DanielSiepmann/feature/21-type-hint-catches
...
FEATURE: Provide sniff for catch statements
2017-03-21 08:41:18 +01:00
e6e372f8b1
TASK: Remove duplicate code
...
* Move same code as default to trait.
2017-03-21 08:36:53 +01:00
ca741263b4
FEATURE: Provide sniff for catch statements
...
Resolves: #21
2017-03-21 08:30:19 +01:00
5fd9083b01
Merge pull request #18 from DanielSiepmann/hotfix/14-double-backslash
...
BUGFIX: Leading namespace separator in replaced classnames
2017-03-16 17:33:06 +01:00
404396b020
Merge pull request #20 from DanielSiepmann/feature/16-use-statements
...
Feature/16 use statements
2017-03-16 17:09:21 +01:00
Daniel Hürtgen
fd57147c2a
Merge branch 'develop' into feature/16-use-statements
2017-03-16 16:56:23 +01:00
Daniel Hürtgen
db5f6a0209
Merge pull request #19 from DanielSiepmann/hotfix/phpdocs
...
BUGFIX: Fix wrong phpdocs of sniff classes
2017-03-16 16:55:45 +01:00
Daniel Hürtgen
2e7a90d636
Merge branch 'develop' into hotfix/14-double-backslash
2017-03-16 16:52:12 +01:00
Daniel Hürtgen
917e290bf3
Merge branch 'develop' into hotfix/phpdocs
2017-03-16 16:47:51 +01:00
Daniel Hürtgen
9364b8d61e
BUGFIX: Fix missing word in phpdocs of sniff classes
2017-03-16 16:45:56 +01:00
Daniel Hürtgen
e98c52fbd9
Merge pull request #26 from DanielSiepmann/feature/25-make-phpdoctags-configurable
...
FEATURE: Make PHPDoc tags configurable
2017-03-16 16:43:21 +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
58eabf43de
BUGFIX: Fix wrong phpdoc for sniff
2017-03-16 15:19:09 +01:00
45d7de293c
BUGFIX: Fix wrong phpdocs of sniff classes
2017-03-16 15:18:10 +01:00
38651f315e
FEATURE: Migrate use statements
...
Resolves: #16
2017-03-16 15:13:33 +01:00
0012c229ed
BUGFIX: Leading namespace separator in replaced classnames
...
* First remove possible namespace seperators from class name to allow
lookup.
* Check whether we have to prefix the new classname with namespace
seperator.
Resolves: #14
2017-03-16 15:04:01 +01:00
Daniel Hürtgen
1b2e72ec96
Merge pull request #17 from DanielSiepmann/feature/4-instantiation
...
Feature/4 instantiation
2017-03-16 14:40:13 +01:00
bbc1daf105
TASK: Add further information to doc, what exactly is supported
...
Relates: #4
2017-03-16 14:17:40 +01:00
187dc918a9
FEATURE: Migrate instantiation through object manager
...
* Mark "create" as deprecated with a warning.
* Migrate first argument of "create" and "get" calls if they are
deprecated.
Resolves: #4
2017-03-16 14:15:04 +01:00
080816c530
Merge remote-tracking branch 'origin/develop' into feature/4-instantiation
2017-03-16 14:03:15 +01:00
Daniel Hürtgen
3152f89907
Merge pull request #13 from DanielSiepmann/feature/3-inline-ide-docs
...
Feature/3 inline ide docs
2017-03-16 13:49:37 +01:00
e2bae45829
FEATURE: Respect class $var and $var class
...
* Respect both orders.
* Replace regexes with array checks.
Relates: #3
2017-03-16 13:44:03 +01:00
5cf98decb0
Merge remote-tracking branch 'origin/develop' into feature/4-instantiation
2017-03-16 12:07:06 +01:00
6361db2eaf
TASK: Use regex instead of whitespace char
...
* To be more bulletproof.
Relates: #3
2017-03-16 12:01:01 +01:00
c3358654fa
BUGFIX: Fix visibility of method
...
Relates: #3
2017-03-16 11:33:50 +01:00
dcc2b43258
Merge remote-tracking branch 'origin/develop' into feature/3-inline-ide-docs
2017-03-16 11:32:54 +01:00
Daniel Hürtgen
6617e2d4ab
Merge pull request #10 from DanielSiepmann/feature/7-instanceof
...
Feature/7 instanceof
2017-03-16 11:29:54 +01:00
cc9552e028
TASK: Document configuration option
...
Relates: #7
2017-03-16 11:10:39 +01:00
cdccab83bc
BUGFIX: Allow replacement of method
...
* As this method should be replaces by concrete classes.
Relates: #7
2017-03-16 11:03:20 +01:00
ae3c850e58
FEATURE: Make legacyExtensions configurable
...
* Make property public to allow configuration through ruleset.xml
* Provide example configuration in ruleset.xml
Relates: #7
2017-03-16 11:02:49 +01:00
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