235 Commits

Author SHA1 Message Date
TomasVotruba
3fa0848731 [CodeQuality] Fix return type copy 2019-11-07 21:47:04 +01:00
Tomas Votruba
41b37a07ff fix false static type of Symfony\SplFileInfo getRealPath() 2019-11-06 20:51:58 +01:00
Tomas Votruba
05ec417a40 fix various PHP version yield provider 2019-11-05 19:25:57 +01:00
Tomas Votruba
8d57420bd6 use yieldFilesFromDirectory() in tests instead of explicid fixture naming 2019-11-05 18:02:26 +01:00
Tomas Votruba
e4bf0e923c add coding-style set + apply 2019-11-05 13:05:14 +01:00
Tomas Votruba
b3a6c0154a skip extra spaces in tests output 2019-11-05 11:16:30 +01:00
Tomas Votruba
a82ea5af5f fixup! Fix else in SimplifyForeachToArrayFilterRector 2019-11-04 18:25:55 +01:00
Tomas Votruba
b9759f321d Fix else in SimplifyForeachToArrayFilterRector 2019-11-04 18:23:19 +01:00
Tomas Votruba
38afd6a996 [CodeQuality] Fix SimplifyIfReturnBoolRector for nullable scalar value 2019-11-04 18:01:49 +01:00
Tomas Votruba
0f47fa2379 [CodeQuality] Add property assigns to RemoveAlwaysTrueConditionSetInConstructorRector 2019-11-04 17:13:38 +01:00
Jeroen Smit
c41737e3a2 Merge branch 'master' of github.com:rectorphp/rector into previousStatementRewrite 2019-11-01 15:55:46 +01:00
Tomas Votruba
18ac9a4514 fix dynamic property outside anonymous class scope 2019-10-30 22:25:07 +01:00
Tomas Votruba
cbe41dc497 apply 2019-10-30 21:46:36 +01:00
Tomas Votruba
40f998ca90 add test case for auto_import_names + Rector rule 2019-10-30 21:46:36 +01:00
Tomas Votruba
a6ccb11cd6 fix default value type 2019-10-30 18:41:33 +01:00
Tomas Votruba
7606da42be add failing test case 2019-10-30 15:45:47 +01:00
Tomas Votruba
1620cf0211 apply code-quality 2019-10-30 15:38:30 +01:00
Tomas Votruba
6f667830fd Fix JoinStringConcatRector for too long lines 2019-10-30 14:38:43 +01:00
Tomas Votruba
e57526e4e4 Fix RemoveAlwaysTrueConditionSetInConstructorRector for nullable 2019-10-30 14:20:18 +01:00
Tomas Votruba
8dc4336ce8 add SetOptinosResolver and ConfigResolver 2019-10-30 12:17:26 +01:00
Tomas Votruba
40c49710e9 [cs] reoder private methods by call order 2019-10-30 10:49:07 +01:00
Jeroen Smit
44db1271cb Merge branch 'master' of github.com:rectorphp/rector into previousStatementRewrite 2019-10-27 18:14:00 +01:00
Jeroen Smit
10391ae7f2 Rewrite of expression to previous statement 2019-10-27 17:50:26 +01:00
Tomas Votruba
55826c1432 add ternary operator 2019-10-26 12:41:01 +02:00
Tomas Votruba
f2298600aa apply 2019-10-18 16:17:12 +02:00
Tomas Votruba
e91e8ea2c1 [CodeQuality] Add ArrayMergeOfNonArraysToSimpleArrayRector 2019-10-18 16:05:59 +02:00
Tomas Votruba
495ace61c6 apply on self 2019-10-17 18:48:03 +02:00
Tomas Votruba
42e4454b48 [CodeQuality] Add AddPregQuoteDelimiterRector 2019-10-17 18:47:07 +02:00
lapetr
a5151baaec [code-quality] RemoveAlwaysTrueConditionSetInConstructorRector - test for trait
#2162
2019-10-15 10:25:00 +02:00
Tomas Votruba
acfd930f54 apply PSR-12 2019-10-13 08:09:08 +02:00
Tomas Votruba
4bfbc18fbd cleanup 2019-10-04 19:31:24 +02:00
Tomáš Votruba
b1891bb057
Do not apply SimplifyIfReturnBoolRector when there are comments… (#2083)
Do not apply SimplifyIfReturnBoolRector when there are comments in between the if statements
2019-10-04 16:38:21 +02:00
Dorian Villet
a599a374dd Change implementation to keep the comments and stack them. 2019-10-04 15:26:55 +02:00
Jonas Elfering
c751fbe533 Clearify recursion 2019-10-04 15:08:10 +02:00
Jonas Elfering
3f509a2dd4 Add not refactorable testCases; clearify recursion 2019-10-04 14:36:48 +02:00
Jonas Elfering
0196d1efee Add ShortenElseIfRector
Fixes https://github.com/rectorphp/rector/issues/1945
2019-10-04 14:18:31 +02:00
Tomas Votruba
f04a602d47 apply 2019-10-03 11:59:58 +02:00
Dorian Villet
bbfa7b9f76 Add a failing test case. 2019-10-03 01:15:18 +02:00
Tomas Votruba
0da741a9a3 drop @return type from Iterator in tests 2019-09-27 14:40:09 +02:00
Tomas Votruba
e4eeb19c45 [CodeQuality] Add RemoveSoleValueSprintfRector 2019-09-26 13:44:04 +02:00
Tomas Votruba
980778d69b move SwapFuncCallArgumentsRector to Argument 2019-09-23 18:19:04 +02:00
Tomas Votruba
2858a9f7ea [PHP] Move tests + fixture to split package by version 2019-09-23 15:16:31 +02:00
Tomas Votruba
f558733611 [PHP] Split huge package to php by version rules 2019-09-23 13:38:51 +02:00
Tomas Votruba
d6d48ea44b make ShouldNotHappenException smarter 2019-09-21 13:30:03 +02:00
Tomas Votruba
3f6fddee71 make DocBlockManipulator protected in AbstractRector + add ColumnGenerator annotatoin parsing 2019-09-19 17:30:31 +02:00
Tomas Votruba
ca7d0cba15 use PHP highlight for herenow doc 2019-09-18 09:14:06 +02:00
Tomas Votruba
25509c9900 [Autodiscovery] init 2019-09-15 16:51:00 +02:00
Tomas Votruba
2244dad326 [tests] add PhpVersionFeature value object + fix public of protected function 2019-09-15 16:37:38 +02:00
Tomas Votruba
fe3152e817 add AssignManipulator + misc 2019-09-14 17:51:14 +02:00
Tomas Votruba
4c9ecba04c [tests] switch testFiles to data providers 2019-09-12 10:18:26 +02:00