1270 Commits

Author SHA1 Message Date
Gabriel Caruso
3ba2759970
[PHPUnit] Convert iterator_count into assertCount 2018-11-18 13:19:15 -02:00
Tomas Votruba
e0a399eefc [PHPStan] Add PHPStormVarAnnotationRector 2018-11-17 01:20:21 +02:00
Tomáš Votruba
6a94b8c274
Merge pull request #778 from bendavies/JmsInjectAnnotationRector-improve
impove JmsInjectAnnotationRector
2018-11-15 14:26:12 +02:00
Ben Davies
7cbe2a3620 add support for class names as service ids 2018-11-13 10:20:31 +00:00
Ben Davies
f677c0036a make nodes public after removing property injection 2018-11-13 10:08:23 +00:00
Tomas Votruba
0abecd8087 use short config in code samples + update Rector overview 2018-11-11 14:09:49 +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
9eacf38b3b resolve only types with scope 2018-11-09 19:32:50 +01:00
Tomas Votruba
82573638bc do not actually remove nodes on PHPStan skipping deep nested chains 2018-11-09 15:46:06 +01:00
Tomas Votruba
9f5265ceaa keep commented dead code in DeadCodeRemovingRector 2018-11-09 15:02:00 +01:00
Ben Davies
6aee902a1a
fixed named parameter. 2018-11-08 17:32:53 +00: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
9201ad86e2 cleanup [skip ci] 2018-11-07 23:38:44 +01:00
Tomas Votruba
efc39b394d Add NodeAddingCommander 2018-11-07 21:58:41 +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
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