1937 Commits

Author SHA1 Message Date
Gabriel Caruso
7ce8d9bcf5 [WIP] FluentReplaceRector 2018-01-26 10:26:50 +01:00
Tomáš Votruba
19afd3d768
Merge pull request #300 from rectorphp/phpunit-rectors
[PHPUnit] Create AbstractPHPUnitRector
2018-01-23 18:22:24 +01:00
Gabriel Caruso
05bdd5771f Add comment in isInTestClass explaing why we do this check 2018-01-23 14:16:20 -02:00
Gabriel Caruso
f021b2c05e Fix for PHPStan 2018-01-23 01:27:38 -02:00
Gabriel Caruso
ca62820216 Fixes from ECS 2018-01-23 01:12:51 -02:00
Gabriel Caruso
5f8df78ce7 Fix bug when calling toString in Variable 2018-01-23 01:12:51 -02:00
Gabriel Caruso
5e4b512f45 Reduce function's cyclomatic complexity 2018-01-23 01:12:50 -02:00
Gabriel Caruso
691eb10ea8 Create AbstractPHPUnitRector 2018-01-23 01:12:50 -02:00
Gabriel Caruso
4ba5435704 Fixes from EasyCodeStandard 2018-01-23 01:10:30 -02:00
Tomáš Votruba
18fceadecb
Merge pull request #297 from rectorphp/fix-phpstan-errors
Fixes from PHPStan
2018-01-20 01:33:11 +01:00
Tomáš Votruba
01f2ea2b7a
Merge pull request #296 from rectorphp/assert-array-has-key
[PHPUnit] AssertIssetToSpecificMethodRector
2018-01-18 23:39:40 +01:00
Gabriel Caruso
84eb4a0225 Return empty array instead of null 2018-01-18 19:56:58 -02:00
Gabriel Caruso
022e74c999 Check for non nullable variables 2018-01-18 19:24:02 -02:00
Gabriel Caruso
fb6e560a2b Add number of PHPStan errors to prioritize easy ones 2018-01-18 19:10:39 -02:00
Gabriel Caruso
c0c80a59cc Remove unreported errors 2018-01-18 18:44:32 -02:00
Gabriel Caruso
4f0481150d Fix phpDoc variable referenced 2018-01-18 18:10:17 -02:00
Gabriel Caruso
9b2363c31d Fix undefined property by fixing var type 2018-01-18 18:02:07 -02:00
Gabriel Caruso
2dce06e34c Fix calling method toString on null by casting as string 2018-01-18 17:38:49 -02:00
Gabriel Caruso
49117b7493 Fix PHPStan node::toString calling $name property 2018-01-18 17:34:52 -02:00
Gabriel Caruso
53a45c31d9 Reduce complexity while checking instances 2018-01-18 16:37:06 -02:00
Gabriel Caruso
5e1999a368 Fix custom message been overwritten 2018-01-18 15:42:38 -02:00
Gabriel Caruso
8591cc6716 Add assertArrayHasKey and assertArrayNotHasKey refactoring 2018-01-18 15:16:39 -02:00
Gabriel Caruso
bb2249e660 Rename to AssertIssetToSpecificMethodRector 2018-01-18 14:19:51 -02:00
Tomáš Votruba
7dfb63cabc
Merge pull request #291 from rectorphp/temlate-symfony-rector
[Sensiolabs] Add @Template annotation to render() Rector
2018-01-17 22:34:31 +01:00
TomasVotruba
02a955a34c fix @Route ( indent [closes #295] 2018-01-17 22:24:28 +01:00
TomasVotruba
c1fd7d6c1c use single wrong version case for all 2018-01-17 22:15:11 +01:00
TomasVotruba
11c1814e75 cleanup 2018-01-17 21:48:14 +01:00
TomasVotruba
bf61bed251 decouple setConfig() method 2018-01-17 21:42:55 +01:00
TomasVotruba
4fb5179ace move TemplateGuesser to related Helper dir 2018-01-17 21:41:55 +01:00
TomasVotruba
6140f1a835 add test case with route, less pass for now 2018-01-17 13:26:42 +01:00
TomasVotruba
9c10d98ac7 fix for Version5 2018-01-17 13:25:02 +01:00
TomasVotruba
2f60ea2f7a TemplateGuesser - add Version5 2018-01-17 13:18:36 +01:00
TomasVotruba
5382f7ad27 split test case temp files 2018-01-17 13:14:25 +01:00
TomasVotruba
065f772e40 cleanup 2018-01-17 13:11:00 +01:00
TomasVotruba
899cc35a74 split tests to cover both version 2018-01-17 13:09:16 +01:00
TomasVotruba
4b4bbc9817 add configuration 'version' option 2018-01-17 13:06:09 +01:00
TomasVotruba
f1e46801c0 TemplateGuesser: prepare for version decoupling, v5 2018-01-17 12:58:13 +01:00
TomasVotruba
ba6c9ec8a9 add return to docs example 2018-01-17 12:50:55 +01:00
TomasVotruba
7d2bf3122f move TemplateAnnotationRector to Sensio\FrameworkExtraBundle 2018-01-17 12:50:04 +01:00
TomasVotruba
77df02382b fix cs 2018-01-17 12:43:58 +01:00
mssimi
70c8fd3e5d added tests and fixed code 2018-01-17 12:43:30 +01:00
TomasVotruba
e7683a9637 decrease complexity 2018-01-15 23:17:46 +01:00
TomasVotruba
ae47518f31 TemplateAnnotationRector: add support for existing render() method 2018-01-15 23:15:05 +01:00
TomasVotruba
f4b7529787 BetterNodeFinder: add findLastInstanceOf 2018-01-15 23:14:44 +01:00
TomasVotruba
77647decb8 fix test 2018-01-15 23:09:20 +01:00
Tomáš Votruba
5d2e73fe83
Merge pull request #293 from mssimi/temlate-symfony-rector
added tests for more use cases
2018-01-15 22:44:46 +01:00
mssimi
5f3633d1de added tests for more use cases 2018-01-15 22:43:01 +01:00
mssimi
9db9da7c74 added tests for more use cases 2018-01-15 22:38:02 +01:00
TomasVotruba
cc3f5573d3 tests pass 2018-01-15 20:40:38 +01:00
TomasVotruba
9ddbe54e4d add own TemplateGuesser 2018-01-15 20:40:19 +01:00