-
-
Notifications
You must be signed in to change notification settings - Fork 687
/
SetList.php
780 lines (654 loc) · 19.1 KB
/
SetList.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
<?php
declare(strict_types=1);
namespace Rector\Set\ValueObject;
use Rector\CakePHP\Set\CakePHPSetList;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\Laravel\Set\LaravelSetList;
use Rector\Nette\Set\KdybySetList;
use Rector\Nette\Set\NetteSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\Contract\SetListInterface;
use Rector\Symfony\Set\SwiftmailerSetList;
use Rector\Symfony\Set\SymfonySetList;
use Rector\Symfony\Set\TwigSetList;
final class SetList implements SetListInterface
{
/**
* @var string
*/
public const DEFLUENT = __DIR__ . '/../../../config/set/defluent.php';
/**
* @var string
*/
public const ACTION_INJECTION_TO_CONSTRUCTOR_INJECTION = __DIR__ . '/../../../config/set/action-injection-to-constructor-injection.php';
/**
* @deprecated
* @see Use CakePHPSetList instead
* @var string
*/
public const CAKEPHP_30 = CakePHPSetList::CAKEPHP_30;
/**
* @deprecated
* @see Use CakePHPSetList instead
* @var string
*/
public const CAKEPHP_34 = CakePHPSetList::CAKEPHP_34;
/**
* @deprecated
* @see Use CakePHPSetList instead
* @var string
*/
public const CAKEPHP_35 = CakePHPSetList::CAKEPHP_35;
/**
* @deprecated
* @see Use CakePHPSetList instead
* @var string
*/
public const CAKEPHP_36 = CakePHPSetList::CAKEPHP_36;
/**
* @deprecated
* @see Use CakePHPSetList instead
* @var string
*/
public const CAKEPHP_37 = CakePHPSetList::CAKEPHP_37;
/**
* @deprecated
* @see Use CakePHPSetList instead
* @var string
*/
public const CAKEPHP_38 = CakePHPSetList::CAKEPHP_38;
/**
* @deprecated
* @see Use CakePHPSetList instead
* @var string
*/
public const CAKEPHP_40 = CakePHPSetList::CAKEPHP_40;
/**
* @deprecated
* @see Use CakePHPSetList instead
* @var string
*/
public const CAKEPHP_41 = CakePHPSetList::CAKEPHP_41;
/**
* @deprecated
* @see Use CakePHPSetList instead
* @var string
*/
public const CAKEPHP_42 = CakePHPSetList::CAKEPHP_42;
/**
* @deprecated
* @see Use CakePHPSetList instead
* @var string
*/
public const CAKEPHP_FLUENT_OPTIONS = CakePHPSetList::CAKEPHP_FLUENT_OPTIONS;
/**
* @var string
*/
public const CODE_QUALITY = __DIR__ . '/../../../config/set/code-quality.php';
/**
* @var string
*/
public const CODE_QUALITY_STRICT = __DIR__ . '/../../../config/set/code-quality-strict.php';
/**
* @var string
*/
public const CODING_STYLE = __DIR__ . '/../../../config/set/coding-style.php';
/**
* @var string
*/
public const CONTRIBUTTE_TO_SYMFONY = __DIR__ . '/../../../config/set/contributte-to-symfony.php';
/**
* @var string
*/
public const DEAD_CODE = __DIR__ . '/../../../config/set/dead-code.php';
/**
* @deprecated
* @see Use DoctrineSetList instead
* @var string
*/
public const DOCTRINE_25 = DoctrineSetList::DOCTRINE_25;
/**
* @deprecated
* @see Use DoctrineSetList instead
* @var string
*/
public const DOCTRINE_BEHAVIORS_20 = DoctrineSetList::DOCTRINE_BEHAVIORS_20;
/**
* @deprecated
* @see Use DoctrineSetList instead
* @var string
*/
public const DOCTRINE_CODE_QUALITY = DoctrineSetList::DOCTRINE_CODE_QUALITY;
/**
* @deprecated
* @see Use DoctrineSetList instead
* @var string
*/
public const DOCTRINE_COMMON_20 = DoctrineSetList::DOCTRINE_COMMON_20;
/**
* @deprecated
* @see Use DoctrineSetList instead
* @var string
*/
public const DOCTRINE_DBAL_210 = DoctrineSetList::DOCTRINE_DBAL_210;
/**
* @deprecated
* @see Use DoctrineSetList instead
* @var string
*/
public const DOCTRINE_DBAL_211 = DoctrineSetList::DOCTRINE_DBAL_211;
/**
* @deprecated
* @see Use DoctrineSetList instead
* @var string
*/
public const DOCTRINE_DBAL_30 = DoctrineSetList::DOCTRINE_DBAL_30;
/**
* @deprecated
* @see Use DoctrineSetList instead
* @var string
*/
public const DOCTRINE_GEDMO_TO_KNPLABS = DoctrineSetList::DOCTRINE_GEDMO_TO_KNPLABS;
/**
* @deprecated
@see Use DoctrineSetList instead
* @var string
*/
public const DOCTRINE_REPOSITORY_AS_SERVICE = DoctrineSetList::DOCTRINE_REPOSITORY_AS_SERVICE;
/**
* @var string
*/
public const FLYSYSTEM_20 = __DIR__ . '/../../../config/set/flysystem-20.php';
/**
* @var string
*/
public const FRAMEWORK_EXTRA_BUNDLE_40 = __DIR__ . '/../../../config/set/framework-extra-bundle-40.php';
/**
* @var string
*/
public const FRAMEWORK_EXTRA_BUNDLE_50 = __DIR__ . '/../../../config/set/framework-extra-bundle-50.php';
/**
* @var string
*/
public const GMAGICK_TO_IMAGICK = __DIR__ . '/../../../config/set/gmagick_to_imagick.php';
/**
* @var string
*/
public const KDYBY_TO_SYMFONY = __DIR__ . '/../../../config/set/kdyby-to-symfony.php';
/**
* @deprecated Use KdybySetList instead
* @var string
*/
public const KDYBY_EVENTS_TO_CONTRIBUTTE_EVENT_DISPATCHER = KdybySetList::KDYBY_EVENTS_TO_CONTRIBUTTE_EVENT_DISPATCHER;
/**
* @deprecated Use KdybySetList instead
* @var string
*/
public const KDYBY_TRANSLATOR_TO_CONTRIBUTTE_TRANSLATION = KdybySetList::KDYBY_TRANSLATOR_TO_CONTRIBUTTE_TRANSLATION;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const ARRAY_STR_FUNCTIONS_TO_STATIC_CALL = LaravelSetList::ARRAY_STR_FUNCTIONS_TO_STATIC_CALL;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_50 = LaravelSetList::LARAVEL_50;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_51 = LaravelSetList::LARAVEL_51;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_52 = LaravelSetList::LARAVEL_52;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_53 = LaravelSetList::LARAVEL_53;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_54 = LaravelSetList::LARAVEL_54;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_55 = LaravelSetList::LARAVEL_55;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_56 = LaravelSetList::LARAVEL_56;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_57 = LaravelSetList::LARAVEL_57;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_58 = LaravelSetList::LARAVEL_58;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_60 = LaravelSetList::LARAVEL_60;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_STATIC_TO_INJECTION = LaravelSetList::LARAVEL_STATIC_TO_INJECTION;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_CODE_QUALITY = LaravelSetList::LARAVEL_CODE_QUALITY;
/**
* For BC layer
* @deprecated Use LaravelSetList from rector/rector-laravel instead
* @var string
*/
public const LARAVEL_ARRAY_STR_FUNCTION_TO_STATIC_CALL = LaravelSetList::ARRAY_STR_FUNCTIONS_TO_STATIC_CALL;
/**
* @var string
*/
public const MONOLOG_20 = __DIR__ . '/../../../config/set/monolog20.php';
/**
* @var string
*/
public const MYSQL_TO_MYSQLI = __DIR__ . '/../../../config/set/mysql-to-mysqli.php';
/**
* @var string
*/
public const NAMING = __DIR__ . '/../../../config/set/naming.php';
/**
* @var string
*/
public const NETTE_24 = NetteSetList::NETTE_24;
/**
* @var string
*/
public const NETTE_30 = NetteSetList::NETTE_30;
/**
* @var string
*/
public const NETTE_31 = NetteSetList::NETTE_31;
/**
* @var string
*/
public const NETTE_CODE_QUALITY = NetteSetList::NETTE_CODE_QUALITY;
/**
* @var string
*/
public const NETTE_UTILS_CODE_QUALITY = NetteSetList::NETTE_UTILS_CODE_QUALITY;
/**
* @var string
*/
public const NETTE_CONTROL_TO_SYMFONY_CONTROLLER = __DIR__ . '/../../../config/set/nette-control-to-symfony-controller.php';
/**
* @var string
*/
public const NETTE_FORMS_TO_SYMFONY = __DIR__ . '/../../../config/set/nette-forms-to-symfony.php';
/**
* @var string
*/
public const NETTE_TESTER_TO_PHPUNIT = __DIR__ . '/../../../config/set/nette-tester-to-phpunit.php';
/**
* @var string
*/
public const NETTE_TO_SYMFONY = __DIR__ . '/../../../config/set/nette-to-symfony.php';
/**
* @var string
*/
public const ORDER = __DIR__ . '/../../../config/set/order.php';
/**
* @var string
*/
public const PHALCON_40 = __DIR__ . '/../../../config/set/phalcon40.php';
/**
* @var string
*/
public const PHPEXCEL_TO_PHPSPREADSHEET = __DIR__ . '/../../../config/set/phpexcel-to-phpspreadsheet.php';
/**
* @var string
*/
public const PHPSPEC_30 = __DIR__ . '/../../../config/set/phpspec30.php';
/**
* @var string
*/
public const PHPSPEC_40 = __DIR__ . '/../../../config/set/phpspec40.php';
/**
* @var string
*/
public const PHPSPEC_TO_PHPUNIT = __DIR__ . '/../../../config/set/phpspec-to-phpunit.php';
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT80_DMS = PHPUnitSetList::PHPUNIT80_DMS;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_40 = PHPUnitSetList::PHPUNIT_40;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_50 = PHPUnitSetList::PHPUNIT_50;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_60 = PHPUnitSetList::PHPUNIT_60;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_70 = PHPUnitSetList::PHPUNIT_70;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_75 = PHPUnitSetList::PHPUNIT_75;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_80 = PHPUnitSetList::PHPUNIT_80;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_90 = PHPUnitSetList::PHPUNIT_90;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_91 = PHPUnitSetList::PHPUNIT_91;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_CODE_QUALITY = PHPUnitSetList::PHPUNIT_CODE_QUALITY;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_EXCEPTION = PHPUnitSetList::PHPUNIT_EXCEPTION;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_MOCK = PHPUnitSetList::PHPUNIT_MOCK;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_SPECIFIC_METHOD = PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD;
/**
* @deprecated
* @see Use PHPUnitSetList instead
* @var string
*/
public const PHPUNIT_YIELD_DATA_PROVIDER = PHPUnitSetList::PHPUNIT_YIELD_DATA_PROVIDER;
/**
* @var string
*/
public const PHP_52 = __DIR__ . '/../../../config/set/php52.php';
/**
* @var string
*/
public const PHP_53 = __DIR__ . '/../../../config/set/php53.php';
/**
* @var string
*/
public const PHP_54 = __DIR__ . '/../../../config/set/php54.php';
/**
* @var string
*/
public const PHP_55 = __DIR__ . '/../../../config/set/php55.php';
/**
* @var string
*/
public const PHP_56 = __DIR__ . '/../../../config/set/php56.php';
/**
* @var string
*/
public const PHP_70 = __DIR__ . '/../../../config/set/php70.php';
/**
* @var string
*/
public const PHP_71 = __DIR__ . '/../../../config/set/php71.php';
/**
* @var string
*/
public const PHP_72 = __DIR__ . '/../../../config/set/php72.php';
/**
* @var string
*/
public const PHP_73 = __DIR__ . '/../../../config/set/php73.php';
/**
* @var string
*/
public const PHP_74 = __DIR__ . '/../../../config/set/php74.php';
/**
* @var string
*/
public const PHP_80 = __DIR__ . '/../../../config/set/php80.php';
/**
* @var string
*/
public const PRIVATIZATION = __DIR__ . '/../../../config/set/privatization.php';
/**
* @var string
*/
public const PSR_4 = __DIR__ . '/../../../config/set/psr-4.php';
/**
* @var string
*/
public const SAFE_07 = __DIR__ . '/../../../config/set/safe07.php';
/**
* For BC layer
* @deprecated Use SwiftmailerSetList from rector/rector-symfony instead
* @var string
*/
public const SWIFTMAILER_60 = SwiftmailerSetList::SWIFTMAILER_60;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_26 = SymfonySetList::SYMFONY_26;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_28 = SymfonySetList::SYMFONY_28;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_30 = SymfonySetList::SYMFONY_30;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_31 = SymfonySetList::SYMFONY_31;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_32 = SymfonySetList::SYMFONY_32;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_33 = SymfonySetList::SYMFONY_33;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_34 = SymfonySetList::SYMFONY_34;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_40 = SymfonySetList::SYMFONY_40;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_41 = SymfonySetList::SYMFONY_41;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_42 = SymfonySetList::SYMFONY_42;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_43 = SymfonySetList::SYMFONY_43;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_44 = SymfonySetList::SYMFONY_44;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_50 = SymfonySetList::SYMFONY_50;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_50_TYPES = SymfonySetList::SYMFONY_50_TYPES;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_52 = SymfonySetList::SYMFONY_52;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_CODE_QUALITY = SymfonySetList::SYMFONY_CODE_QUALITY;
/**
* For BC layer
* @deprecated Use SymfonySetList from rector/rector-symfony instead
* @var string
*/
public const SYMFONY_CONSTRUCTOR_INJECTION = SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION;
/**
* For BC layer
* @deprecated Use TwigSetList from rector/rector-symfony instead
* @var string
*/
public const TWIG_112 = TwigSetList::TWIG_112;
/**
* For BC layer
* @deprecated Use TwigSetList from rector/rector-symfony instead
* @var string
*/
public const TWIG_127 = TwigSetList::TWIG_127;
/**
* For BC layer
* @deprecated Use TwigSetList from rector/rector-symfony instead
* @var string
*/
public const TWIG_134 = TwigSetList::TWIG_134;
/**
* For BC layer
* @deprecated Use TwigSetList from rector/rector-symfony instead
* @var string
*/
public const TWIG_140 = TwigSetList::TWIG_140;
/**
* For BC layer
* @deprecated Use TwigSetList from rector/rector-symfony instead
* @var string
*/
public const TWIG_20 = TwigSetList::TWIG_20;
/**
* For BC layer
* @deprecated Use TwigSetList from rector/rector-symfony instead
* @var string
*/
public const TWIG_240 = TwigSetList::TWIG_240;
/**
* For BC layer
* @deprecated Use TwigSetList from rector/rector-symfony instead
* @var string
*/
public const TWIG_UNDERSCORE_TO_NAMESPACE = TwigSetList::TWIG_UNDERSCORE_TO_NAMESPACE;
/**
* @var string
*/
public const TYPE_DECLARATION = __DIR__ . '/../../../config/set/type-declaration.php';
/**
* @var string
*/
public const TYPE_DECLARATION_STRICT = __DIR__ . '/../../../config/set/type-declaration-strict.php';
/**
* @var string
*/
public const UNWRAP_COMPAT = __DIR__ . '/../../../config/set/unwrap-compat.php';
/**
* @var string
*/
public const EARLY_RETURN = __DIR__ . '/../../../config/set/early-return.php';
/**
* @var string
*/
public const CARBON_2 = __DIR__ . '/../../../config/set/carbon-2.php';
}