1243 Commits

Author SHA1 Message Date
Tomas Votruba
d166ff0151 improve CodeQuality 2018-11-07 02:50:22 +01:00
Tomas Votruba
bfc8969323 Fix ForeachToInArrayRector case 2018-11-07 02:28:52 +01:00
Tomas Votruba
8cce043697 make use of BinaryOpMaintainer 2018-11-07 01:24:44 +01:00
Tomas Votruba
082864b772 fix SimplifyEmptyArrayCheckRector for non-empty cases 2018-11-07 01:07:31 +01:00
Tomas Votruba
396f076b71 Fix too deep method chain calls performance on analysis 2018-11-07 00:20:44 +01:00
Tomas Votruba
56e701d5a2 CodeQuality various fixes 2018-11-05 09:47:50 +01:00
Tomas Votruba
eb796af9fd fix SimplifyIfReturnBoolRector 2018-11-05 09:17:05 +01:00
Tomas Votruba
f6b786c749 show exceptions on -v 2018-11-05 02:31:25 +01:00
Tomas Votruba
c8e77079ac improve SimplifyConditionsRector 2018-11-05 01:56:27 +01:00
Tomas Votruba
b0bb0568ca show Rector class on caused error 2018-11-05 00:36:12 +01:00
Tomas Votruba
1d23411611 Move SimplifyArrayCallableRector to SimpleArrayCallableToStringRector in CodingStyle level 2018-11-05 00:07:09 +01:00
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
539c4e7890 fix unstable %vendor% param import on Rector run in non-root directory [ref #732] 2018-11-04 21:34:00 +01:00
Tomas Votruba
7deeab99ec merge ClassLikeMaintainer + ClassDependencyMaintaienr to ClassMaintainer 2018-11-04 20:13:03 +01:00
Tomas Votruba
1d56621757 move Builder under PhpParser\Node namespace 2018-11-04 19:06:27 +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
058c7d8c56 move PropertyFetchNodeFactory to NodeFactoryTrait 2018-11-03 23:05:29 +01:00
Tomas Votruba
67eebbc0fe move MethodCallNodeFactory to NodeFactoryTrait 2018-11-03 22:39:44 +01:00
Tomas Votruba
d71d6a1f12 make use of NodeFactoryTrait 2018-11-03 21:53:08 +01:00
Tomas Votruba
630ebe61b4 NodeFactory cleanup 2018-11-03 21:53:08 +01:00
Tomas Votruba
8cc886bd29 Moving TypeAnalyzer logic to NodeTypeResolver 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
c0222a9398 Improve CountOnNullRector 2018-11-03 00:06:56 +01:00
Tomas Votruba
3c4a110f6a Dislay file names in debug mode, merge ConsoleStyle to SymfonyStyle 2018-11-02 18:27:00 +01:00
Tomas Votruba
86140cf9ed Fix CountOnNullRector for array typehint 2018-11-02 17:32:33 +01:00
Tomas Votruba
6b8a9acdf2 [PHP] Fix AssignArrayToStringRector [closes #743] 2018-11-02 17:04:49 +01:00
Tomas Votruba
37c1301c5e [Symfony] Add RootNodeTreeBuilderRector 2018-11-02 16:43:06 +01:00
Tomas Votruba
c4aa54142f [Symfony] Add ArrayArgumentProcessRector 2018-11-02 10:31:09 +01:00
Tomas Votruba
d6d365e0cf add createConstFetch 2018-10-31 23:12:46 +01:00
Tomas Votruba
6375c12b14 make use of helper method of AbstractRector 2018-10-31 23:10:39 +01:00
Tomas Votruba
b9dd90266a make use of helper method of AbstractRector 2018-10-31 22:15:41 +01:00
Tomas Votruba
a33074bdf5 remove rename identifier helper method, too overdetailed 2018-10-31 21:43:43 +01:00
Tomas Votruba
bddc28eec9 Remove active from SimplifyArrayCallableRector 2018-10-31 21:35:36 +01:00
Tomas Votruba
c5981e50e2 Remove active from AssertComparisonToSpecificMethodRector 2018-10-31 21:32:48 +01:00
Tomas Votruba
a2d68ad756 [PHPUnit] Remove active* helper properties 2018-10-31 20:57:26 +01:00
Tomas Votruba
218366f762 [cs] apply private method order 2018-10-31 16:35:15 +01:00
Tomas Votruba
05e5df7406 [cs] apply property sort 2018-10-31 16:35:15 +01:00
Tomas Votruba
e250342cd6 add SimplifyUselessVariableRector test cases 2018-10-31 09:07:08 +01:00
Tomas Votruba
d825640717 add test case for #743 2018-10-30 19:13:39 +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
e4ebea3ae8 add method rename 2018-10-27 16:03:14 +02:00
Tomas Votruba
3ff47f7847 [Guzzle] Add MessageAsArrayRector [closes #557] 2018-10-27 16:03:14 +02: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