39 Commits

Author SHA1 Message Date
Tomas Votruba
5eb323638f Move SimplifyBinarySwitchRector to BinarySwitchToIfElseRector in CodingStyle level 2018-11-04 23:48:59 +01:00
Tomas Votruba
785ac37cb7 Move SimplifyIdenticalFalseToBooleanNotRector to CodeQuality level 2018-11-04 23:36:51 +01:00
Tomas Votruba
e713775f20 add --debug option 2018-11-04 22:55:16 +01:00
Tomas Votruba
aaf409eed2 move php-parser related code under PhpParser namespace, add Maintainer type for services reading/writing to nodes 2018-11-04 02:17:02 +01:00
Tomas Votruba
630ebe61b4 NodeFactory cleanup 2018-11-03 21:53:08 +01:00
Tomas Votruba
c3558f65c4 [CodingStyle] Add NullableCompareToNullRector + add NodeFactoryTrait + cleanup 2018-11-03 18:01:19 +01:00
Tomas Votruba
b9dd90266a make use of helper method of AbstractRector 2018-10-31 22:15:41 +01:00
Tomas Votruba
bddc28eec9 Remove active from SimplifyArrayCallableRector 2018-10-31 21:35:36 +01:00
Tomas Votruba
218366f762 [cs] apply private method order 2018-10-31 16:35:15 +01:00
Tomas Votruba
e250342cd6 add SimplifyUselessVariableRector test cases 2018-10-31 09:07:08 +01:00
Gabriel Caruso
c2ccef23ab
Merge pull request #729 from rectorphp/simplify-empty-array-check
[WIP][CodeQuality] Create SimplifyEmptyArrayCheckRector
2018-10-30 00:38:38 +01:00
Tomas Votruba
7711f2af2d cleanup 2018-10-28 17:55:56 +01:00
Tomas Votruba
7b669d89ba [Doctrine] Make ReplaceParentRepositoryCallsByRepositoryPropertyRector 2018-10-28 17:50:10 +01:00
Tomas Votruba
aca6386f90 rename AssignToBinaryMap to AssignAndBinaryMap + add inverse binnary method 2018-10-27 16:02:49 +02:00
Tomas Votruba
a4af1e66d4 Add (bool) check 2018-10-27 15:37:49 +02:00
Tomas Votruba
fa46fb5dfe apply SimplifyIfReturnBoolRector on Rector code 2018-10-27 14:57:53 +02:00
Tomas Votruba
2125e24e1f normalize printer to keep 1 single line in the end + apply to code 2018-10-27 14:57:53 +02:00
Tomas Votruba
5236821a51 [CodeQuality] Add SimplifyIfReturnBoolRector 2018-10-27 13:35:36 +02:00
Tomas Votruba
9855690778 fix commented test 2018-10-26 12:14:54 +02:00
Tomas Votruba
c4a1e11e09 [CodeQuality] Add SimplifyUselessVariableRector 2018-10-26 00:24:28 +02:00
Gabriel Caruso
16510f00e2
[CodeQuality] Create SimplifyEmptyArrayCheckRector 2018-10-25 17:03:51 -03:00
Gabriel Caruso
90ac01c59b
Run code-quality level against Rector 2018-10-23 15:56:12 -03:00
Gabriel Caruso
7d01962d6f
Create ForeachToInArrayRector 2018-10-23 15:50:06 -03:00
Tomas Votruba
09027d06eb resolve phpstan reports 2018-10-22 18:02:36 +02:00
Tomas Votruba
6fa1d53b1c add isNull() to ConstFetchAnalyzer 2018-10-21 14:10:19 +02:00
Tomas Votruba
7dcde279f9 make use of NameResolver in Rector 2018-10-21 14:03:20 +02:00
Tomas Votruba
486f7f4b64 [PHPUnit] Add SimplifyForeachInstanceOfRector 2018-10-21 13:17:20 +02:00
Tomas Votruba
f330c5e9c2 make return null consistent on no change 2018-10-21 13:06:28 +02:00
Tomas Votruba
0de721e350 AbstractRector: change returnNode property to method to make remove process more intuitive 2018-10-17 19:47:09 +02:00
Tomas Votruba
395dc9b2e9 [CodeQuality] Move coupled location to rest of Rector in standalone package 2018-10-17 19:47:09 +02:00
Tomas Votruba
ab22d2c6a8 Add ConstFetchAnalyzerTrait 2018-10-17 19:47:09 +02:00
Tomas Votruba
e21ebbbaf2 [CodeQuality] Add SimplifyForeachToCoalescingRector 2018-10-16 15:34:26 +08:00
Tomas Votruba
986c5802e8 [CodeQuality] Add SimplifyBinarySwitchRector 2018-10-16 12:49:55 +08:00
Tomas Votruba
2d9618e175 add more array with callback functions 2018-10-16 00:04:08 +08:00
Tomas Votruba
3c0873e3b3 [CodeQuality] Add SimplifyArrayCallableRector 2018-10-16 00:00:46 +08:00
Tomas Votruba
a7afe1fed9 [CodeQuality] Add SimplifyFalseComparisonToNegateRector 2018-10-15 21:47:46 +08:00
Tomas Votruba
eb65b54111 [CodeQuality] Add SimplifyMirrorAssignRector 2018-10-15 17:41:53 +08:00
Tomas Votruba
f0fdc8e410 remove unused methods 2018-10-15 14:36:25 +08:00
Tomas Votruba
b4b728dc28 [CodeQuality] Add SimplifyInArrayValuesRector 2018-10-15 08:30:41 +08:00