235 Commits

Author SHA1 Message Date
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
Tomas Votruba
3d4f55c172 apply code-quality level 2019-02-27 14:21:11 +01:00
Tomas Votruba
ac45d54145 apply coding-style level on Rector 2019-02-27 14:16:19 +01:00
Tomas Votruba
4a5b33ed55 [CodeQuality] Add SimplifyBoolIdenticalTrueRector 2019-02-27 00:24:12 +01:00
Tomas Votruba
2ae3f7252a [CodeQuality] Add SimplifyDuplicatedTernaryRector 2019-02-26 18:12:03 +01:00
Tomas Votruba
b401be37e5 Add PhpVersionProvider 2019-02-24 11:38:22 +01:00
Tomas Votruba
b951e3e8d0 move LogicalOrToBooleanOrRector to celebrity level 2019-02-23 11:54:57 +01:00
Tomas Votruba
eba5677f35 move CommonNotEqualRector to Celebrity package 2019-02-23 01:00:22 +01:00
Tomas Votruba
f574c3374f use node-class based naming 2019-02-22 18:34:41 +01:00
Tomas Votruba
c105f3b7ae [CodeQuality] Add UseIdenticalOverEqualWithSameTypeRector 2019-02-20 14:33:50 +01:00
Tomas Votruba
724087521c [CodeQuality] Add CommonNotEqualRector 2019-02-19 18:26:22 +01:00
Tomas Votruba
3175a8857a apply specific bool on code 2019-02-18 00:36:58 +01:00
Tomas Votruba
8515839d8f [CodeQuality] Add ExplicitBoolCompareRector 2019-02-18 00:23:57 +01:00
Tomas Votruba
f94ddfcd5f [CodeQuality] Add SimplifyIfIssetToNullCoalescingRector 2019-02-17 02:13:29 +01:00
Tomas Votruba
48be5d3fe7 fix nesting on SimplifyDeMorganBinaryRector 2019-02-12 01:56:10 +01:00
Tomas Votruba
a45eff72df apply code quality + add number of applied changes 2019-02-09 20:17:22 +01:00
Tomas Votruba
4665ce8944 fix tests 2019-02-06 11:56:16 +01:00
Tomas Votruba
b7ae358168 add RenameEventNamesInEventSubscriberRector 2019-02-06 00:36:09 +01:00
Tomas Votruba
2c878c7541 apply new static analysis 2019-01-25 16:06:56 +01:00
Tomas Votruba
dd0acef8f2 reorder methods by use 2019-01-22 20:41:44 +01:00
Tomas Votruba
25da54641b improve static code quality 2019-01-14 23:08:20 +01:00
Tomas Votruba
dc9532abae add ConsecutiveNullCompareReturnsToNullCoalesceQueueRector 2019-01-10 21:08:38 +01:00
Tomas Votruba
30bbfeb60e Decouple SimplifyIfNotNullReturnRector logic to IfMaintainer 2019-01-10 20:26:51 +01:00
Tomas Votruba
af1825f4de [CodeQuality] Add JoinStringConcatRector 2019-01-03 14:03:27 +01:00
Tomas Votruba
6d7ed86cb8 Fix empty class in SimplifyDeMorganBinaryRector [closes #915] 2019-01-02 14:04:29 +01:00
Tomas Votruba
c49a5f8362 [CodeQuality] Fix false positive on SimplifyConditionsRector [fixes #854] 2018-12-31 21:12:17 +01:00
Tomas Votruba
e89a0c1b4d [CodeQuality] Add SimplifyIfElseToTernaryRector 2018-12-31 12:52:52 +01:00
Tomas Votruba
823c3c076b [CodeQuality] Add SingleInArrayToCompareRector [closes #858] 2018-12-31 12:22:21 +01:00
Tomas Votruba
00e25abb89 [CodeQuality] Add SimplifyForeachToArrayFilterRector 2018-12-28 18:03:15 +01:00
Tomas Votruba
80e7546aae move SimplifyMirrorAssignRector to DaedCode 2018-12-28 15:52:59 +01:00
Tomas Votruba
1c093821a3 [CodeQuality] Add SimplifyTautologyTernaryRector 2018-12-25 20:44:12 +01:00
Tomas Votruba
44ed981c56 create DeadCode package 2018-12-25 12:38:07 +01:00
Tomas Votruba
aeb89aa464 fix printing of empty array 2018-12-20 20:05:59 +01:00
Tomas Votruba
65764c4eec shorten indent on test file list 2018-12-17 01:28:51 +01:00