Commit graph

93 commits

Author SHA1 Message Date
3cc85feec7
TASK: Extend readme 2017-03-28 08:48:43 +02:00
69de131a4c
TASK: Improve readme 2017-03-28 08:40:19 +02:00
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
842a54d5d9
TASK: Fix quality issues 2017-03-23 16:40:03 +01:00
6a115bd8d0
TASK: Cleanup before PR
* Adjust some comments and formating.
* Add missing, but used, properties.
* Shorten variables used only once.

Resolves: #36
2017-03-23 16:24:22 +01:00
9b3d5d9515
BUGFIX: Support multiple interfaces
* Process extends as before.
* Process all interfaces in addition, not only the first one.
2017-03-23 16:12:40 +01:00
5a8260815c
Merge remote-tracking branch 'origin/develop' into feature/36-namespace-migration
* Make mapping file path configurable

Relates: #36, #37
2017-03-23 13:34:12 +01:00
6420c72945
FEATURE: Allow remapping of usages for redefiined classes
* As we already adjust function, trait and interface definitions, we now
  also migrate the usage of the old versions.
* This is done in second run, as mentioned in adjusted Readme.

Relates: #36
2017-03-23 13:24:24 +01:00
8fbe25a422
TASK: Cleanup missing vendor
* Add configured vendor in message for easer migration in IDEs (by
  hand).
* Remove non existing function from checks.

Relates: #36
2017-03-23 13:24:11 +01:00
1561c13b46
FEATURE: Improve handling of missing Vendor
* Check for string concatenation instead of earlier more stupid.

Relates: #36
2017-03-23 13:24:04 +01:00
f9f82b0629
FEATURE: Migrate plugin and module registration and configuration
* Prefix with configured vendor if first argument does not start with a
  string already.

Relates: #36
2017-03-23 13:23:54 +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
f91d3240e5
TASK: According to PR, use else instead of default 2017-03-23 13:23:18 +01:00
0d985ef42a
TASK: Fix call to undefined method
Relates: #33
2017-03-23 13:23:09 +01:00
9a13223d62
TASK: Rename method
* To follow CGL

Relates: #33
2017-03-23 13:22:58 +01:00
21c72c8b96
WIP|FEATURE: Handle trait and interfaces beside classes
* Also fix check whether another line should be added after namespace
  definition.

Relates: #36
2017-03-23 13:22:16 +01:00
Daniel Hürtgen
6eeeb50ecb Merge pull request #37 from DanielSiepmann/feature/make-mapping-path-configurable
FEATURE: Make path to mapping file configurable
2017-03-23 12:28:30 +01:00
1b610844b9
BUGFIX: PHPDoc 2017-03-23 10:18:01 +01:00
4e0c2802e4
FEATURE: Make path to mapping file configurable
* This way one can define the path in his own ruleset.xml
2017-03-23 09:37:08 +01:00
Daniel Hürtgen
5a70f8458c Merge pull request #35 from DanielSiepmann/feature/cleanup
Feature/cleanup
2017-03-23 09:04:09 +01:00
fcb778d903
WIP|FEATURE: Provide sniff to convert old legacy class definitions
* Insert missing namespace, based on existing class name.
* Allow configuration of Vendor to use.

* Will not adjust uses of the class.
* All other sniffs are broken right now, they need to be adjusted to
  new abstract class.

Relates: #36
2017-03-23 08:52:25 +01:00
fb746bf39d
TASK: According to PR, use else instead of default 2017-03-23 08:41:06 +01:00
05ce3d0aef
TASK: Fix call to undefined method
Relates: #33
2017-03-21 13:50:22 +01:00
aa76ad796a
TASK: Keep all TypeHints the same
Relates: #33
2017-03-21 13:41:44 +01:00
af6b4dad51
TASK: Rename method
* To follow CGL

Relates: #33
2017-03-21 13:30:04 +01:00
simonhard
f1b6cc86c1 Merge pull request #32 from DanielSiepmann/hotfix/fix-static-call-sniff
BUGFIX: Fix bug introduced in e6e372f8b1
2017-03-21 10:38:23 +01:00
0a8f36edd7 Merge pull request #31 from DanielSiepmann/hotfix/composer_dependencies
change composer dependency to right path of phpcs
2017-03-21 10:32:35 +01:00
5fd8e965ac
BUGFIX: Fix bug introduced in e6e372f8b1
* Allow static calls to find class name before $stackPtr.
2017-03-21 10:31:14 +01:00
Simon Huebner
4ea8af58cd change composer dependency to right path of phpcs 2017-03-21 10:20:46 +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