72 Commits

Author SHA1 Message Date
Tomas Votruba
ba3d0707e6 remove unused configs 2018-12-10 16:40:09 +01:00
Tomas Votruba
2a00f0d51b rename Wrong ns to Fixture in tests 2018-12-07 21:51:59 +01:00
Tomas Votruba
ef288d4045 [tests] rename test files to fixtures 2018-12-06 02:09:02 +01:00
Tomas Votruba
3420edeae3 add JoinWrongAndCorrectTestsRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 03:10:15 +01:00
Tomas Votruba
7c6a8be85e simlify tests by SimplifyTestsRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 22:53:11 +01:00
Tomas Votruba
14580c07e7 add old way to IntegrationRectorTestCaseTrait
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 22:50:16 +01:00
Tomas Votruba
73466ac247 rename test files method to provideFiles()
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 20:13:46 +01:00
Tomas Votruba
9faa7fbd4b [PHP] Add *ScalarTypehintRector + *TypeInfo
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-01 15:55:46 +01:00
Tomas Votruba
5778103f21 null compare over boolcast in SimplifyIfReturnBoolRector 2018-11-10 00:16:25 +01:00
Tomas Votruba
169f160efd move SimplifyEmptyArrayCheckRector to BooleanAnd category 2018-11-10 00:16:25 +01:00
Tomas Votruba
09e949f76e make use of matchFirstAndSecondConditionNode Node type 2018-11-09 23:31:45 +01:00
Tomas Votruba
ea28a2600a fix SimplifyEmptyArrayCheckRector for not empty non-arrays 2018-11-09 23:22:42 +01:00
Tomas Votruba
475db7bf4d fix cs 2018-11-09 22:19:04 +01:00
Tomas Votruba
8a74acf11b include strict/non-strict in SimplifyArraySearchRector 2018-11-09 22:18:48 +01:00
Tomas Votruba
1877d4069f fix constant bug in UnnecessaryTernaryExpressionRector 2018-11-09 21:55:12 +01:00
Tomas Votruba
9f5265ceaa keep commented dead code in DeadCodeRemovingRector 2018-11-09 15:02:00 +01:00
Tomas Votruba
dabf8bac49 [PHPStan] Add RecastingRemovalRector 2018-11-08 13:52:02 +01:00
Tomas Votruba
01dab609a3 [CodeQuality] Add DeadCodeRemovingRector 2018-11-08 13:17:37 +01:00
Tomas Votruba
36dc29b56d merge Utils package to PhpParser 2018-11-08 13:04:38 +01:00
Tomas Votruba
b62c31bcad Add NodeRemovingCommander 2018-11-07 21:30:55 +01:00
Tomas Votruba
bf37049776 Move Expression re-type to AbstractRector 2018-11-07 20:52:37 +01:00
Tomas Votruba
51443d27ec misc 2018-11-07 20:39:33 +01:00
Tomas Votruba
9283ac30bf make use of AssignAndBinaryMap 2018-11-07 19:59:22 +01:00
Tomas Votruba
71824ab33c make use of BinaryOpMaintainer 2018-11-07 19:49:13 +01:00
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
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
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
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