168 Commits

Author SHA1 Message Date
Tomas Votruba
d3115e8b8a [CodeQuality] Fix StrlenZeroToIdenticalEmptyStringRector skipping non-matching binary 2019-07-09 17:06:58 +02:00
Tomas Votruba
6095a810ad fix cs 2019-07-05 18:12:37 +03:00
Tomas Votruba
fadc28afa3 [CodeQuality] Add StrlenZeroToIdenticalEmptyStringRector 2019-07-05 00:31:24 +03:00
Tomas Votruba
d94e26822d [CodeQuality] Add is_a with string true 2019-07-05 00:06:01 +03:00
Tomas Votruba
57602fc3a9 fix new phpstan reports 2019-07-04 12:29:37 +03:00
Tomas Votruba
302d2abb55 [CodeQuality] Fix __set/__get case for CompleteDynamicPropertiesRector 2019-06-16 01:16:41 +02:00
Tomas Votruba
e15518081a add SimplifyUselessVariableRector to dead-code set 2019-06-08 22:40:51 +02:00
Tomas Votruba
f4cefb18d3 add CallableNodeTraverserTrait 2019-06-04 23:39:57 +03:00
Tomas Votruba
ddda93005f optimize 2019-06-04 15:01:50 +03:00
Tomas Votruba
9dfb666039 [CodeQuality] Skip collections ForeachToInArrayRector [closes #1533] 2019-06-04 14:58:55 +03:00
Aerendir
3aa383883f Ensure Doctrine's Collection-like arrays are ignored.
Issue #1533.
2019-06-04 11:29:05 +02:00
Tomas Votruba
f6da9d2854 fix static 2019-05-31 12:53:59 +02:00
Tomas Votruba
f799d5385c [CodeQuality] Add trait and parent class support for CompleteDynamicPropertiesRector 2019-05-31 08:11:46 +02:00
Tomas Votruba
027a072fb3 [CodeQuality] Fix unneeded return in CallableThisArrayToAnonymousFunctionRector 2019-05-31 00:45:56 +02:00
Adamo Crespi
eaf22f8069
Update no_return_for_void.php.inc 2019-05-30 20:14:18 +02:00
Aerendir
2d64a07c33 Test void methods doesn't have the return statement added. 2019-05-30 15:43:28 +02:00
Tomas Votruba
3389d71219 add defined test case 2019-05-26 22:04:20 +02:00
Tomas Votruba
224bc33174 [CodeQuality] Add CompleteDynamicPropertiesRector 2019-05-26 22:04:20 +02:00
Tomas Votruba
53cd941dcd refactor ImportFullyQualifiedNamesRector to allow non-namespaced elements 2019-05-22 17:33:51 +02:00
Tomas Votruba
ad95d018b5 [CodeQuality] Add CompactToVariablesRector 2019-05-19 10:26:00 +02:00
Tomas Votruba
c71a2e8f81 report deleted/added files in FileSystem Rectors 2019-05-19 09:38:39 +02:00
Tomas Votruba
ee1f606827 [CodeQuality] Add ForToForeachRector 2019-05-19 01:02:19 +02:00
Tomas Votruba
83d2219ca7 [TypeDeclaration] Add AddFunctionReturnTypeRector 2019-05-10 14:55:55 +02:00
Tomas Votruba
e2d2d7ed5c fix FileProcessor node need for node scope resolver 2019-05-07 16:54:32 +02:00
Tomas Votruba
adc50652a0 fix CallableThisArrayToAnonymousFunctionRector for invalid array items 2019-05-07 16:03:04 +02:00
Tomas Votruba
de331920c8 fix CallableThisArrayToAnonymousFunctionRector for empty first item in array 2019-05-07 15:52:19 +02:00
Tomas Votruba
b9b4c5c1b1 [cs] import namespaces 2019-05-05 20:48:46 +02:00
Tomas Votruba
d428d7e15f [CodeQuality] Add AndAssignsToSeparateLinesRector 2019-05-05 19:52:12 +02:00
Tomas Votruba
25258e1028 fix cs 2019-05-01 00:49:59 +02:00
Tomas Votruba
d9fc5876d8 apply coding-style level 2019-04-25 14:14:14 +02:00
Tomas Votruba
0973ceb8be apply import on packages 2019-04-17 22:28:45 +02:00
Tomas Votruba
30536957e0 merge collected nodes to ParsedNodesByType 2019-04-14 00:20:05 +02:00
Tomas Votruba
7c9df2cefe rename Attribute to AttributeKey to prevent duplicated names with similar classes in 3rd party project 2019-04-13 14:21:36 +02:00
Tomas Votruba
a99d80518e add info about callable array 2019-04-06 19:09:29 +02:00
Tomas Votruba
f6d5c71a57 [CodeQuality] Add differnt class or variable to CallableThisArrayToAnonymousFunctionRector" 2019-04-06 09:43:54 +02:00
Tomas Votruba
729d2d1d51 [CodeQuality] Add CallableThisArrayToAnonymousFunctionRector 2019-04-04 16:41:50 +02:00
Tomas Votruba
9768ffc033 [CodeQuality] Add BooleanNotIdenticalToNotIdenticalRector 2019-04-03 21:34:11 +02:00
Tomas Votruba
4f9036e208 [CodeQuality] prevent double negative in SimplifyBoolIdenticalTrueRector 2019-04-03 20:29:46 +02:00
Tomas Votruba
854cacefd9 fix typo in ExplicitBoolCompareRector description [closes #1290] 2019-04-03 19:14:46 +02:00
Tomas Votruba
1b11920141 fix hidden bool 2019-04-01 13:41:30 +02:00
Tomas Votruba
b6f601d634 add nested ternary in condition 2019-04-01 13:17:18 +02:00
Tomas Votruba
c74e03dfed skip nested tenary in SimplifyIfElseToTernaryRector 2019-04-01 13:12:20 +02:00
Tomas Votruba
8574f286b6 make SimplifyIfElseToTernaryRector limit to 120 chars to prevent complicated code 2019-04-01 13:04:50 +02:00
Tomas Votruba
d40a2d453a correct code sample in ExplicitBoolCompareRector [closes #1241] 2019-03-31 21:54:32 +02:00
Tomas Votruba
0f179983de Move argument discovery from RegexDashEscapeRector to RegexPatternArgumentManipulator 2019-03-31 14:18:18 +02:00
Tomas Votruba
665aa540d2 improve RegexDashEscapeRector to match constant value 2019-03-31 13:34:42 +02:00
Tomas Votruba
94af2d3273 decouple RegexPatternArgumentManipulator 2019-03-31 12:49:26 +02:00
Tomas Votruba
455914bde5 [CodeQuality] Add SimplifyRegexPatternRector 2019-03-31 12:48:26 +02:00
Tomas Votruba
bbad5b83ae bump phpstan to 0.11.5 2019-03-27 17:46:25 +01:00
Tomas Votruba
8208eff75e rename Analyzer and Maintainer to Manipulator 2019-02-27 22:54:39 +01:00