72 Commits

Author SHA1 Message Date
Tomas Votruba
28f51cd5ce [CodingStyle] Improve NewlineBeforeNewAssignSetRector 2019-07-16 22:47:29 +02:00
Tomas Votruba
473460e1e5 [CodingStyle] Add NewlineBeforeNewAssignSetRector 2019-07-15 20:35:52 +02:00
Tomas Votruba
495063dc60 [CodingStyle] Add EncapsedStringsToSprintfRector 2019-07-10 16:42:22 +02:00
Ravan Scafi
7c9e153e6a
Don't mess with lines between docblock comment and var type. 2019-07-08 11:51:50 -03:00
Tomas Votruba
16ebd05cee [CodingStyle] Fix extra slash in array simple types 2019-06-23 16:42:50 +02:00
Tomas Votruba
2c632b2b79 remove duplicated CompleteVarDocTypeConstantRector 2019-06-23 16:42:50 +02:00
Tomas Votruba
c3c4574266 Fix reporting of changed nodes [close #1534] 2019-06-05 16:37:54 +02:00
Tomas Votruba
f02b639549 fix cs 2019-06-05 16:37:54 +02:00
Tomas Votruba
d94f47b276 [ClassMethod] Add AddMethodParentCallRector 2019-06-05 16:36:19 +02:00
Tomas Votruba
c59a014be5 fix static 2019-06-04 18:28:01 +03:00
Tomáš Votruba
fff12cab46
Merge pull request #1538 from Aerendir/RemoveUnusedAliasRector-namespace-conflicts-1537
Don't remove aliases of classes with same name but different namespaces.
2019-06-04 17:37:52 +03:00
Tomas Votruba
8dc54e73f4 skip nullable array for ArrayPropertyDefaultValueRector [closes #1542] 2019-06-04 15:06:01 +03:00
Adamo Crespi
761c720068
Update packages/CodingStyle/tests/Rector/Use_/RemoveUnusedAliasRector/Fixture/different_namespaces_same_name.php.inc
Co-Authored-By: Tomáš Votruba <tomas.vot@gmail.com>
2019-06-04 11:12:40 +02:00
Aerendir
cf92b2a53a Don't remove aliases of classes with same name but different namespaces.
Issue #1537.
2019-06-03 18:09:40 +02:00
Tomas Votruba
a0bb1ed604 cs: fix array indent 2019-05-28 20:11:19 +02:00
Tomas Votruba
2f6e3bef75 [CodingStyle] Add VarConstantCommentRector 2019-05-26 13:13:22 +02:00
Tomas Votruba
fa7d04518a [CodingStyle] Add SplitDoubleAssignRector 2019-05-26 02:08:08 +02:00
Tomas Votruba
0174637de9 [CodingStyle] Add ArrayPropertyDefaultValueRector 2019-05-26 01:42:49 +02:00
Tomas Votruba
08868e457d [CodingStyle] Add CatchExceptionNameMatchingTypeRector 2019-05-26 01:20:34 +02:00
Tomas Votruba
7cc7fc6ac0 [CodingStyle] Add FollowRequireByDirRector 2019-05-26 00:58:11 +02:00
Tomas Votruba
fc62346caf [CodingStyle] Add ConsistentPregDelimiterRector 2019-05-26 00:16:31 +02:00
Tomas Votruba
53cd941dcd refactor ImportFullyQualifiedNamesRector to allow non-namespaced elements 2019-05-22 17:33:51 +02:00
Tomas Votruba
04949c3094 add partial support already imported support to ImportFullyQualifiedNamesRector 2019-05-19 12:09:53 +02:00
Tomas Votruba
b63a0821c8 Add function support to ImportFullyQualifiedNamesRector 2019-05-03 00:10:27 +02:00
Tomas Votruba
f409a5fc70 fix already imported 2019-05-01 19:31:44 +02:00
Tomas Votruba
a1d600fc2c add failing test case 2019-05-01 14:57:36 +02:00
Tomas Votruba
87635a556b import just once 2019-05-01 14:53:58 +02:00
Tomas Votruba
3dcb1bf35f make ImportFullyQualifiedNamesRector take into account existing imports on combination of PHP and doc block 2019-05-01 14:37:04 +02:00
Tomas Votruba
c5fc331857 add ImportsInClassCollection 2019-05-01 13:51:56 +02:00
Tomas Votruba
85ff969f30 [CodingStyle] Fix ImportFullyQualifiedNamesRector for multiple same-ending doc types 2019-05-01 13:51:38 +02:00
Tomas Votruba
c15c8b1992 [CodingStyle] Fix ImportFullyQualifiedNamesRector for self imports 2019-05-01 11:30:06 +02:00
Tomas Votruba
9e0d83fdff [CodingStyle] Fix interface short name identical with class name in ImportFullyQualifiedNamesRector + add doc block import 2019-05-01 00:47:45 +02:00
Tomas Votruba
1fe23d12c8 merge getRectorClass() and getRectorConfiguration() 2019-04-29 07:36:22 +02:00
Tomas Votruba
71f1af830c [tests] Refactor tests to use container just once, if not enforced config 2019-04-29 00:36:52 +02:00
Tomas Votruba
0973ceb8be apply import on packages 2019-04-17 22:28:45 +02:00
Tomas Votruba
b71be51f7d [CodingStyle] Add ImportFullyQualifiedNamesRector 2019-04-17 21:56:17 +02:00
Tomas Votruba
328d093724 [CodingStyle] Add SplitStringClassConstantToClassConstFetchRector 2019-04-17 21:54:36 +02:00
Tomas Votruba
e34a29ad15 Add BuilderFactory to AbstractRector 2019-04-13 01:32:50 +02:00
Tomas Votruba
e20ffc375f [CodingStyle] Add SplitGroupedConstantsAndPropertiesRector 2019-04-11 23:18:29 +02:00
Tomas Votruba
32bc37f099 [CodingStyle] Add || support for 2 cases with the same output 2019-03-09 12:45:06 +00:00
Tomas Votruba
31d1cf253f fix NullableCompareToNullRector for various arrays 2019-02-27 13:14:20 +01:00
Tomas Votruba
962956bda1 [CodingStyle] Improve nullable compare for empty scalars 2019-02-27 12:58:43 +01:00
Tomas Votruba
2a2703a0bc [DeadCode] Add RemoveDeadConstructorRector 2019-02-27 12:35:13 +01:00
Tomas Votruba
3302c21b5f [CodingStyle] Add SymplifyQuoteEscapeRector 2019-02-27 12:23:55 +01:00
Tomas Votruba
ea599e32be fix used doc alias 2019-02-26 01:12:03 +01:00
Tomas Votruba
59e76e887b correct Celebrity config 2019-02-23 13:10:45 +01:00
Tomas Votruba
f666bbe1de add class test to BinarySwitchToIfElseRector 2019-02-23 10:45:50 +01:00
Tomas Votruba
2bc71c3949 move SetTypeToCastRector to celebrity level 2019-02-23 09:38:31 +01:00
Tomas Votruba
945291a960 move ConsistentImplodeRector under Celebrity level 2019-02-23 01:11:40 +01:00
Tomas Votruba
624d1b528d improve trait and interface support for RemoveUnusedAliasRector 2019-01-26 13:56:05 +01:00