@codacy/tools-unsupported-tools 0.14.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3742 @@
1
+ [
2
+ {
3
+ "id": "PHPCSFIXER_align_multiline_comment",
4
+ "category": "CodeStyle",
5
+ "severityLevel": "Info",
6
+ "title": "Align multi-line DocComments asterisks",
7
+ "enabled": false,
8
+ "languages": ["PHP"],
9
+ "parameters": [
10
+ {
11
+ "name": "comment_type",
12
+ "default": "phpdocs_only",
13
+ "description": "Whether to fix PHPDoc comments only (`phpdocs_only`), any multi-line comment whose lines all start with an asterisk (`phpdocs_like`) or any multi-line comment (`all_multiline`)."
14
+ }
15
+ ]
16
+ },
17
+ {
18
+ "id": "PHPCSFIXER_array_indentation",
19
+ "category": "CodeStyle",
20
+ "severityLevel": "Info",
21
+ "title": "Enforce array element single indentation",
22
+ "enabled": false,
23
+ "languages": ["PHP"],
24
+ "parameters": []
25
+ },
26
+ {
27
+ "id": "PHPCSFIXER_array_push",
28
+ "category": "Performance",
29
+ "severityLevel": "Warning",
30
+ "title": "Replace array_push with array append",
31
+ "enabled": false,
32
+ "languages": ["PHP"],
33
+ "parameters": []
34
+ },
35
+ {
36
+ "id": "PHPCSFIXER_array_syntax",
37
+ "category": "CodeStyle",
38
+ "severityLevel": "Info",
39
+ "title": "Enforce configured PHP array syntax",
40
+ "enabled": false,
41
+ "languages": ["PHP"],
42
+ "parameters": [
43
+ {
44
+ "name": "syntax",
45
+ "default": "short",
46
+ "description": "Whether to use the `long` or `short` array syntax."
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "id": "PHPCSFIXER_assign_null_coalescing_to_coalesce_equal",
52
+ "category": "CodeStyle",
53
+ "severityLevel": "Info",
54
+ "title": "Use null coalescing assignment operator (??=)",
55
+ "enabled": false,
56
+ "languages": ["PHP"],
57
+ "parameters": []
58
+ },
59
+ {
60
+ "id": "PHPCSFIXER_attribute_block_no_spaces",
61
+ "category": "CodeStyle",
62
+ "severityLevel": "Info",
63
+ "title": "Remove spaces around attribute block",
64
+ "enabled": false,
65
+ "languages": ["PHP"],
66
+ "parameters": []
67
+ },
68
+ {
69
+ "id": "PHPCSFIXER_attribute_empty_parentheses",
70
+ "category": "CodeStyle",
71
+ "severityLevel": "Info",
72
+ "title": "Enforce attribute empty parentheses policy",
73
+ "enabled": false,
74
+ "languages": ["PHP"],
75
+ "parameters": [
76
+ {
77
+ "name": "use_parentheses",
78
+ "default": "false",
79
+ "description": "Whether attributes should be followed by parentheses or not."
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "id": "PHPCSFIXER_backtick_to_shell_exec",
85
+ "category": "BestPractice",
86
+ "severityLevel": "Warning",
87
+ "title": "Convert backtick operators to shell_exec calls",
88
+ "enabled": false,
89
+ "languages": ["PHP"],
90
+ "parameters": []
91
+ },
92
+ {
93
+ "id": "PHPCSFIXER_binary_operator_spaces",
94
+ "category": "CodeStyle",
95
+ "severityLevel": "Info",
96
+ "title": "Enforce binary operator spacing",
97
+ "enabled": true,
98
+ "languages": ["PHP"],
99
+ "parameters": [
100
+ {
101
+ "name": "default",
102
+ "default": "single_space",
103
+ "description": "Default fix strategy."
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "id": "PHPCSFIXER_blank_line_after_namespace",
109
+ "category": "CodeStyle",
110
+ "severityLevel": "Info",
111
+ "title": "Require one blank line after namespace declaration",
112
+ "enabled": false,
113
+ "languages": ["PHP"],
114
+ "parameters": []
115
+ },
116
+ {
117
+ "id": "PHPCSFIXER_blank_line_after_opening_tag",
118
+ "category": "CodeStyle",
119
+ "severityLevel": "Info",
120
+ "title": "Ensure blank line after PHP opening tag",
121
+ "enabled": true,
122
+ "languages": ["PHP"],
123
+ "parameters": []
124
+ },
125
+ {
126
+ "id": "PHPCSFIXER_blank_line_before_statement",
127
+ "category": "CodeStyle",
128
+ "severityLevel": "Info",
129
+ "title": "Require blank line before configured statements",
130
+ "enabled": false,
131
+ "languages": ["PHP"],
132
+ "parameters": []
133
+ },
134
+ {
135
+ "id": "PHPCSFIXER_blank_line_between_import_groups",
136
+ "category": "CodeStyle",
137
+ "severityLevel": "Info",
138
+ "title": "Enforce blank lines between use statement groups",
139
+ "enabled": true,
140
+ "languages": ["PHP"],
141
+ "parameters": []
142
+ },
143
+ {
144
+ "id": "PHPCSFIXER_blank_lines_before_namespace",
145
+ "category": "CodeStyle",
146
+ "severityLevel": "Info",
147
+ "title": "Enforce blank lines before namespace declaration",
148
+ "enabled": true,
149
+ "languages": ["PHP"],
150
+ "parameters": [
151
+ {
152
+ "name": "max_line_breaks",
153
+ "default": "2",
154
+ "description": "Maximum line breaks that should exist before namespace declaration."
155
+ },
156
+ {
157
+ "name": "min_line_breaks",
158
+ "default": "2",
159
+ "description": "Minimum line breaks that should exist before namespace declaration."
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "id": "PHPCSFIXER_braces",
165
+ "category": "CodeStyle",
166
+ "severityLevel": "Info",
167
+ "title": "Enforce braces for control structures and proper brace placement/indentation",
168
+ "enabled": false,
169
+ "languages": ["PHP"],
170
+ "parameters": [
171
+ {
172
+ "name": "allow_single_line_anonymous_class_with_empty_body",
173
+ "default": "false",
174
+ "description": "Whether single line anonymous class with empty body notation should be allowed."
175
+ },
176
+ {
177
+ "name": "allow_single_line_closure",
178
+ "default": "false",
179
+ "description": "Whether single line lambda notation should be allowed."
180
+ },
181
+ {
182
+ "name": "position_after_anonymous_constructs",
183
+ "default": "same",
184
+ "description": "Whether the opening brace should be placed on \"next\" or \"same\" line after anonymous constructs (anonymous classes and lambda functions)."
185
+ },
186
+ {
187
+ "name": "position_after_control_structures",
188
+ "default": "same",
189
+ "description": "Whether the opening brace should be placed on \"next\" or \"same\" line after control structures."
190
+ },
191
+ {
192
+ "name": "position_after_functions_and_oop_constructs",
193
+ "default": "next",
194
+ "description": "Whether the opening brace should be placed on \"next\" or \"same\" line after classy constructs (non-anonymous classes, interfaces, traits, methods and non-lambda functions)."
195
+ }
196
+ ],
197
+ "tags": ["phpcsfixer"]
198
+ },
199
+ {
200
+ "id": "PHPCSFIXER_braces_position",
201
+ "category": "CodeStyle",
202
+ "severityLevel": "Info",
203
+ "title": "Enforce braces position",
204
+ "enabled": true,
205
+ "languages": ["PHP"],
206
+ "parameters": [
207
+ {
208
+ "name": "allow_single_line_anonymous_functions",
209
+ "default": "true",
210
+ "description": "Allow anonymous functions to have opening and closing braces on the same line."
211
+ },
212
+ {
213
+ "name": "allow_single_line_empty_anonymous_classes",
214
+ "default": "true",
215
+ "description": "Allow anonymous classes to have opening and closing braces on the same line."
216
+ },
217
+ {
218
+ "name": "anonymous_classes_opening_brace",
219
+ "default": "same_line",
220
+ "description": "The position of the opening brace of anonymous classes‘ body."
221
+ },
222
+ {
223
+ "name": "anonymous_functions_opening_brace",
224
+ "default": "same_line",
225
+ "description": "The position of the opening brace of anonymous functions‘ body."
226
+ },
227
+ {
228
+ "name": "classes_opening_brace",
229
+ "default": "next_line_unless_newline_at_signature_end",
230
+ "description": "The position of the opening brace of classes‘ body."
231
+ },
232
+ {
233
+ "name": "control_structures_opening_brace",
234
+ "default": "same_line",
235
+ "description": "The position of the opening brace of control structures‘ body."
236
+ },
237
+ {
238
+ "name": "functions_opening_brace",
239
+ "default": "next_line_unless_newline_at_signature_end",
240
+ "description": "The position of the opening brace of functions‘ body."
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "id": "PHPCSFIXER_cast_spaces",
246
+ "category": "CodeStyle",
247
+ "severityLevel": "Info",
248
+ "title": "Enforce spacing between cast and variable",
249
+ "enabled": false,
250
+ "languages": ["PHP"],
251
+ "parameters": [
252
+ {
253
+ "name": "space",
254
+ "default": "single",
255
+ "description": "Spacing to apply between cast and variable."
256
+ }
257
+ ]
258
+ },
259
+ {
260
+ "id": "PHPCSFIXER_class_attributes_separation",
261
+ "category": "CodeStyle",
262
+ "severityLevel": "Info",
263
+ "title": "Enforce single blank line between class, trait and interface elements",
264
+ "enabled": false,
265
+ "languages": ["PHP"],
266
+ "parameters": []
267
+ },
268
+ {
269
+ "id": "PHPCSFIXER_class_definition",
270
+ "category": "CodeStyle",
271
+ "severityLevel": "Info",
272
+ "title": "Ensure single space around class/trait/enum/interface keywords",
273
+ "enabled": true,
274
+ "languages": ["PHP"],
275
+ "parameters": [
276
+ {
277
+ "name": "inline_constructor_arguments",
278
+ "default": "true",
279
+ "description": "Whether constructor argument list in anonymous classes should be single line."
280
+ },
281
+ {
282
+ "name": "multi_line_extends_each_single_line",
283
+ "default": "false",
284
+ "description": "Whether definitions should be multiline."
285
+ },
286
+ {
287
+ "name": "single_item_single_line",
288
+ "default": "false",
289
+ "description": "Whether definitions should be single line when including a single item."
290
+ },
291
+ {
292
+ "name": "single_line",
293
+ "default": "false",
294
+ "description": "Whether definitions should be single line."
295
+ },
296
+ {
297
+ "name": "space_before_parenthesis",
298
+ "default": "false",
299
+ "description": "Whether there should be a single space after the parenthesis of anonymous class (PSR12) or not."
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "id": "PHPCSFIXER_class_keyword",
305
+ "category": "BestPractice",
306
+ "severityLevel": "Warning",
307
+ "title": "Convert FQCN strings to ::class keyword",
308
+ "enabled": false,
309
+ "languages": ["PHP"],
310
+ "parameters": []
311
+ },
312
+ {
313
+ "id": "PHPCSFIXER_class_keyword_remove",
314
+ "category": "CodeStyle",
315
+ "severityLevel": "Info",
316
+ "title": "Convert ::class to fully-qualified class name string",
317
+ "enabled": false,
318
+ "languages": ["PHP"],
319
+ "parameters": []
320
+ },
321
+ {
322
+ "id": "PHPCSFIXER_class_reference_name_casing",
323
+ "category": "CodeStyle",
324
+ "severityLevel": "Info",
325
+ "title": "Enforce class reference name casing",
326
+ "enabled": false,
327
+ "languages": ["PHP"],
328
+ "parameters": []
329
+ },
330
+ {
331
+ "id": "PHPCSFIXER_clean_namespace",
332
+ "category": "CodeStyle",
333
+ "severityLevel": "Info",
334
+ "title": "Disallow spacing, comments, or PHPDoc inside namespace declarations",
335
+ "enabled": false,
336
+ "languages": ["PHP"],
337
+ "parameters": []
338
+ },
339
+ {
340
+ "id": "PHPCSFIXER_combine_consecutive_issets",
341
+ "category": "CodeStyle",
342
+ "severityLevel": "Info",
343
+ "title": "Combine consecutive isset calls",
344
+ "enabled": false,
345
+ "languages": ["PHP"],
346
+ "parameters": []
347
+ },
348
+ {
349
+ "id": "PHPCSFIXER_combine_consecutive_unsets",
350
+ "category": "CodeStyle",
351
+ "severityLevel": "Info",
352
+ "title": "Combine consecutive unset calls",
353
+ "enabled": false,
354
+ "languages": ["PHP"],
355
+ "parameters": []
356
+ },
357
+ {
358
+ "id": "PHPCSFIXER_combine_nested_dirname",
359
+ "category": "CodeStyle",
360
+ "severityLevel": "Info",
361
+ "title": "Combine nested dirname calls",
362
+ "enabled": false,
363
+ "languages": ["PHP"],
364
+ "parameters": []
365
+ },
366
+ {
367
+ "id": "PHPCSFIXER_comment_to_phpdoc",
368
+ "category": "BestPractice",
369
+ "severityLevel": "High",
370
+ "title": "Convert annotated comments to PHPDoc on structural elements",
371
+ "enabled": false,
372
+ "languages": ["PHP"],
373
+ "parameters": []
374
+ },
375
+ {
376
+ "id": "PHPCSFIXER_compact_nullable_type_declaration",
377
+ "category": "CodeStyle",
378
+ "severityLevel": "Info",
379
+ "title": "Remove extra spaces in nullable type declarations",
380
+ "enabled": true,
381
+ "languages": ["PHP"],
382
+ "parameters": []
383
+ },
384
+ {
385
+ "id": "PHPCSFIXER_compact_nullable_typehint",
386
+ "category": "CodeStyle",
387
+ "severityLevel": "Info",
388
+ "title": "Remove extra spaces in nullable type hints",
389
+ "enabled": false,
390
+ "languages": ["PHP"],
391
+ "parameters": []
392
+ },
393
+ {
394
+ "id": "PHPCSFIXER_concat_space",
395
+ "category": "CodeStyle",
396
+ "severityLevel": "Info",
397
+ "title": "Enforce concatenation spacing",
398
+ "enabled": false,
399
+ "languages": ["PHP"],
400
+ "parameters": [
401
+ {
402
+ "name": "spacing",
403
+ "default": "none",
404
+ "description": "Spacing to apply around concatenation operator."
405
+ }
406
+ ]
407
+ },
408
+ {
409
+ "id": "PHPCSFIXER_constant_case",
410
+ "category": "CodeStyle",
411
+ "severityLevel": "Info",
412
+ "title": "Enforce correct casing for PHP constants true/false/null",
413
+ "enabled": false,
414
+ "languages": ["PHP"],
415
+ "parameters": [
416
+ {
417
+ "name": "case",
418
+ "default": "lower",
419
+ "description": "Whether to use the `upper` or `lower` case syntax."
420
+ }
421
+ ]
422
+ },
423
+ {
424
+ "id": "PHPCSFIXER_control_structure_braces",
425
+ "category": "CodeStyle",
426
+ "severityLevel": "Info",
427
+ "title": "Enforce braces on control structure bodies",
428
+ "enabled": false,
429
+ "languages": ["PHP"],
430
+ "parameters": []
431
+ },
432
+ {
433
+ "id": "PHPCSFIXER_control_structure_continuation_position",
434
+ "category": "CodeStyle",
435
+ "severityLevel": "Info",
436
+ "title": "Enforce control structure continuation keyword position",
437
+ "enabled": false,
438
+ "languages": ["PHP"],
439
+ "parameters": [
440
+ {
441
+ "name": "position",
442
+ "default": "same_line",
443
+ "description": "The position of the keyword that continues the control structure."
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "id": "PHPCSFIXER_curly_braces_position",
449
+ "category": "CodeStyle",
450
+ "severityLevel": "Info",
451
+ "title": "Enforce curly brace placement",
452
+ "enabled": false,
453
+ "languages": ["PHP"],
454
+ "parameters": [
455
+ {
456
+ "name": "allow_single_line_anonymous_functions",
457
+ "default": "true",
458
+ "description": "Allow anonymous functions to have opening and closing braces on the same line."
459
+ },
460
+ {
461
+ "name": "allow_single_line_empty_anonymous_classes",
462
+ "default": "true",
463
+ "description": "Allow anonymous classes to have opening and closing braces on the same line."
464
+ },
465
+ {
466
+ "name": "anonymous_classes_opening_brace",
467
+ "default": "same_line",
468
+ "description": "The position of the opening brace of anonymous classes‘ body."
469
+ },
470
+ {
471
+ "name": "anonymous_functions_opening_brace",
472
+ "default": "same_line",
473
+ "description": "The position of the opening brace of anonymous functions‘ body."
474
+ },
475
+ {
476
+ "name": "classes_opening_brace",
477
+ "default": "next_line_unless_newline_at_signature_end",
478
+ "description": "The position of the opening brace of classes‘ body."
479
+ },
480
+ {
481
+ "name": "control_structures_opening_brace",
482
+ "default": "same_line",
483
+ "description": "The position of the opening brace of control structures‘ body."
484
+ },
485
+ {
486
+ "name": "functions_opening_brace",
487
+ "default": "next_line_unless_newline_at_signature_end",
488
+ "description": "The position of the opening brace of functions‘ body."
489
+ }
490
+ ]
491
+ },
492
+ {
493
+ "id": "PHPCSFIXER_date_time_create_from_format_call",
494
+ "category": "BestPractice",
495
+ "severityLevel": "Warning",
496
+ "title": "Require leading '!' in DateTime::createFromFormat format string",
497
+ "enabled": false,
498
+ "languages": ["PHP"],
499
+ "parameters": []
500
+ },
501
+ {
502
+ "id": "PHPCSFIXER_date_time_immutable",
503
+ "category": "BestPractice",
504
+ "severityLevel": "Warning",
505
+ "title": "Use DateTimeImmutable instead of DateTime",
506
+ "enabled": false,
507
+ "languages": ["PHP"],
508
+ "parameters": []
509
+ },
510
+ {
511
+ "id": "PHPCSFIXER_declare_equal_normalize",
512
+ "category": "CodeStyle",
513
+ "severityLevel": "Info",
514
+ "title": "Normalize spacing around '=' in declare statements",
515
+ "enabled": true,
516
+ "languages": ["PHP"],
517
+ "parameters": [
518
+ {
519
+ "name": "space",
520
+ "default": "none",
521
+ "description": "Spacing to apply around the equal sign."
522
+ }
523
+ ]
524
+ },
525
+ {
526
+ "id": "PHPCSFIXER_declare_parentheses",
527
+ "category": "CodeStyle",
528
+ "severityLevel": "Info",
529
+ "title": "Disallow spaces around declare statement parentheses",
530
+ "enabled": false,
531
+ "languages": ["PHP"],
532
+ "parameters": []
533
+ },
534
+ {
535
+ "id": "PHPCSFIXER_declare_strict_types",
536
+ "category": "BestPractice",
537
+ "severityLevel": "Warning",
538
+ "title": "Enforce strict types declaration",
539
+ "enabled": false,
540
+ "languages": ["PHP"],
541
+ "parameters": [
542
+ {
543
+ "name": "preserve_existing_declaration",
544
+ "default": "false",
545
+ "description": "Whether existing strict_types=? should be preserved and not overridden."
546
+ },
547
+ {
548
+ "name": "strategy",
549
+ "default": "enforce",
550
+ "description": "Whether existing strict_types=? should be enforced, removed (effectively turning strict mode off and using the engine into default type coercion mode), or added when missing."
551
+ }
552
+ ]
553
+ },
554
+ {
555
+ "id": "PHPCSFIXER_dir_constant",
556
+ "category": "CodeStyle",
557
+ "severityLevel": "Info",
558
+ "title": "Replace dirname(__FILE__) with __DIR__",
559
+ "enabled": false,
560
+ "languages": ["PHP"],
561
+ "parameters": []
562
+ },
563
+ {
564
+ "id": "PHPCSFIXER_doctrine_annotation_array_assignment",
565
+ "category": "CodeStyle",
566
+ "severityLevel": "Info",
567
+ "title": "Enforce configured operator for assignment in Doctrine annotation arrays",
568
+ "enabled": false,
569
+ "languages": ["PHP"],
570
+ "parameters": [
571
+ {
572
+ "name": "operator",
573
+ "default": "=",
574
+ "description": "The operator to use."
575
+ }
576
+ ],
577
+ "tags": ["annotations", "formatting", "lib:doctrine-orm"]
578
+ },
579
+ {
580
+ "id": "PHPCSFIXER_doctrine_annotation_braces",
581
+ "category": "CodeStyle",
582
+ "severityLevel": "Info",
583
+ "title": "Enforce Doctrine annotation brace syntax",
584
+ "enabled": false,
585
+ "languages": ["PHP"],
586
+ "parameters": [
587
+ {
588
+ "name": "syntax",
589
+ "default": "without_braces",
590
+ "description": "Whether to add or remove braces."
591
+ }
592
+ ]
593
+ },
594
+ {
595
+ "id": "PHPCSFIXER_doctrine_annotation_indentation",
596
+ "category": "CodeStyle",
597
+ "severityLevel": "Info",
598
+ "title": "Enforce Doctrine annotation indentation",
599
+ "enabled": false,
600
+ "languages": ["PHP"],
601
+ "parameters": [
602
+ {
603
+ "name": "indent_mixed_lines",
604
+ "default": "false",
605
+ "description": "Whether to indent lines that have content before closing parenthesis."
606
+ }
607
+ ]
608
+ },
609
+ {
610
+ "id": "PHPCSFIXER_doctrine_annotation_spaces",
611
+ "category": "CodeStyle",
612
+ "severityLevel": "Info",
613
+ "title": "Fix Doctrine annotation spacing",
614
+ "enabled": false,
615
+ "languages": ["PHP"],
616
+ "parameters": [
617
+ {
618
+ "name": "after_argument_assignments",
619
+ "default": "false",
620
+ "description": "Whether to add, remove or ignore spaces after argument assignment operator."
621
+ },
622
+ {
623
+ "name": "after_array_assignments_colon",
624
+ "default": "true",
625
+ "description": "Whether to add, remove or ignore spaces after array assignment `:` operator."
626
+ },
627
+ {
628
+ "name": "after_array_assignments_equals",
629
+ "default": "true",
630
+ "description": "Whether to add, remove or ignore spaces after array assignment `=` operator."
631
+ },
632
+ {
633
+ "name": "around_commas",
634
+ "default": "true",
635
+ "description": "Whether to fix spaces around commas."
636
+ },
637
+ {
638
+ "name": "around_parentheses",
639
+ "default": "true",
640
+ "description": "Whether to fix spaces around parentheses."
641
+ },
642
+ {
643
+ "name": "before_argument_assignments",
644
+ "default": "false",
645
+ "description": "Whether to add, remove or ignore spaces before argument assignment operator."
646
+ },
647
+ {
648
+ "name": "before_array_assignments_colon",
649
+ "default": "true",
650
+ "description": "Whether to add, remove or ignore spaces before array `:` assignment operator."
651
+ },
652
+ {
653
+ "name": "before_array_assignments_equals",
654
+ "default": "true",
655
+ "description": "Whether to add, remove or ignore spaces before array `=` assignment operator."
656
+ }
657
+ ]
658
+ },
659
+ {
660
+ "id": "PHPCSFIXER_echo_tag_syntax",
661
+ "category": "CodeStyle",
662
+ "severityLevel": "Info",
663
+ "title": "Enforce echo tag syntax",
664
+ "enabled": false,
665
+ "languages": ["PHP"],
666
+ "parameters": [
667
+ {
668
+ "name": "format",
669
+ "default": "long",
670
+ "description": "The desired language construct."
671
+ },
672
+ {
673
+ "name": "long_function",
674
+ "default": "echo",
675
+ "description": "The function to be used to expand the short echo tags."
676
+ },
677
+ {
678
+ "name": "shorten_simple_statements_only",
679
+ "default": "true",
680
+ "description": "Render short-echo tags only in case of simple code."
681
+ }
682
+ ]
683
+ },
684
+ {
685
+ "id": "PHPCSFIXER_elseif",
686
+ "category": "CodeStyle",
687
+ "severityLevel": "Info",
688
+ "title": "Use elseif instead of else if",
689
+ "enabled": false,
690
+ "languages": ["PHP"],
691
+ "parameters": []
692
+ },
693
+ {
694
+ "id": "PHPCSFIXER_empty_loop_body",
695
+ "category": "CodeStyle",
696
+ "severityLevel": "Info",
697
+ "title": "Enforce configured style for empty loop bodies",
698
+ "enabled": false,
699
+ "languages": ["PHP"],
700
+ "parameters": [
701
+ {
702
+ "name": "style",
703
+ "default": "semicolon",
704
+ "description": "Style of empty loop-bodies."
705
+ }
706
+ ]
707
+ },
708
+ {
709
+ "id": "PHPCSFIXER_empty_loop_condition",
710
+ "category": "CodeStyle",
711
+ "severityLevel": "Info",
712
+ "title": "Enforce empty loop condition style",
713
+ "enabled": false,
714
+ "languages": ["PHP"],
715
+ "parameters": [
716
+ {
717
+ "name": "style",
718
+ "default": "while",
719
+ "description": "Style of empty loop-condition."
720
+ }
721
+ ]
722
+ },
723
+ {
724
+ "id": "PHPCSFIXER_encoding",
725
+ "category": "Compatibility",
726
+ "severityLevel": "Warning",
727
+ "title": "Enforce UTF-8 Encoding Without BOM",
728
+ "enabled": false,
729
+ "languages": ["PHP"],
730
+ "parameters": [],
731
+ "tags": ["encoding"]
732
+ },
733
+ {
734
+ "id": "PHPCSFIXER_ereg_to_preg",
735
+ "category": "Compatibility",
736
+ "severityLevel": "High",
737
+ "title": "Replace deprecated ereg functions with preg",
738
+ "enabled": false,
739
+ "languages": ["PHP"],
740
+ "parameters": []
741
+ },
742
+ {
743
+ "id": "PHPCSFIXER_error_suppression",
744
+ "category": "BestPractice",
745
+ "severityLevel": "Warning",
746
+ "title": "Enforce appropriate use of error control operator (@)",
747
+ "enabled": false,
748
+ "languages": ["PHP"],
749
+ "parameters": [
750
+ {
751
+ "name": "mute_deprecation_error",
752
+ "default": "true",
753
+ "description": "Whether to add `@` in deprecation notices."
754
+ },
755
+ {
756
+ "name": "noise_remaining_usages",
757
+ "default": "false",
758
+ "description": "Whether to remove `@` in remaining usages."
759
+ }
760
+ ]
761
+ },
762
+ {
763
+ "id": "PHPCSFIXER_escape_implicit_backslashes",
764
+ "category": "CodeStyle",
765
+ "severityLevel": "Info",
766
+ "title": "Escape implicit backslashes in strings and heredocs",
767
+ "enabled": false,
768
+ "languages": ["PHP"],
769
+ "parameters": [
770
+ {
771
+ "name": "double_quoted",
772
+ "default": "true",
773
+ "description": "Whether to fix double-quoted strings."
774
+ },
775
+ {
776
+ "name": "heredoc_syntax",
777
+ "default": "true",
778
+ "description": "Whether to fix heredoc syntax."
779
+ },
780
+ {
781
+ "name": "single_quoted",
782
+ "default": "false",
783
+ "description": "Whether to fix single-quoted strings."
784
+ }
785
+ ]
786
+ },
787
+ {
788
+ "id": "PHPCSFIXER_explicit_indirect_variable",
789
+ "category": "CodeStyle",
790
+ "severityLevel": "Info",
791
+ "title": "Require explicit curly braces for indirect variables",
792
+ "enabled": false,
793
+ "languages": ["PHP"],
794
+ "parameters": []
795
+ },
796
+ {
797
+ "id": "PHPCSFIXER_explicit_string_variable",
798
+ "category": "CodeStyle",
799
+ "severityLevel": "Info",
800
+ "title": "Convert implicit string variables to explicit syntax",
801
+ "enabled": false,
802
+ "languages": ["PHP"],
803
+ "parameters": []
804
+ },
805
+ {
806
+ "id": "PHPCSFIXER_final_class",
807
+ "category": "BestPractice",
808
+ "severityLevel": "Warning",
809
+ "title": "Make classes final",
810
+ "enabled": false,
811
+ "languages": ["PHP"],
812
+ "parameters": []
813
+ },
814
+ {
815
+ "id": "PHPCSFIXER_final_internal_class",
816
+ "category": "BestPractice",
817
+ "severityLevel": "Warning",
818
+ "title": "Make internal classes final",
819
+ "enabled": false,
820
+ "languages": ["PHP"],
821
+ "parameters": [
822
+ {
823
+ "name": "consider_absent_docblock_as_internal_class",
824
+ "default": "false",
825
+ "description": "Whether classes without any DocBlock should be fixed to final."
826
+ }
827
+ ]
828
+ },
829
+ {
830
+ "id": "PHPCSFIXER_final_public_method_for_abstract_class",
831
+ "category": "BestPractice",
832
+ "severityLevel": "Warning",
833
+ "title": "Make public methods of abstract classes final",
834
+ "enabled": false,
835
+ "languages": ["PHP"],
836
+ "parameters": []
837
+ },
838
+ {
839
+ "id": "PHPCSFIXER_fopen_flag_order",
840
+ "category": "CodeStyle",
841
+ "severityLevel": "Info",
842
+ "title": "Order fopen flags with b and t last",
843
+ "enabled": false,
844
+ "languages": ["PHP"],
845
+ "parameters": []
846
+ },
847
+ {
848
+ "id": "PHPCSFIXER_fopen_flags",
849
+ "category": "BestPractice",
850
+ "severityLevel": "Warning",
851
+ "title": "Enforce consistent fopen mode flags (omit 't', consistent 'b')",
852
+ "enabled": false,
853
+ "languages": ["PHP"],
854
+ "parameters": [
855
+ {
856
+ "name": "b_mode",
857
+ "default": "true",
858
+ "description": "The `b` flag must be used (`true`) or omitted (`false`)."
859
+ }
860
+ ]
861
+ },
862
+ {
863
+ "id": "PHPCSFIXER_full_opening_tag",
864
+ "category": "Compatibility",
865
+ "severityLevel": "Warning",
866
+ "title": "Use long PHP opening tags or short-echo tags",
867
+ "enabled": false,
868
+ "languages": ["PHP"],
869
+ "parameters": []
870
+ },
871
+ {
872
+ "id": "PHPCSFIXER_fully_qualified_strict_types",
873
+ "category": "CodeStyle",
874
+ "severityLevel": "Info",
875
+ "title": "Prefer short (non-fully-qualified) class names when imported or in same namespace",
876
+ "enabled": false,
877
+ "languages": ["PHP"],
878
+ "parameters": [
879
+ {
880
+ "name": "import_symbols",
881
+ "default": "false",
882
+ "description": "Whether FQCNs should be automatically imported."
883
+ },
884
+ {
885
+ "name": "leading_backslash_in_global_namespace",
886
+ "default": "false",
887
+ "description": "Whether FQCN is prefixed with backslash when that FQCN is used in global namespace context."
888
+ }
889
+ ]
890
+ },
891
+ {
892
+ "id": "PHPCSFIXER_function_declaration",
893
+ "category": "CodeStyle",
894
+ "severityLevel": "Info",
895
+ "title": "Ensure proper spacing in function declarations",
896
+ "enabled": false,
897
+ "languages": ["PHP"],
898
+ "parameters": [
899
+ {
900
+ "name": "closure_fn_spacing",
901
+ "default": "one",
902
+ "description": "Spacing to use before open parenthesis for short arrow functions."
903
+ },
904
+ {
905
+ "name": "closure_function_spacing",
906
+ "default": "one",
907
+ "description": "Spacing to use before open parenthesis for closures."
908
+ },
909
+ {
910
+ "name": "trailing_comma_single_line",
911
+ "default": "false",
912
+ "description": "Whether trailing commas are allowed in single line signatures."
913
+ }
914
+ ]
915
+ },
916
+ {
917
+ "id": "PHPCSFIXER_function_to_constant",
918
+ "category": "Performance",
919
+ "severityLevel": "Warning",
920
+ "title": "Replace function calls that return constants with constants",
921
+ "enabled": false,
922
+ "languages": ["PHP"],
923
+ "parameters": []
924
+ },
925
+ {
926
+ "id": "PHPCSFIXER_function_typehint_space",
927
+ "category": "CodeStyle",
928
+ "severityLevel": "Info",
929
+ "title": "Ensure single space between parameter typehint and argument",
930
+ "enabled": false,
931
+ "languages": ["PHP"],
932
+ "parameters": []
933
+ },
934
+ {
935
+ "id": "PHPCSFIXER_general_attribute_remove",
936
+ "category": "CodeStyle",
937
+ "severityLevel": "Info",
938
+ "title": "Remove configured attributes by FQN",
939
+ "enabled": false,
940
+ "languages": ["PHP"],
941
+ "parameters": []
942
+ },
943
+ {
944
+ "id": "PHPCSFIXER_general_phpdoc_annotation_remove",
945
+ "category": "CodeStyle",
946
+ "severityLevel": "Info",
947
+ "title": "Remove configured PHPDoc annotations",
948
+ "enabled": false,
949
+ "languages": ["PHP"],
950
+ "parameters": [
951
+ {
952
+ "name": "case_sensitive",
953
+ "default": "true",
954
+ "description": "Should annotations be case sensitive."
955
+ }
956
+ ]
957
+ },
958
+ {
959
+ "id": "PHPCSFIXER_general_phpdoc_tag_rename",
960
+ "category": "CodeStyle",
961
+ "severityLevel": "Info",
962
+ "title": "Rename PHPDoc tags",
963
+ "enabled": false,
964
+ "languages": ["PHP"],
965
+ "parameters": [
966
+ {
967
+ "name": "case_sensitive",
968
+ "default": "false",
969
+ "description": "Whether tags should be replaced only if they have exact same casing."
970
+ },
971
+ {
972
+ "name": "fix_annotation",
973
+ "default": "true",
974
+ "description": "Whether annotation tags should be fixed."
975
+ },
976
+ {
977
+ "name": "fix_inline",
978
+ "default": "true",
979
+ "description": "Whether inline tags should be fixed."
980
+ }
981
+ ]
982
+ },
983
+ {
984
+ "id": "PHPCSFIXER_get_class_to_class_keyword",
985
+ "category": "CodeStyle",
986
+ "severityLevel": "Info",
987
+ "title": "Replace get_class calls with ::class keyword",
988
+ "enabled": false,
989
+ "languages": ["PHP"],
990
+ "parameters": []
991
+ },
992
+ {
993
+ "id": "PHPCSFIXER_global_namespace_import",
994
+ "category": "BestPractice",
995
+ "severityLevel": "Warning",
996
+ "title": "Import or Fully-Qualify Global Symbols",
997
+ "enabled": false,
998
+ "languages": ["PHP"],
999
+ "parameters": [
1000
+ {
1001
+ "name": "import_classes",
1002
+ "default": "true",
1003
+ "description": "Whether to import, not import or ignore global classes."
1004
+ }
1005
+ ]
1006
+ },
1007
+ {
1008
+ "id": "PHPCSFIXER_group_import",
1009
+ "category": "CodeStyle",
1010
+ "severityLevel": "Info",
1011
+ "title": "Enforce grouped use statements for same namespace",
1012
+ "enabled": false,
1013
+ "languages": ["PHP"],
1014
+ "parameters": []
1015
+ },
1016
+ {
1017
+ "id": "PHPCSFIXER_header_comment",
1018
+ "category": "CodeStyle",
1019
+ "severityLevel": "Info",
1020
+ "title": "Manage header comment",
1021
+ "enabled": false,
1022
+ "languages": ["PHP"],
1023
+ "parameters": [
1024
+ {
1025
+ "name": "comment_type",
1026
+ "default": "comment",
1027
+ "description": "Comment syntax type."
1028
+ },
1029
+ {
1030
+ "name": "location",
1031
+ "default": "after_declare_strict",
1032
+ "description": "The location of the inserted header."
1033
+ },
1034
+ {
1035
+ "name": "separate",
1036
+ "default": "both",
1037
+ "description": "Whether the header should be separated from the file content with a new line."
1038
+ }
1039
+ ]
1040
+ },
1041
+ {
1042
+ "id": "PHPCSFIXER_heredoc_closing_marker",
1043
+ "category": "CodeStyle",
1044
+ "severityLevel": "Info",
1045
+ "title": "Unify heredoc/nowdoc closing marker",
1046
+ "enabled": false,
1047
+ "languages": ["PHP"],
1048
+ "parameters": [
1049
+ {
1050
+ "name": "closing_marker",
1051
+ "default": "EOD",
1052
+ "description": "Preferred closing marker."
1053
+ },
1054
+ {
1055
+ "name": "explicit_heredoc_style",
1056
+ "default": "false",
1057
+ "description": "Whether the closing marker should be wrapped in double quotes."
1058
+ }
1059
+ ]
1060
+ },
1061
+ {
1062
+ "id": "PHPCSFIXER_heredoc_indentation",
1063
+ "category": "CodeStyle",
1064
+ "severityLevel": "Info",
1065
+ "title": "Ensure heredoc/nowdoc content is properly indented",
1066
+ "enabled": false,
1067
+ "languages": ["PHP"],
1068
+ "parameters": [
1069
+ {
1070
+ "name": "indentation",
1071
+ "default": "start_plus_one",
1072
+ "description": "Whether the indentation should be the same as in the start token line or one level more."
1073
+ }
1074
+ ]
1075
+ },
1076
+ {
1077
+ "id": "PHPCSFIXER_heredoc_to_nowdoc",
1078
+ "category": "CodeStyle",
1079
+ "severityLevel": "Info",
1080
+ "title": "Convert heredoc to nowdoc where possible",
1081
+ "enabled": false,
1082
+ "languages": ["PHP"],
1083
+ "parameters": []
1084
+ },
1085
+ {
1086
+ "id": "PHPCSFIXER_implode_call",
1087
+ "category": "BestPractice",
1088
+ "severityLevel": "Warning",
1089
+ "title": "Call implode with (glue, pieces) argument order",
1090
+ "enabled": false,
1091
+ "languages": ["PHP"],
1092
+ "parameters": []
1093
+ },
1094
+ {
1095
+ "id": "PHPCSFIXER_include",
1096
+ "category": "CodeStyle",
1097
+ "severityLevel": "Info",
1098
+ "title": "Enforce single space between include/require and file path; disallow parentheses around path",
1099
+ "enabled": false,
1100
+ "languages": ["PHP"],
1101
+ "parameters": []
1102
+ },
1103
+ {
1104
+ "id": "PHPCSFIXER_increment_style",
1105
+ "category": "CodeStyle",
1106
+ "severityLevel": "Info",
1107
+ "title": "Use pre- or post-increment and decrement operators",
1108
+ "enabled": false,
1109
+ "languages": ["PHP"],
1110
+ "parameters": [
1111
+ {
1112
+ "name": "style",
1113
+ "default": "pre",
1114
+ "description": "Whether to use pre- or post-increment and decrement operators."
1115
+ }
1116
+ ]
1117
+ },
1118
+ {
1119
+ "id": "PHPCSFIXER_indentation_type",
1120
+ "category": "CodeStyle",
1121
+ "severityLevel": "Info",
1122
+ "title": "Enforce configured indentation type",
1123
+ "enabled": false,
1124
+ "languages": ["PHP"],
1125
+ "parameters": []
1126
+ },
1127
+ {
1128
+ "id": "PHPCSFIXER_integer_literal_case",
1129
+ "category": "CodeStyle",
1130
+ "severityLevel": "Info",
1131
+ "title": "Enforce integer literal case",
1132
+ "enabled": false,
1133
+ "languages": ["PHP"],
1134
+ "parameters": []
1135
+ },
1136
+ {
1137
+ "id": "PHPCSFIXER_is_null",
1138
+ "category": "BestPractice",
1139
+ "severityLevel": "Warning",
1140
+ "title": "Prefer strict null comparison (use null === var)",
1141
+ "enabled": false,
1142
+ "languages": ["PHP"],
1143
+ "parameters": []
1144
+ },
1145
+ {
1146
+ "id": "PHPCSFIXER_lambda_not_used_import",
1147
+ "category": "CodeStyle",
1148
+ "severityLevel": "Info",
1149
+ "title": "Avoid importing unused variables in lambda (closure) use clause",
1150
+ "enabled": false,
1151
+ "languages": ["PHP"],
1152
+ "parameters": []
1153
+ },
1154
+ {
1155
+ "id": "PHPCSFIXER_linebreak_after_opening_tag",
1156
+ "category": "CodeStyle",
1157
+ "severityLevel": "Info",
1158
+ "title": "Ensure no code on same line as PHP open tag",
1159
+ "enabled": false,
1160
+ "languages": ["PHP"],
1161
+ "parameters": []
1162
+ },
1163
+ {
1164
+ "id": "PHPCSFIXER_line_ending",
1165
+ "category": "CodeStyle",
1166
+ "severityLevel": "Info",
1167
+ "title": "Enforce consistent line endings",
1168
+ "enabled": false,
1169
+ "languages": ["PHP"],
1170
+ "parameters": []
1171
+ },
1172
+ {
1173
+ "id": "PHPCSFIXER_list_syntax",
1174
+ "category": "CodeStyle",
1175
+ "severityLevel": "Info",
1176
+ "title": "Enforce configured list (array destructuring) syntax",
1177
+ "enabled": false,
1178
+ "languages": ["PHP"],
1179
+ "parameters": [
1180
+ {
1181
+ "name": "syntax",
1182
+ "default": "short",
1183
+ "description": "Whether to use the `long` or `short` syntax for array destructuring."
1184
+ }
1185
+ ]
1186
+ },
1187
+ {
1188
+ "id": "PHPCSFIXER_logical_operators",
1189
+ "category": "ErrorProne",
1190
+ "severityLevel": "High",
1191
+ "title": "Use && and || instead of and and or",
1192
+ "enabled": false,
1193
+ "languages": ["PHP"],
1194
+ "parameters": []
1195
+ },
1196
+ {
1197
+ "id": "PHPCSFIXER_long_to_shorthand_operator",
1198
+ "category": "CodeStyle",
1199
+ "severityLevel": "Info",
1200
+ "title": "Use shorthand operators when possible",
1201
+ "enabled": false,
1202
+ "languages": ["PHP"],
1203
+ "parameters": []
1204
+ },
1205
+ {
1206
+ "id": "PHPCSFIXER_lowercase_cast",
1207
+ "category": "CodeStyle",
1208
+ "severityLevel": "Info",
1209
+ "title": "Enforce lower-case type casts",
1210
+ "enabled": true,
1211
+ "languages": ["PHP"],
1212
+ "parameters": []
1213
+ },
1214
+ {
1215
+ "id": "PHPCSFIXER_lowercase_keywords",
1216
+ "category": "CodeStyle",
1217
+ "severityLevel": "Info",
1218
+ "title": "Enforce lower-case PHP keywords",
1219
+ "enabled": false,
1220
+ "languages": ["PHP"],
1221
+ "parameters": []
1222
+ },
1223
+ {
1224
+ "id": "PHPCSFIXER_lowercase_static_reference",
1225
+ "category": "CodeStyle",
1226
+ "severityLevel": "Info",
1227
+ "title": "Enforce lowercase class static references (self, static, parent)",
1228
+ "enabled": true,
1229
+ "languages": ["PHP"],
1230
+ "parameters": []
1231
+ },
1232
+ {
1233
+ "id": "PHPCSFIXER_magic_constant_casing",
1234
+ "category": "CodeStyle",
1235
+ "severityLevel": "Info",
1236
+ "title": "Use correct casing for PHP magic constants",
1237
+ "enabled": false,
1238
+ "languages": ["PHP"],
1239
+ "parameters": []
1240
+ },
1241
+ {
1242
+ "id": "PHPCSFIXER_magic_method_casing",
1243
+ "category": "ErrorProne",
1244
+ "severityLevel": "High",
1245
+ "title": "Enforce correct casing for PHP magic methods",
1246
+ "enabled": false,
1247
+ "languages": ["PHP"],
1248
+ "parameters": []
1249
+ },
1250
+ {
1251
+ "id": "PHPCSFIXER_mb_str_functions",
1252
+ "category": "BestPractice",
1253
+ "severityLevel": "Warning",
1254
+ "title": "Use multibyte-safe string functions (mb_*)",
1255
+ "enabled": false,
1256
+ "languages": ["PHP"],
1257
+ "parameters": []
1258
+ },
1259
+ {
1260
+ "id": "PHPCSFIXER_method_argument_space",
1261
+ "category": "CodeStyle",
1262
+ "severityLevel": "Info",
1263
+ "title": "Enforce spacing around method call and definition arguments",
1264
+ "enabled": false,
1265
+ "languages": ["PHP"],
1266
+ "parameters": [
1267
+ {
1268
+ "name": "after_heredoc",
1269
+ "default": "false",
1270
+ "description": "Whether the whitespace between heredoc end and comma should be removed."
1271
+ },
1272
+ {
1273
+ "name": "attribute_placement",
1274
+ "default": "standalone",
1275
+ "description": "Defines how to handle argument attributes when function definition is multiline."
1276
+ },
1277
+ {
1278
+ "name": "keep_multiple_spaces_after_comma",
1279
+ "default": "false",
1280
+ "description": "Whether keep multiple spaces after comma."
1281
+ },
1282
+ {
1283
+ "name": "on_multiline",
1284
+ "default": "ensure_fully_multiline",
1285
+ "description": "Defines how to handle function arguments lists that contain newlines."
1286
+ }
1287
+ ],
1288
+ "tags": ["psr2"]
1289
+ },
1290
+ {
1291
+ "id": "PHPCSFIXER_method_chaining_indentation",
1292
+ "category": "CodeStyle",
1293
+ "severityLevel": "Info",
1294
+ "title": "Enforce method chaining indentation",
1295
+ "enabled": false,
1296
+ "languages": ["PHP"],
1297
+ "parameters": []
1298
+ },
1299
+ {
1300
+ "id": "PHPCSFIXER_modernize_strpos",
1301
+ "category": "BestPractice",
1302
+ "severityLevel": "Warning",
1303
+ "title": "Replace strpos/stripos with str_starts_with or str_contains",
1304
+ "enabled": false,
1305
+ "languages": ["PHP"],
1306
+ "parameters": [
1307
+ {
1308
+ "name": "modernize_stripos",
1309
+ "default": "false",
1310
+ "description": "Whether to modernize `stripos` calls as well."
1311
+ }
1312
+ ]
1313
+ },
1314
+ {
1315
+ "id": "PHPCSFIXER_modernize_types_casting",
1316
+ "category": "CodeStyle",
1317
+ "severityLevel": "Info",
1318
+ "title": "Replace type-conversion functions with casting operators",
1319
+ "enabled": false,
1320
+ "languages": ["PHP"],
1321
+ "parameters": []
1322
+ },
1323
+ {
1324
+ "id": "PHPCSFIXER_modern_serialization_methods",
1325
+ "category": "Compatibility",
1326
+ "severityLevel": "High",
1327
+ "title": "Use modern serialization methods (__serialize / __unserialize)",
1328
+ "enabled": false,
1329
+ "languages": ["PHP"],
1330
+ "parameters": []
1331
+ },
1332
+ {
1333
+ "id": "PHPCSFIXER_modifier_keywords",
1334
+ "category": "CodeStyle",
1335
+ "severityLevel": "Info",
1336
+ "title": "Enforce modifier keywords order and explicit visibility",
1337
+ "enabled": true,
1338
+ "languages": ["PHP"],
1339
+ "parameters": [],
1340
+ "tags": ["phpcsfixer"]
1341
+ },
1342
+ {
1343
+ "id": "PHPCSFIXER_multiline_comment_opening_closing",
1344
+ "category": "CodeStyle",
1345
+ "severityLevel": "Info",
1346
+ "title": "Enforce proper opening and closing of DocBlocks and multiline comments",
1347
+ "enabled": false,
1348
+ "languages": ["PHP"],
1349
+ "parameters": []
1350
+ },
1351
+ {
1352
+ "id": "PHPCSFIXER_multiline_promoted_properties",
1353
+ "category": "CodeStyle",
1354
+ "severityLevel": "Info",
1355
+ "title": "Enforce promoted properties on separate lines",
1356
+ "enabled": false,
1357
+ "languages": ["PHP"],
1358
+ "parameters": [
1359
+ {
1360
+ "name": "keep_blank_lines",
1361
+ "default": "false",
1362
+ "description": "Whether to keep blank lines between properties."
1363
+ },
1364
+ {
1365
+ "name": "minimum_number_of_parameters",
1366
+ "default": "1",
1367
+ "description": "Minimum number of parameters in the constructor to fix."
1368
+ }
1369
+ ]
1370
+ },
1371
+ {
1372
+ "id": "PHPCSFIXER_multiline_string_to_heredoc",
1373
+ "category": "CodeStyle",
1374
+ "severityLevel": "Info",
1375
+ "title": "Convert multiline string to heredoc/nowdoc",
1376
+ "enabled": false,
1377
+ "languages": ["PHP"],
1378
+ "parameters": []
1379
+ },
1380
+ {
1381
+ "id": "PHPCSFIXER_multiline_whitespace_before_semicolons",
1382
+ "category": "CodeStyle",
1383
+ "severityLevel": "Info",
1384
+ "title": "Forbid multi-line whitespace before semicolons",
1385
+ "enabled": false,
1386
+ "languages": ["PHP"],
1387
+ "parameters": [
1388
+ {
1389
+ "name": "strategy",
1390
+ "default": "no_multi_line",
1391
+ "description": "Forbid multi-line whitespace or move the semicolon to the new line for chained calls."
1392
+ }
1393
+ ]
1394
+ },
1395
+ {
1396
+ "id": "PHPCSFIXER_native_constant_invocation",
1397
+ "category": "Performance",
1398
+ "severityLevel": "Warning",
1399
+ "title": "Add leading backslash for internal constant invocation",
1400
+ "enabled": false,
1401
+ "languages": ["PHP"],
1402
+ "parameters": [
1403
+ {
1404
+ "name": "fix_built_in",
1405
+ "default": "true",
1406
+ "description": "Whether to fix constants returned by `get_defined_constants`. User constants are not accounted in this list and must be specified in the include one."
1407
+ },
1408
+ {
1409
+ "name": "scope",
1410
+ "default": "all",
1411
+ "description": "Only fix constant invocations that are made within a namespace or fix all."
1412
+ },
1413
+ {
1414
+ "name": "strict",
1415
+ "default": "true",
1416
+ "description": "Whether leading `\\` of constant invocation not meant to have it should be removed."
1417
+ }
1418
+ ]
1419
+ },
1420
+ {
1421
+ "id": "PHPCSFIXER_native_function_casing",
1422
+ "category": "CodeStyle",
1423
+ "severityLevel": "Info",
1424
+ "title": "Enforce native PHP function name casing",
1425
+ "enabled": false,
1426
+ "languages": ["PHP"],
1427
+ "parameters": []
1428
+ },
1429
+ {
1430
+ "id": "PHPCSFIXER_native_function_invocation",
1431
+ "category": "Performance",
1432
+ "severityLevel": "Warning",
1433
+ "title": "Add leading backslash to native function invocations",
1434
+ "enabled": false,
1435
+ "languages": ["PHP"],
1436
+ "parameters": [
1437
+ {
1438
+ "name": "scope",
1439
+ "default": "all",
1440
+ "description": "Only fix function calls that are made within a namespace or fix all."
1441
+ },
1442
+ {
1443
+ "name": "strict",
1444
+ "default": "true",
1445
+ "description": "Whether leading `\\` of function call not meant to have it should be removed."
1446
+ }
1447
+ ]
1448
+ },
1449
+ {
1450
+ "id": "PHPCSFIXER_native_function_type_declaration_casing",
1451
+ "category": "CodeStyle",
1452
+ "severityLevel": "Info",
1453
+ "title": "Enforce native function type declaration casing",
1454
+ "enabled": false,
1455
+ "languages": ["PHP"],
1456
+ "parameters": []
1457
+ },
1458
+ {
1459
+ "id": "PHPCSFIXER_native_type_declaration_casing",
1460
+ "category": "CodeStyle",
1461
+ "severityLevel": "Info",
1462
+ "title": "Enforce native type declaration casing",
1463
+ "enabled": false,
1464
+ "languages": ["PHP"],
1465
+ "parameters": []
1466
+ },
1467
+ {
1468
+ "id": "PHPCSFIXER_new_expression_parentheses",
1469
+ "category": "CodeStyle",
1470
+ "severityLevel": "Info",
1471
+ "title": "Enforce new expression parentheses for further calls",
1472
+ "enabled": false,
1473
+ "languages": ["PHP"],
1474
+ "parameters": [
1475
+ {
1476
+ "name": "use_parentheses",
1477
+ "default": "false",
1478
+ "description": "Whether `new` expressions with a further call should be wrapped in parentheses or not."
1479
+ }
1480
+ ]
1481
+ },
1482
+ {
1483
+ "id": "PHPCSFIXER_new_with_braces",
1484
+ "category": "CodeStyle",
1485
+ "severityLevel": "Info",
1486
+ "title": "Enforce presence or absence of parentheses after new",
1487
+ "enabled": false,
1488
+ "languages": ["PHP"],
1489
+ "parameters": [
1490
+ {
1491
+ "name": "anonymous_class",
1492
+ "default": "true",
1493
+ "description": "Whether anonymous classes should be followed by parentheses."
1494
+ },
1495
+ {
1496
+ "name": "named_class",
1497
+ "default": "true",
1498
+ "description": "Whether named classes should be followed by parentheses."
1499
+ }
1500
+ ]
1501
+ },
1502
+ {
1503
+ "id": "PHPCSFIXER_new_with_parentheses",
1504
+ "category": "CodeStyle",
1505
+ "severityLevel": "Info",
1506
+ "title": "Enforce new keyword parentheses usage",
1507
+ "enabled": true,
1508
+ "languages": ["PHP"],
1509
+ "parameters": [
1510
+ {
1511
+ "name": "anonymous_class",
1512
+ "default": "true",
1513
+ "description": "Whether anonymous classes should be followed by parentheses."
1514
+ },
1515
+ {
1516
+ "name": "named_class",
1517
+ "default": "true",
1518
+ "description": "Whether named classes should be followed by parentheses."
1519
+ }
1520
+ ]
1521
+ },
1522
+ {
1523
+ "id": "PHPCSFIXER_no_alias_functions",
1524
+ "category": "CodeStyle",
1525
+ "severityLevel": "Info",
1526
+ "title": "Use master PHP functions instead of aliases",
1527
+ "enabled": false,
1528
+ "languages": ["PHP"],
1529
+ "parameters": []
1530
+ },
1531
+ {
1532
+ "id": "PHPCSFIXER_no_alias_language_construct_call",
1533
+ "category": "CodeStyle",
1534
+ "severityLevel": "Info",
1535
+ "title": "Use master language constructs instead of aliases",
1536
+ "enabled": false,
1537
+ "languages": ["PHP"],
1538
+ "parameters": []
1539
+ },
1540
+ {
1541
+ "id": "PHPCSFIXER_no_alternative_syntax",
1542
+ "category": "CodeStyle",
1543
+ "severityLevel": "Info",
1544
+ "title": "Replace alternative control structure syntax with braces",
1545
+ "enabled": false,
1546
+ "languages": ["PHP"],
1547
+ "parameters": [
1548
+ {
1549
+ "name": "fix_non_monolithic_code",
1550
+ "default": "true",
1551
+ "description": "Whether to also fix code with inline HTML."
1552
+ }
1553
+ ]
1554
+ },
1555
+ {
1556
+ "id": "PHPCSFIXER_no_binary_string",
1557
+ "category": "CodeStyle",
1558
+ "severityLevel": "Info",
1559
+ "title": "Disallow binary flag before strings",
1560
+ "enabled": false,
1561
+ "languages": ["PHP"],
1562
+ "parameters": []
1563
+ },
1564
+ {
1565
+ "id": "PHPCSFIXER_no_blank_lines_after_class_opening",
1566
+ "category": "CodeStyle",
1567
+ "severityLevel": "Info",
1568
+ "title": "Disallow blank lines after class opening brace",
1569
+ "enabled": true,
1570
+ "languages": ["PHP"],
1571
+ "parameters": []
1572
+ },
1573
+ {
1574
+ "id": "PHPCSFIXER_no_blank_lines_after_phpdoc",
1575
+ "category": "CodeStyle",
1576
+ "severityLevel": "Info",
1577
+ "title": "Disallow blank lines after PHPDoc",
1578
+ "enabled": false,
1579
+ "languages": ["PHP"],
1580
+ "parameters": []
1581
+ },
1582
+ {
1583
+ "id": "PHPCSFIXER_no_blank_lines_before_namespace",
1584
+ "category": "CodeStyle",
1585
+ "severityLevel": "Info",
1586
+ "title": "Disallow blank lines before namespace declaration",
1587
+ "enabled": false,
1588
+ "languages": ["PHP"],
1589
+ "parameters": []
1590
+ },
1591
+ {
1592
+ "id": "PHPCSFIXER_no_break_comment",
1593
+ "category": "BestPractice",
1594
+ "severityLevel": "Info",
1595
+ "title": "Require comment for intentional fall-through in switch cases",
1596
+ "enabled": false,
1597
+ "languages": ["PHP"],
1598
+ "parameters": [
1599
+ {
1600
+ "name": "comment_text",
1601
+ "default": "no break",
1602
+ "description": "The text to use in the added comment and to detect it."
1603
+ }
1604
+ ]
1605
+ },
1606
+ {
1607
+ "id": "PHPCSFIXER_no_closing_tag",
1608
+ "category": "CodeStyle",
1609
+ "severityLevel": "Info",
1610
+ "title": "Omit PHP closing tag in pure PHP files",
1611
+ "enabled": false,
1612
+ "languages": ["PHP"],
1613
+ "parameters": []
1614
+ },
1615
+ {
1616
+ "id": "PHPCSFIXER_no_empty_comment",
1617
+ "category": "CodeStyle",
1618
+ "severityLevel": "Info",
1619
+ "title": "Disallow empty comments",
1620
+ "enabled": false,
1621
+ "languages": ["PHP"],
1622
+ "parameters": []
1623
+ },
1624
+ {
1625
+ "id": "PHPCSFIXER_no_empty_phpdoc",
1626
+ "category": "CodeStyle",
1627
+ "severityLevel": "Info",
1628
+ "title": "Disallow empty PHPDoc blocks",
1629
+ "enabled": false,
1630
+ "languages": ["PHP"],
1631
+ "parameters": []
1632
+ },
1633
+ {
1634
+ "id": "PHPCSFIXER_no_empty_statement",
1635
+ "category": "CodeStyle",
1636
+ "severityLevel": "Info",
1637
+ "title": "Remove useless empty (semicolon) statements",
1638
+ "enabled": false,
1639
+ "languages": ["PHP"],
1640
+ "parameters": []
1641
+ },
1642
+ {
1643
+ "id": "PHPCSFIXER_no_extra_blank_lines",
1644
+ "category": "CodeStyle",
1645
+ "severityLevel": "Info",
1646
+ "title": "Remove extra blank lines",
1647
+ "enabled": true,
1648
+ "languages": ["PHP"],
1649
+ "parameters": []
1650
+ },
1651
+ {
1652
+ "id": "PHPCSFIXER_no_homoglyph_names",
1653
+ "category": "BestPractice",
1654
+ "severityLevel": "Warning",
1655
+ "title": "Replace accidental usage of homoglyphs in names",
1656
+ "enabled": false,
1657
+ "languages": ["PHP"],
1658
+ "parameters": []
1659
+ },
1660
+ {
1661
+ "id": "PHPCSFIXER_no_leading_import_slash",
1662
+ "category": "CodeStyle",
1663
+ "severityLevel": "Info",
1664
+ "title": "Remove leading slashes in use clauses",
1665
+ "enabled": true,
1666
+ "languages": ["PHP"],
1667
+ "parameters": []
1668
+ },
1669
+ {
1670
+ "id": "PHPCSFIXER_no_leading_namespace_whitespace",
1671
+ "category": "CodeStyle",
1672
+ "severityLevel": "Info",
1673
+ "title": "Disallow leading whitespace on namespace declaration",
1674
+ "enabled": false,
1675
+ "languages": ["PHP"],
1676
+ "parameters": []
1677
+ },
1678
+ {
1679
+ "id": "PHPCSFIXER_no_mixed_echo_print",
1680
+ "category": "CodeStyle",
1681
+ "severityLevel": "Info",
1682
+ "title": "Use a single output construct (echo or print)",
1683
+ "enabled": false,
1684
+ "languages": ["PHP"],
1685
+ "parameters": [
1686
+ {
1687
+ "name": "use",
1688
+ "default": "echo",
1689
+ "description": "The desired language construct."
1690
+ }
1691
+ ]
1692
+ },
1693
+ {
1694
+ "id": "PHPCSFIXER_no_multiline_whitespace_around_double_arrow",
1695
+ "category": "CodeStyle",
1696
+ "severityLevel": "Info",
1697
+ "title": "Disallow multi-line whitespace around => operator",
1698
+ "enabled": false,
1699
+ "languages": ["PHP"],
1700
+ "parameters": []
1701
+ },
1702
+ {
1703
+ "id": "PHPCSFIXER_no_multiple_statements_per_line",
1704
+ "category": "CodeStyle",
1705
+ "severityLevel": "Info",
1706
+ "title": "Disallow multiple statements per line",
1707
+ "enabled": false,
1708
+ "languages": ["PHP"],
1709
+ "parameters": []
1710
+ },
1711
+ {
1712
+ "id": "PHPCSFIXER_non_printable_character",
1713
+ "category": "CodeStyle",
1714
+ "severityLevel": "Warning",
1715
+ "title": "Disallow invisible Unicode characters in source code",
1716
+ "enabled": false,
1717
+ "languages": ["PHP"],
1718
+ "parameters": [
1719
+ {
1720
+ "name": "use_escape_sequences_in_strings",
1721
+ "default": "true",
1722
+ "description": "Whether characters should be replaced with escape sequences in strings."
1723
+ }
1724
+ ],
1725
+ "tags": ["ai", "ai-risk", "ai-safety"]
1726
+ },
1727
+ {
1728
+ "id": "PHPCSFIXER_no_null_property_initialization",
1729
+ "category": "CodeStyle",
1730
+ "severityLevel": "Info",
1731
+ "title": "Disallow explicit null property initialization",
1732
+ "enabled": false,
1733
+ "languages": ["PHP"],
1734
+ "parameters": []
1735
+ },
1736
+ {
1737
+ "id": "PHPCSFIXER_no_php4_constructor",
1738
+ "category": "Compatibility",
1739
+ "severityLevel": "High",
1740
+ "title": "Convert PHP4-style constructors to __construct",
1741
+ "enabled": false,
1742
+ "languages": ["PHP"],
1743
+ "parameters": []
1744
+ },
1745
+ {
1746
+ "id": "PHPCSFIXER_no_redundant_readonly_property",
1747
+ "category": "CodeStyle",
1748
+ "severityLevel": "Info",
1749
+ "title": "Remove redundant readonly from properties in readonly classes",
1750
+ "enabled": false,
1751
+ "languages": ["PHP"],
1752
+ "parameters": []
1753
+ },
1754
+ {
1755
+ "id": "PHPCSFIXER_normalize_index_brace",
1756
+ "category": "Compatibility",
1757
+ "severityLevel": "High",
1758
+ "title": "Use square braces for array/index access",
1759
+ "enabled": false,
1760
+ "languages": ["PHP"],
1761
+ "parameters": []
1762
+ },
1763
+ {
1764
+ "id": "PHPCSFIXER_no_short_bool_cast",
1765
+ "category": "CodeStyle",
1766
+ "severityLevel": "Info",
1767
+ "title": "Avoid short bool cast using double exclamation",
1768
+ "enabled": false,
1769
+ "languages": ["PHP"],
1770
+ "parameters": []
1771
+ },
1772
+ {
1773
+ "id": "PHPCSFIXER_no_singleline_whitespace_before_semicolons",
1774
+ "category": "CodeStyle",
1775
+ "severityLevel": "Info",
1776
+ "title": "Disallow single-line whitespace before semicolons",
1777
+ "enabled": false,
1778
+ "languages": ["PHP"],
1779
+ "parameters": []
1780
+ },
1781
+ {
1782
+ "id": "PHPCSFIXER_no_space_around_double_colon",
1783
+ "category": "CodeStyle",
1784
+ "severityLevel": "Info",
1785
+ "title": "Disallow spaces around double colon (Scope Resolution Operator)",
1786
+ "enabled": false,
1787
+ "languages": ["PHP"],
1788
+ "parameters": []
1789
+ },
1790
+ {
1791
+ "id": "PHPCSFIXER_no_spaces_after_function_name",
1792
+ "category": "CodeStyle",
1793
+ "severityLevel": "Info",
1794
+ "title": "Disallow spaces between function/method name and opening parenthesis",
1795
+ "enabled": false,
1796
+ "languages": ["PHP"],
1797
+ "parameters": []
1798
+ },
1799
+ {
1800
+ "id": "PHPCSFIXER_no_spaces_around_offset",
1801
+ "category": "CodeStyle",
1802
+ "severityLevel": "Info",
1803
+ "title": "Disallow spaces around array offset braces",
1804
+ "enabled": false,
1805
+ "languages": ["PHP"],
1806
+ "parameters": []
1807
+ },
1808
+ {
1809
+ "id": "PHPCSFIXER_no_spaces_inside_parenthesis",
1810
+ "category": "CodeStyle",
1811
+ "severityLevel": "Info",
1812
+ "title": "Disallow spaces inside parentheses",
1813
+ "enabled": false,
1814
+ "languages": ["PHP"],
1815
+ "parameters": []
1816
+ },
1817
+ {
1818
+ "id": "PHPCSFIXER_no_superfluous_elseif",
1819
+ "category": "CodeStyle",
1820
+ "severityLevel": "Info",
1821
+ "title": "Replace superfluous elseif with if",
1822
+ "enabled": false,
1823
+ "languages": ["PHP"],
1824
+ "parameters": []
1825
+ },
1826
+ {
1827
+ "id": "PHPCSFIXER_no_superfluous_phpdoc_tags",
1828
+ "category": "CodeStyle",
1829
+ "severityLevel": "Info",
1830
+ "title": "Remove superfluous PHPDoc tags",
1831
+ "enabled": false,
1832
+ "languages": ["PHP"],
1833
+ "parameters": [
1834
+ {
1835
+ "name": "allow_hidden_params",
1836
+ "default": "false",
1837
+ "description": "Whether `param` annotation for hidden params in method signature are allowed."
1838
+ },
1839
+ {
1840
+ "name": "allow_mixed",
1841
+ "default": "false",
1842
+ "description": "Whether type `mixed` without description is allowed (`true`) or considered superfluous (`false`)."
1843
+ },
1844
+ {
1845
+ "name": "allow_unused_params",
1846
+ "default": "false",
1847
+ "description": "Whether `param` annotation without actual signature is allowed (`true`) or considered superfluous (`false`)."
1848
+ },
1849
+ {
1850
+ "name": "remove_inheritdoc",
1851
+ "default": "false",
1852
+ "description": "Remove `@inheritDoc` tags."
1853
+ }
1854
+ ]
1855
+ },
1856
+ {
1857
+ "id": "PHPCSFIXER_not_operator_with_space",
1858
+ "category": "CodeStyle",
1859
+ "severityLevel": "Info",
1860
+ "title": "Require spaces around logical NOT operator",
1861
+ "enabled": false,
1862
+ "languages": ["PHP"],
1863
+ "parameters": []
1864
+ },
1865
+ {
1866
+ "id": "PHPCSFIXER_not_operator_with_successor_space",
1867
+ "category": "CodeStyle",
1868
+ "severityLevel": "Info",
1869
+ "title": "Require single trailing space after logical NOT operator",
1870
+ "enabled": false,
1871
+ "languages": ["PHP"],
1872
+ "parameters": []
1873
+ },
1874
+ {
1875
+ "id": "PHPCSFIXER_no_trailing_comma_in_list_call",
1876
+ "category": "CodeStyle",
1877
+ "severityLevel": "Info",
1878
+ "title": "Remove trailing commas in list() calls",
1879
+ "enabled": false,
1880
+ "languages": ["PHP"],
1881
+ "parameters": []
1882
+ },
1883
+ {
1884
+ "id": "PHPCSFIXER_no_trailing_comma_in_singleline",
1885
+ "category": "CodeStyle",
1886
+ "severityLevel": "Info",
1887
+ "title": "Disallow trailing comma in single-line lists",
1888
+ "enabled": false,
1889
+ "languages": ["PHP"],
1890
+ "parameters": []
1891
+ },
1892
+ {
1893
+ "id": "PHPCSFIXER_no_trailing_comma_in_singleline_array",
1894
+ "category": "CodeStyle",
1895
+ "severityLevel": "Info",
1896
+ "title": "Disallow trailing comma in single-line PHP arrays",
1897
+ "enabled": false,
1898
+ "languages": ["PHP"],
1899
+ "parameters": []
1900
+ },
1901
+ {
1902
+ "id": "PHPCSFIXER_no_trailing_comma_in_singleline_function_call",
1903
+ "category": "CodeStyle",
1904
+ "severityLevel": "Info",
1905
+ "title": "Disallow trailing comma in single-line function or method calls",
1906
+ "enabled": false,
1907
+ "languages": ["PHP"],
1908
+ "parameters": []
1909
+ },
1910
+ {
1911
+ "id": "PHPCSFIXER_no_trailing_whitespace",
1912
+ "category": "CodeStyle",
1913
+ "severityLevel": "Info",
1914
+ "title": "Disallow trailing whitespace",
1915
+ "enabled": false,
1916
+ "languages": ["PHP"],
1917
+ "parameters": []
1918
+ },
1919
+ {
1920
+ "id": "PHPCSFIXER_no_trailing_whitespace_in_comment",
1921
+ "category": "CodeStyle",
1922
+ "severityLevel": "Info",
1923
+ "title": "Disallow trailing whitespace in comments",
1924
+ "enabled": false,
1925
+ "languages": ["PHP"],
1926
+ "parameters": []
1927
+ },
1928
+ {
1929
+ "id": "PHPCSFIXER_no_trailing_whitespace_in_string",
1930
+ "category": "CodeStyle",
1931
+ "severityLevel": "Info",
1932
+ "title": "Disallow trailing whitespace in string literals",
1933
+ "enabled": false,
1934
+ "languages": ["PHP"],
1935
+ "parameters": []
1936
+ },
1937
+ {
1938
+ "id": "PHPCSFIXER_no_unneeded_braces",
1939
+ "category": "CodeStyle",
1940
+ "severityLevel": "Info",
1941
+ "title": "Remove unneeded braces",
1942
+ "enabled": false,
1943
+ "languages": ["PHP"],
1944
+ "parameters": [
1945
+ {
1946
+ "name": "namespaces",
1947
+ "default": "false",
1948
+ "description": "Remove unneeded braces from bracketed namespaces."
1949
+ }
1950
+ ]
1951
+ },
1952
+ {
1953
+ "id": "PHPCSFIXER_no_unneeded_control_parentheses",
1954
+ "category": "CodeStyle",
1955
+ "severityLevel": "Info",
1956
+ "title": "Remove unneeded parentheses around control statements",
1957
+ "enabled": false,
1958
+ "languages": ["PHP"],
1959
+ "parameters": []
1960
+ },
1961
+ {
1962
+ "id": "PHPCSFIXER_no_unneeded_curly_braces",
1963
+ "category": "CodeStyle",
1964
+ "severityLevel": "Info",
1965
+ "title": "Remove unneeded curly braces",
1966
+ "enabled": false,
1967
+ "languages": ["PHP"],
1968
+ "parameters": [
1969
+ {
1970
+ "name": "namespaces",
1971
+ "default": "false",
1972
+ "description": "Remove unneeded curly braces from bracketed namespaces."
1973
+ }
1974
+ ]
1975
+ },
1976
+ {
1977
+ "id": "PHPCSFIXER_no_unneeded_final_method",
1978
+ "category": "CodeStyle",
1979
+ "severityLevel": "Info",
1980
+ "title": "Remove unneeded final from methods",
1981
+ "enabled": false,
1982
+ "languages": ["PHP"],
1983
+ "parameters": [
1984
+ {
1985
+ "name": "private_methods",
1986
+ "default": "true",
1987
+ "description": "Private methods of non-`final` classes must not be declared `final`."
1988
+ }
1989
+ ]
1990
+ },
1991
+ {
1992
+ "id": "PHPCSFIXER_no_unneeded_import_alias",
1993
+ "category": "CodeStyle",
1994
+ "severityLevel": "Info",
1995
+ "title": "Disallow aliasing imports to the same name",
1996
+ "enabled": false,
1997
+ "languages": ["PHP"],
1998
+ "parameters": []
1999
+ },
2000
+ {
2001
+ "id": "PHPCSFIXER_no_unreachable_default_argument_value",
2002
+ "category": "ErrorProne",
2003
+ "severityLevel": "High",
2004
+ "title": "Disallow default-valued arguments before non-default ones",
2005
+ "enabled": false,
2006
+ "languages": ["PHP"],
2007
+ "parameters": []
2008
+ },
2009
+ {
2010
+ "id": "PHPCSFIXER_no_unset_cast",
2011
+ "category": "Compatibility",
2012
+ "severityLevel": "Warning",
2013
+ "title": "Use null instead of (unset) cast",
2014
+ "enabled": false,
2015
+ "languages": ["PHP"],
2016
+ "parameters": []
2017
+ },
2018
+ {
2019
+ "id": "PHPCSFIXER_no_unset_on_property",
2020
+ "category": "BestPractice",
2021
+ "severityLevel": "Warning",
2022
+ "title": "Set properties to null instead of using unset",
2023
+ "enabled": false,
2024
+ "languages": ["PHP"],
2025
+ "parameters": []
2026
+ },
2027
+ {
2028
+ "id": "PHPCSFIXER_no_unused_imports",
2029
+ "category": "CodeStyle",
2030
+ "severityLevel": "Info",
2031
+ "title": "Remove unused use statements",
2032
+ "enabled": false,
2033
+ "languages": ["PHP"],
2034
+ "parameters": []
2035
+ },
2036
+ {
2037
+ "id": "PHPCSFIXER_no_useless_concat_operator",
2038
+ "category": "CodeStyle",
2039
+ "severityLevel": "Info",
2040
+ "title": "Avoid useless string concatenation",
2041
+ "enabled": false,
2042
+ "languages": ["PHP"],
2043
+ "parameters": [
2044
+ {
2045
+ "name": "juggle_simple_strings",
2046
+ "default": "false",
2047
+ "description": "Allow for simple string quote juggling if it results in more concat-operations merges."
2048
+ }
2049
+ ]
2050
+ },
2051
+ {
2052
+ "id": "PHPCSFIXER_no_useless_else",
2053
+ "category": "CodeStyle",
2054
+ "severityLevel": "Info",
2055
+ "title": "Remove useless else",
2056
+ "enabled": false,
2057
+ "languages": ["PHP"],
2058
+ "parameters": []
2059
+ },
2060
+ {
2061
+ "id": "PHPCSFIXER_no_useless_nullsafe_operator",
2062
+ "category": "CodeStyle",
2063
+ "severityLevel": "Info",
2064
+ "title": "Avoid useless Null-safe operator (?->)",
2065
+ "enabled": false,
2066
+ "languages": ["PHP"],
2067
+ "parameters": []
2068
+ },
2069
+ {
2070
+ "id": "PHPCSFIXER_no_useless_printf",
2071
+ "category": "CodeStyle",
2072
+ "severityLevel": "Info",
2073
+ "title": "Avoid useless printf with single argument",
2074
+ "enabled": false,
2075
+ "languages": ["PHP"],
2076
+ "parameters": []
2077
+ },
2078
+ {
2079
+ "id": "PHPCSFIXER_no_useless_return",
2080
+ "category": "CodeStyle",
2081
+ "severityLevel": "Info",
2082
+ "title": "Avoid useless empty return at end of function",
2083
+ "enabled": false,
2084
+ "languages": ["PHP"],
2085
+ "parameters": []
2086
+ },
2087
+ {
2088
+ "id": "PHPCSFIXER_no_useless_sprintf",
2089
+ "category": "CodeStyle",
2090
+ "severityLevel": "Info",
2091
+ "title": "Avoid useless sprintf with single argument",
2092
+ "enabled": false,
2093
+ "languages": ["PHP"],
2094
+ "parameters": []
2095
+ },
2096
+ {
2097
+ "id": "PHPCSFIXER_no_whitespace_before_comma_in_array",
2098
+ "category": "CodeStyle",
2099
+ "severityLevel": "Info",
2100
+ "title": "Disallow whitespace before comma in array",
2101
+ "enabled": false,
2102
+ "languages": ["PHP"],
2103
+ "parameters": [
2104
+ {
2105
+ "name": "after_heredoc",
2106
+ "default": "false",
2107
+ "description": "Whether the whitespace between heredoc end and comma should be removed."
2108
+ }
2109
+ ]
2110
+ },
2111
+ {
2112
+ "id": "PHPCSFIXER_no_whitespace_in_blank_line",
2113
+ "category": "CodeStyle",
2114
+ "severityLevel": "Info",
2115
+ "title": "Remove trailing whitespace on blank lines",
2116
+ "enabled": true,
2117
+ "languages": ["PHP"],
2118
+ "parameters": []
2119
+ },
2120
+ {
2121
+ "id": "PHPCSFIXER_no_whitespace_in_empty_array",
2122
+ "category": "CodeStyle",
2123
+ "severityLevel": "Info",
2124
+ "title": "Disallow whitespace-only empty arrays",
2125
+ "enabled": false,
2126
+ "languages": ["PHP"],
2127
+ "parameters": []
2128
+ },
2129
+ {
2130
+ "id": "PHPCSFIXER_nullable_type_declaration",
2131
+ "category": "CodeStyle",
2132
+ "severityLevel": "Info",
2133
+ "title": "Standardize nullable single type declaration syntax",
2134
+ "enabled": false,
2135
+ "languages": ["PHP"],
2136
+ "parameters": [
2137
+ {
2138
+ "name": "syntax",
2139
+ "default": "question_mark",
2140
+ "description": "Whether to use question mark (`?`) or explicit `null` union for nullable type."
2141
+ }
2142
+ ]
2143
+ },
2144
+ {
2145
+ "id": "PHPCSFIXER_nullable_type_declaration_for_default_null_value",
2146
+ "category": "CodeStyle",
2147
+ "severityLevel": "Info",
2148
+ "title": "Enforce nullable type declaration for parameters with default null",
2149
+ "enabled": false,
2150
+ "languages": ["PHP"],
2151
+ "parameters": [
2152
+ {
2153
+ "name": "use_nullable_type_declaration",
2154
+ "default": "true",
2155
+ "description": "Whether to add or remove `?` or `|null` to parameters with a default `null` value."
2156
+ }
2157
+ ]
2158
+ },
2159
+ {
2160
+ "id": "PHPCSFIXER_numeric_literal_separator",
2161
+ "category": "CodeStyle",
2162
+ "severityLevel": "Info",
2163
+ "title": "Add numeric literal separators",
2164
+ "enabled": false,
2165
+ "languages": ["PHP"],
2166
+ "parameters": [
2167
+ {
2168
+ "name": "override_existing",
2169
+ "default": "false",
2170
+ "description": "Whether literals already containing underscores should be reformatted."
2171
+ },
2172
+ {
2173
+ "name": "strategy",
2174
+ "default": "use_separator",
2175
+ "description": "Whether numeric literal should be separated by underscores or not."
2176
+ }
2177
+ ]
2178
+ },
2179
+ {
2180
+ "id": "PHPCSFIXER_object_operator_without_whitespace",
2181
+ "category": "CodeStyle",
2182
+ "severityLevel": "Info",
2183
+ "title": "Disallow spaces around object operators",
2184
+ "enabled": false,
2185
+ "languages": ["PHP"],
2186
+ "parameters": []
2187
+ },
2188
+ {
2189
+ "id": "PHPCSFIXER_octal_notation",
2190
+ "category": "CodeStyle",
2191
+ "severityLevel": "Info",
2192
+ "title": "Use 0o octal notation",
2193
+ "enabled": false,
2194
+ "languages": ["PHP"],
2195
+ "parameters": []
2196
+ },
2197
+ {
2198
+ "id": "PHPCSFIXER_operator_linebreak",
2199
+ "category": "CodeStyle",
2200
+ "severityLevel": "Info",
2201
+ "title": "Enforce operator placement on multiline expressions",
2202
+ "enabled": false,
2203
+ "languages": ["PHP"],
2204
+ "parameters": [
2205
+ {
2206
+ "name": "only_booleans",
2207
+ "default": "false",
2208
+ "description": "Whether to limit operators to only boolean ones."
2209
+ },
2210
+ {
2211
+ "name": "position",
2212
+ "default": "beginning",
2213
+ "description": "Whether to place operators at the beginning or at the end of the line."
2214
+ }
2215
+ ]
2216
+ },
2217
+ {
2218
+ "id": "PHPCSFIXER_ordered_attributes",
2219
+ "category": "CodeStyle",
2220
+ "severityLevel": "Info",
2221
+ "title": "Sort Attributes (ordered_attributes)",
2222
+ "enabled": false,
2223
+ "languages": ["PHP"],
2224
+ "parameters": [
2225
+ {
2226
+ "name": "sort_algorithm",
2227
+ "default": "alpha",
2228
+ "description": "How the attributes should be sorted."
2229
+ }
2230
+ ]
2231
+ },
2232
+ {
2233
+ "id": "PHPCSFIXER_ordered_class_elements",
2234
+ "category": "CodeStyle",
2235
+ "severityLevel": "Info",
2236
+ "title": "Order class/interface/trait/enum elements",
2237
+ "enabled": true,
2238
+ "languages": ["PHP"],
2239
+ "parameters": [
2240
+ {
2241
+ "name": "case_sensitive",
2242
+ "default": "false",
2243
+ "description": "Whether the sorting should be case sensitive."
2244
+ },
2245
+ {
2246
+ "name": "sort_algorithm",
2247
+ "default": "none",
2248
+ "description": "How multiple occurrences of same type statements should be sorted."
2249
+ }
2250
+ ]
2251
+ },
2252
+ {
2253
+ "id": "PHPCSFIXER_ordered_imports",
2254
+ "category": "CodeStyle",
2255
+ "severityLevel": "Info",
2256
+ "title": "Order use statements",
2257
+ "enabled": true,
2258
+ "languages": ["PHP"],
2259
+ "parameters": [
2260
+ {
2261
+ "name": "case_sensitive",
2262
+ "default": "false",
2263
+ "description": "Whether the sorting should be case sensitive."
2264
+ },
2265
+ {
2266
+ "name": "sort_algorithm",
2267
+ "default": "alpha",
2268
+ "description": "Whether the statements should be sorted alphabetically or by length (*deprecated*), or not sorted."
2269
+ }
2270
+ ]
2271
+ },
2272
+ {
2273
+ "id": "PHPCSFIXER_ordered_interfaces",
2274
+ "category": "CodeStyle",
2275
+ "severityLevel": "Info",
2276
+ "title": "Order interfaces in implements/extends clauses",
2277
+ "enabled": false,
2278
+ "languages": ["PHP"],
2279
+ "parameters": [
2280
+ {
2281
+ "name": "case_sensitive",
2282
+ "default": "false",
2283
+ "description": "Whether the sorting should be case sensitive."
2284
+ },
2285
+ {
2286
+ "name": "direction",
2287
+ "default": "ascend",
2288
+ "description": "Which direction the interfaces should be ordered."
2289
+ },
2290
+ {
2291
+ "name": "order",
2292
+ "default": "alpha",
2293
+ "description": "How the interfaces should be ordered."
2294
+ }
2295
+ ]
2296
+ },
2297
+ {
2298
+ "id": "PHPCSFIXER_ordered_traits",
2299
+ "category": "CodeStyle",
2300
+ "severityLevel": "Info",
2301
+ "title": "Enforce alphabetic ordering of trait use statements",
2302
+ "enabled": false,
2303
+ "languages": ["PHP"],
2304
+ "parameters": [
2305
+ {
2306
+ "name": "case_sensitive",
2307
+ "default": "false",
2308
+ "description": "Whether the sorting should be case sensitive."
2309
+ }
2310
+ ]
2311
+ },
2312
+ {
2313
+ "id": "PHPCSFIXER_ordered_types",
2314
+ "category": "CodeStyle",
2315
+ "severityLevel": "Info",
2316
+ "title": "Sort union and intersection types using configured order",
2317
+ "enabled": false,
2318
+ "languages": ["PHP"],
2319
+ "parameters": [
2320
+ {
2321
+ "name": "case_sensitive",
2322
+ "default": "false",
2323
+ "description": "Whether the sorting should be case sensitive."
2324
+ },
2325
+ {
2326
+ "name": "null_adjustment",
2327
+ "default": "always_first",
2328
+ "description": "Forces the position of `null` (overrides `sort_algorithm`)."
2329
+ },
2330
+ {
2331
+ "name": "sort_algorithm",
2332
+ "default": "alpha",
2333
+ "description": "Whether the types should be sorted alphabetically, or not sorted."
2334
+ }
2335
+ ]
2336
+ },
2337
+ {
2338
+ "id": "PHPCSFIXER_phpdoc_add_missing_param_annotation",
2339
+ "category": "Documentation",
2340
+ "severityLevel": "Info",
2341
+ "title": "Require PHPDoc @param for all function parameters",
2342
+ "enabled": false,
2343
+ "languages": ["PHP"],
2344
+ "parameters": [
2345
+ {
2346
+ "name": "only_untyped",
2347
+ "default": "true",
2348
+ "description": "Whether to add missing `@param` annotations for untyped parameters only."
2349
+ }
2350
+ ]
2351
+ },
2352
+ {
2353
+ "id": "PHPCSFIXER_phpdoc_align",
2354
+ "category": "CodeStyle",
2355
+ "severityLevel": "Info",
2356
+ "title": "Enforce PHPDoc tag alignment",
2357
+ "enabled": false,
2358
+ "languages": ["PHP"],
2359
+ "parameters": [
2360
+ {
2361
+ "name": "align",
2362
+ "default": "vertical",
2363
+ "description": "How comments should be aligned."
2364
+ },
2365
+ {
2366
+ "name": "spacing",
2367
+ "default": "1",
2368
+ "description": "Spacing between tag, hint, comment, signature, etc. You can set same spacing for all tags using a positive integer or different spacings for different tags using an associative array of positive integers `['tagA' => spacingForA, 'tagB' => spacingForB]`. If you want to define default spacing to more than 1 space use `_default` key in config array, e.g.: `['tagA' => spacingForA, 'tagB' => spacingForB, '_default' => spacingForAllOthers]`."
2369
+ }
2370
+ ]
2371
+ },
2372
+ {
2373
+ "id": "PHPCSFIXER_phpdoc_annotation_without_dot",
2374
+ "category": "CodeStyle",
2375
+ "severityLevel": "Info",
2376
+ "title": "Disallow sentence-style PHPDoc annotation descriptions",
2377
+ "enabled": false,
2378
+ "languages": ["PHP"],
2379
+ "parameters": []
2380
+ },
2381
+ {
2382
+ "id": "PHPCSFIXER_phpdoc_array_type",
2383
+ "category": "CodeStyle",
2384
+ "severityLevel": "Info",
2385
+ "title": "Enforce PHPDoc generic array syntax",
2386
+ "enabled": false,
2387
+ "languages": ["PHP"],
2388
+ "parameters": []
2389
+ },
2390
+ {
2391
+ "id": "PHPCSFIXER_phpdoc_indent",
2392
+ "category": "CodeStyle",
2393
+ "severityLevel": "Info",
2394
+ "title": "Enforce PHPDoc indentation matching documented subject",
2395
+ "enabled": false,
2396
+ "languages": ["PHP"],
2397
+ "parameters": []
2398
+ },
2399
+ {
2400
+ "id": "PHPCSFIXER_phpdoc_inline_tag_normalizer",
2401
+ "category": "Documentation",
2402
+ "severityLevel": "Info",
2403
+ "title": "Normalize PHPDoc inline tags",
2404
+ "enabled": false,
2405
+ "languages": ["PHP"],
2406
+ "parameters": []
2407
+ },
2408
+ {
2409
+ "id": "PHPCSFIXER_phpdoc_line_span",
2410
+ "category": "CodeStyle",
2411
+ "severityLevel": "Info",
2412
+ "title": "Normalize PHPDoc block line span",
2413
+ "enabled": false,
2414
+ "languages": ["PHP"],
2415
+ "parameters": [
2416
+ {
2417
+ "name": "case",
2418
+ "default": "multi",
2419
+ "description": "Whether enum case doc blocks should be single or multi line."
2420
+ },
2421
+ {
2422
+ "name": "class",
2423
+ "default": "multi",
2424
+ "description": "Whether class/interface/enum/trait blocks should be single or multi line."
2425
+ },
2426
+ {
2427
+ "name": "const",
2428
+ "default": "multi",
2429
+ "description": "Whether const blocks should be single or multi line."
2430
+ },
2431
+ {
2432
+ "name": "function",
2433
+ "default": "multi",
2434
+ "description": "Whether function declaration doc blocks should be single or multi line."
2435
+ },
2436
+ {
2437
+ "name": "method",
2438
+ "default": "multi",
2439
+ "description": "Whether method doc blocks should be single or multi line."
2440
+ },
2441
+ {
2442
+ "name": "property",
2443
+ "default": "multi",
2444
+ "description": "Whether property doc blocks should be single or multi line."
2445
+ }
2446
+ ]
2447
+ },
2448
+ {
2449
+ "id": "PHPCSFIXER_phpdoc_list_type",
2450
+ "category": "CodeStyle",
2451
+ "severityLevel": "Info",
2452
+ "title": "Use PHPDoc list type for sequential arrays",
2453
+ "enabled": false,
2454
+ "languages": ["PHP"],
2455
+ "parameters": []
2456
+ },
2457
+ {
2458
+ "id": "PHPCSFIXER_phpdoc_no_access",
2459
+ "category": "CodeStyle",
2460
+ "severityLevel": "Info",
2461
+ "title": "Remove @access annotations from PHPDoc",
2462
+ "enabled": false,
2463
+ "languages": ["PHP"],
2464
+ "parameters": []
2465
+ },
2466
+ {
2467
+ "id": "PHPCSFIXER_phpdoc_no_alias_tag",
2468
+ "category": "CodeStyle",
2469
+ "severityLevel": "Info",
2470
+ "title": "Disallow alias PHPDoc tags",
2471
+ "enabled": false,
2472
+ "languages": ["PHP"],
2473
+ "parameters": []
2474
+ },
2475
+ {
2476
+ "id": "PHPCSFIXER_phpdoc_no_duplicate_types",
2477
+ "category": "CodeStyle",
2478
+ "severityLevel": "Info",
2479
+ "title": "Remove duplicate PHPDoc types",
2480
+ "enabled": false,
2481
+ "languages": ["PHP"],
2482
+ "parameters": []
2483
+ },
2484
+ {
2485
+ "id": "PHPCSFIXER_phpdoc_no_empty_return",
2486
+ "category": "CodeStyle",
2487
+ "severityLevel": "Info",
2488
+ "title": "Remove empty @return annotations from PHPDoc",
2489
+ "enabled": false,
2490
+ "languages": ["PHP"],
2491
+ "parameters": []
2492
+ },
2493
+ {
2494
+ "id": "PHPCSFIXER_phpdoc_no_package",
2495
+ "category": "CodeStyle",
2496
+ "severityLevel": "Info",
2497
+ "title": "Remove @package and @subpackage PHPDoc annotations",
2498
+ "enabled": false,
2499
+ "languages": ["PHP"],
2500
+ "parameters": []
2501
+ },
2502
+ {
2503
+ "id": "PHPCSFIXER_phpdoc_no_useless_inheritdoc",
2504
+ "category": "CodeStyle",
2505
+ "severityLevel": "Info",
2506
+ "title": "Disallow useless @inheritdoc in classes",
2507
+ "enabled": false,
2508
+ "languages": ["PHP"],
2509
+ "parameters": []
2510
+ },
2511
+ {
2512
+ "id": "PHPCSFIXER_phpdoc_order",
2513
+ "category": "CodeStyle",
2514
+ "severityLevel": "Info",
2515
+ "title": "Enforce PHPDoc annotation order",
2516
+ "enabled": false,
2517
+ "languages": ["PHP"],
2518
+ "parameters": []
2519
+ },
2520
+ {
2521
+ "id": "PHPCSFIXER_phpdoc_order_by_value",
2522
+ "category": "CodeStyle",
2523
+ "severityLevel": "Info",
2524
+ "title": "Order PHPDoc tags by value",
2525
+ "enabled": false,
2526
+ "languages": ["PHP"],
2527
+ "parameters": []
2528
+ },
2529
+ {
2530
+ "id": "PHPCSFIXER_phpdoc_param_order",
2531
+ "category": "CodeStyle",
2532
+ "severityLevel": "Info",
2533
+ "title": "Order phpdoc @param annotations to match method signature",
2534
+ "enabled": false,
2535
+ "languages": ["PHP"],
2536
+ "parameters": []
2537
+ },
2538
+ {
2539
+ "id": "PHPCSFIXER_phpdoc_readonly_class_comment_to_keyword",
2540
+ "category": "CodeStyle",
2541
+ "severityLevel": "Info",
2542
+ "title": "Convert @readonly phpdoc on classes to readonly keyword",
2543
+ "enabled": false,
2544
+ "languages": ["PHP"],
2545
+ "parameters": []
2546
+ },
2547
+ {
2548
+ "id": "PHPCSFIXER_phpdoc_return_self_reference",
2549
+ "category": "CodeStyle",
2550
+ "severityLevel": "Info",
2551
+ "title": "Enforce configured @return self-reference type",
2552
+ "enabled": false,
2553
+ "languages": ["PHP"],
2554
+ "parameters": []
2555
+ },
2556
+ {
2557
+ "id": "PHPCSFIXER_phpdoc_scalar",
2558
+ "category": "CodeStyle",
2559
+ "severityLevel": "Info",
2560
+ "title": "Enforce canonical PHPDoc scalar type names",
2561
+ "enabled": false,
2562
+ "languages": ["PHP"],
2563
+ "parameters": []
2564
+ },
2565
+ {
2566
+ "id": "PHPCSFIXER_phpdoc_separation",
2567
+ "category": "CodeStyle",
2568
+ "severityLevel": "Info",
2569
+ "title": "Group PHPDoc annotations by type with single blank line separation",
2570
+ "enabled": false,
2571
+ "languages": ["PHP"],
2572
+ "parameters": [
2573
+ {
2574
+ "name": "skip_unlisted_annotations",
2575
+ "default": "false",
2576
+ "description": "Whether to skip annotations that are not listed in any group."
2577
+ }
2578
+ ]
2579
+ },
2580
+ {
2581
+ "id": "PHPCSFIXER_phpdoc_single_line_var_spacing",
2582
+ "category": "CodeStyle",
2583
+ "severityLevel": "Info",
2584
+ "title": "Enforce single-line @var PHPDoc spacing",
2585
+ "enabled": false,
2586
+ "languages": ["PHP"],
2587
+ "parameters": []
2588
+ },
2589
+ {
2590
+ "id": "PHPCSFIXER_phpdoc_summary",
2591
+ "category": "CodeStyle",
2592
+ "severityLevel": "Info",
2593
+ "title": "Ensure PHPDoc summary ends with punctuation",
2594
+ "enabled": false,
2595
+ "languages": ["PHP"],
2596
+ "parameters": []
2597
+ },
2598
+ {
2599
+ "id": "PHPCSFIXER_phpdoc_tag_casing",
2600
+ "category": "CodeStyle",
2601
+ "severityLevel": "Info",
2602
+ "title": "Fix PHPDoc tag casing",
2603
+ "enabled": false,
2604
+ "languages": ["PHP"],
2605
+ "parameters": []
2606
+ },
2607
+ {
2608
+ "id": "PHPCSFIXER_phpdoc_tag_no_named_arguments",
2609
+ "category": "Documentation",
2610
+ "severityLevel": "Info",
2611
+ "title": "Require @no-named-arguments PHPDoc tag",
2612
+ "enabled": false,
2613
+ "languages": ["PHP"],
2614
+ "parameters": [
2615
+ {
2616
+ "name": "description",
2617
+ "default": "",
2618
+ "description": "Description of the tag."
2619
+ },
2620
+ {
2621
+ "name": "fix_attribute",
2622
+ "default": "true",
2623
+ "description": "Whether to fix attribute classes."
2624
+ },
2625
+ {
2626
+ "name": "fix_internal",
2627
+ "default": "true",
2628
+ "description": "Whether to fix internal elements (marked with `@internal`)."
2629
+ }
2630
+ ]
2631
+ },
2632
+ {
2633
+ "id": "PHPCSFIXER_phpdoc_tag_type",
2634
+ "category": "CodeStyle",
2635
+ "severityLevel": "Info",
2636
+ "title": "Enforce PHPDoc tags as regular annotations or inline",
2637
+ "enabled": false,
2638
+ "languages": ["PHP"],
2639
+ "parameters": []
2640
+ },
2641
+ {
2642
+ "id": "PHPCSFIXER_phpdoc_to_comment",
2643
+ "category": "CodeStyle",
2644
+ "severityLevel": "Info",
2645
+ "title": "Use comments instead of docblocks for non-structural elements",
2646
+ "enabled": false,
2647
+ "languages": ["PHP"],
2648
+ "parameters": [
2649
+ {
2650
+ "name": "allow_before_return_statement",
2651
+ "default": "false",
2652
+ "description": "Whether to allow PHPDoc before return statement."
2653
+ }
2654
+ ]
2655
+ },
2656
+ {
2657
+ "id": "PHPCSFIXER_phpdoc_to_param_type",
2658
+ "category": "BestPractice",
2659
+ "severityLevel": "Warning",
2660
+ "title": "Convert phpdoc @param types to function parameter types",
2661
+ "enabled": false,
2662
+ "languages": ["PHP"],
2663
+ "parameters": [
2664
+ {
2665
+ "name": "scalar_types",
2666
+ "default": "true",
2667
+ "description": "Fix also scalar types; may have unexpected behaviour due to PHP bad type coercion system."
2668
+ },
2669
+ {
2670
+ "name": "union_types",
2671
+ "default": "true",
2672
+ "description": "Fix also union types; turned on by default on PHP >= 8.0.0."
2673
+ }
2674
+ ],
2675
+ "tags": ["phpdoc", "types", "refactor"]
2676
+ },
2677
+ {
2678
+ "id": "PHPCSFIXER_phpdoc_to_property_type",
2679
+ "category": "CodeStyle",
2680
+ "severityLevel": "Info",
2681
+ "title": "Apply @var PHPDoc to property type declarations",
2682
+ "enabled": false,
2683
+ "languages": ["PHP"],
2684
+ "parameters": [
2685
+ {
2686
+ "name": "scalar_types",
2687
+ "default": "true",
2688
+ "description": "Fix also scalar types; may have unexpected behaviour due to PHP bad type coercion system."
2689
+ },
2690
+ {
2691
+ "name": "union_types",
2692
+ "default": "true",
2693
+ "description": "Fix also union types; turned on by default on PHP >= 8.0.0."
2694
+ }
2695
+ ]
2696
+ },
2697
+ {
2698
+ "id": "PHPCSFIXER_phpdoc_to_return_type",
2699
+ "category": "BestPractice",
2700
+ "severityLevel": "Warning",
2701
+ "title": "Apply @return phpdoc to function return type",
2702
+ "enabled": false,
2703
+ "languages": ["PHP"],
2704
+ "parameters": [
2705
+ {
2706
+ "name": "scalar_types",
2707
+ "default": "true",
2708
+ "description": "Fix also scalar types; may have unexpected behaviour due to PHP bad type coercion system."
2709
+ },
2710
+ {
2711
+ "name": "union_types",
2712
+ "default": "true",
2713
+ "description": "Fix also union types; turned on by default on PHP >= 8.0.0."
2714
+ }
2715
+ ]
2716
+ },
2717
+ {
2718
+ "id": "PHPCSFIXER_phpdoc_trim",
2719
+ "category": "CodeStyle",
2720
+ "severityLevel": "Info",
2721
+ "title": "Ensure PHPDoc starts and ends with content",
2722
+ "enabled": false,
2723
+ "languages": ["PHP"],
2724
+ "parameters": []
2725
+ },
2726
+ {
2727
+ "id": "PHPCSFIXER_phpdoc_trim_consecutive_blank_line_separation",
2728
+ "category": "CodeStyle",
2729
+ "severityLevel": "Info",
2730
+ "title": "Remove consecutive blank lines in PHPDoc",
2731
+ "enabled": false,
2732
+ "languages": ["PHP"],
2733
+ "parameters": []
2734
+ },
2735
+ {
2736
+ "id": "PHPCSFIXER_phpdoc_types",
2737
+ "category": "CodeStyle",
2738
+ "severityLevel": "Info",
2739
+ "title": "Use correct case for standard PHP types in PHPDoc",
2740
+ "enabled": false,
2741
+ "languages": ["PHP"],
2742
+ "parameters": []
2743
+ },
2744
+ {
2745
+ "id": "PHPCSFIXER_phpdoc_types_no_duplicates",
2746
+ "category": "CodeStyle",
2747
+ "severityLevel": "Info",
2748
+ "title": "Remove duplicate PHPDoc types",
2749
+ "enabled": false,
2750
+ "languages": ["PHP"],
2751
+ "parameters": []
2752
+ },
2753
+ {
2754
+ "id": "PHPCSFIXER_phpdoc_types_order",
2755
+ "category": "CodeStyle",
2756
+ "severityLevel": "Info",
2757
+ "title": "Sort PHPDoc types",
2758
+ "enabled": false,
2759
+ "languages": ["PHP"],
2760
+ "parameters": [
2761
+ {
2762
+ "name": "case_sensitive",
2763
+ "default": "false",
2764
+ "description": "Whether the sorting should be case sensitive."
2765
+ },
2766
+ {
2767
+ "name": "null_adjustment",
2768
+ "default": "always_first",
2769
+ "description": "Forces the position of `null` (overrides `sort_algorithm`)."
2770
+ },
2771
+ {
2772
+ "name": "sort_algorithm",
2773
+ "default": "alpha",
2774
+ "description": "The sorting algorithm to apply."
2775
+ }
2776
+ ]
2777
+ },
2778
+ {
2779
+ "id": "PHPCSFIXER_phpdoc_var_annotation_correct_order",
2780
+ "category": "CodeStyle",
2781
+ "severityLevel": "Info",
2782
+ "title": "Enforce correct order of @var/@type annotations",
2783
+ "enabled": false,
2784
+ "languages": ["PHP"],
2785
+ "parameters": []
2786
+ },
2787
+ {
2788
+ "id": "PHPCSFIXER_phpdoc_var_without_name",
2789
+ "category": "CodeStyle",
2790
+ "severityLevel": "Info",
2791
+ "title": "Disallow name in @var/@type property annotations",
2792
+ "enabled": false,
2793
+ "languages": ["PHP"],
2794
+ "parameters": []
2795
+ },
2796
+ {
2797
+ "id": "PHPCSFIXER_php_unit_assert_new_names",
2798
+ "category": "Compatibility",
2799
+ "severityLevel": "Warning",
2800
+ "title": "Rename deprecated PHPUnit assertions to new names",
2801
+ "enabled": false,
2802
+ "languages": ["PHP"],
2803
+ "parameters": [],
2804
+ "tags": ["lib:phpunit"]
2805
+ },
2806
+ {
2807
+ "id": "PHPCSFIXER_php_unit_attributes",
2808
+ "category": "BestPractice",
2809
+ "severityLevel": "Warning",
2810
+ "title": "Use PHPUnit attributes instead of PHPDoc annotations",
2811
+ "enabled": false,
2812
+ "languages": ["PHP"],
2813
+ "parameters": [
2814
+ {
2815
+ "name": "keep_annotations",
2816
+ "default": "false",
2817
+ "description": "Whether to keep annotations or not. This may be helpful for projects that support PHP before version 8 or PHPUnit before version 10."
2818
+ }
2819
+ ]
2820
+ },
2821
+ {
2822
+ "id": "PHPCSFIXER_php_unit_construct",
2823
+ "category": "BestPractice",
2824
+ "severityLevel": "Info",
2825
+ "title": "Use dedicated PHPUnit assertion methods (e.g., assertTrue/assertFalse/assertNull)",
2826
+ "enabled": false,
2827
+ "languages": ["PHP"],
2828
+ "parameters": [],
2829
+ "tags": ["lib:phpunit"]
2830
+ },
2831
+ {
2832
+ "id": "PHPCSFIXER_php_unit_data_provider_method_order",
2833
+ "category": "CodeStyle",
2834
+ "severityLevel": "Info",
2835
+ "title": "Enforce data provider method placement relative to tests",
2836
+ "enabled": false,
2837
+ "languages": ["PHP"],
2838
+ "parameters": [
2839
+ {
2840
+ "name": "placement",
2841
+ "default": "after",
2842
+ "description": "Where to place the data provider relative to the test where used."
2843
+ }
2844
+ ]
2845
+ },
2846
+ {
2847
+ "id": "PHPCSFIXER_php_unit_data_provider_name",
2848
+ "category": "CodeStyle",
2849
+ "severityLevel": "Info",
2850
+ "title": "Enforce data provider name matches test name",
2851
+ "enabled": false,
2852
+ "languages": ["PHP"],
2853
+ "parameters": [
2854
+ {
2855
+ "name": "prefix",
2856
+ "default": "provide",
2857
+ "description": "Prefix that replaces \"test\"."
2858
+ },
2859
+ {
2860
+ "name": "suffix",
2861
+ "default": "Cases",
2862
+ "description": "Suffix to be present at the end."
2863
+ }
2864
+ ]
2865
+ },
2866
+ {
2867
+ "id": "PHPCSFIXER_php_unit_data_provider_return_type",
2868
+ "category": "ErrorProne",
2869
+ "severityLevel": "High",
2870
+ "title": "Require PHPUnit data provider return type to be iterable",
2871
+ "enabled": false,
2872
+ "languages": ["PHP"],
2873
+ "parameters": []
2874
+ },
2875
+ {
2876
+ "id": "PHPCSFIXER_php_unit_data_provider_static",
2877
+ "category": "ErrorProne",
2878
+ "severityLevel": "High",
2879
+ "title": "Require PHPUnit data providers to be static",
2880
+ "enabled": false,
2881
+ "languages": ["PHP"],
2882
+ "parameters": [
2883
+ {
2884
+ "name": "force",
2885
+ "default": "false",
2886
+ "description": "Whether to make the data providers static even if they have a dynamic class call (may introduce fatal error \"using $this when not in object context\", and you may have to adjust the code manually by converting dynamic calls to static ones)."
2887
+ }
2888
+ ]
2889
+ },
2890
+ {
2891
+ "id": "PHPCSFIXER_php_unit_dedicate_assert",
2892
+ "category": "BestPractice",
2893
+ "severityLevel": "Warning",
2894
+ "title": "Prefer dedicated PHPUnit assertions over assertTrue",
2895
+ "enabled": false,
2896
+ "languages": ["PHP"],
2897
+ "parameters": [
2898
+ {
2899
+ "name": "target",
2900
+ "default": "newest",
2901
+ "description": "Target version of PHPUnit."
2902
+ }
2903
+ ]
2904
+ },
2905
+ {
2906
+ "id": "PHPCSFIXER_php_unit_dedicate_assert_internal_type",
2907
+ "category": "Compatibility",
2908
+ "severityLevel": "High",
2909
+ "title": "Use dedicated PHPUnit type assertions instead of assertInternalType",
2910
+ "enabled": false,
2911
+ "languages": ["PHP"],
2912
+ "parameters": [
2913
+ {
2914
+ "name": "target",
2915
+ "default": "newest",
2916
+ "description": "Target version of PHPUnit."
2917
+ }
2918
+ ]
2919
+ },
2920
+ {
2921
+ "id": "PHPCSFIXER_php_unit_expectation",
2922
+ "category": "Compatibility",
2923
+ "severityLevel": "High",
2924
+ "title": "Replace setExpectedException* with expectException*",
2925
+ "enabled": false,
2926
+ "languages": ["PHP"],
2927
+ "parameters": [
2928
+ {
2929
+ "name": "target",
2930
+ "default": "newest",
2931
+ "description": "Target version of PHPUnit."
2932
+ }
2933
+ ]
2934
+ },
2935
+ {
2936
+ "id": "PHPCSFIXER_php_unit_fqcn_annotation",
2937
+ "category": "CodeStyle",
2938
+ "severityLevel": "Info",
2939
+ "title": "Require PHPUnit annotations to be FQCNs with root namespace",
2940
+ "enabled": false,
2941
+ "languages": ["PHP"],
2942
+ "parameters": []
2943
+ },
2944
+ {
2945
+ "id": "PHPCSFIXER_php_unit_internal_class",
2946
+ "category": "BestPractice",
2947
+ "severityLevel": "Info",
2948
+ "title": "Mark PHPUnit test classes as internal",
2949
+ "enabled": false,
2950
+ "languages": ["PHP"],
2951
+ "parameters": []
2952
+ },
2953
+ {
2954
+ "id": "PHPCSFIXER_php_unit_method_casing",
2955
+ "category": "CodeStyle",
2956
+ "severityLevel": "Info",
2957
+ "title": "Enforce PHPUnit test method casing",
2958
+ "enabled": false,
2959
+ "languages": ["PHP"],
2960
+ "parameters": [
2961
+ {
2962
+ "name": "case",
2963
+ "default": "camel_case",
2964
+ "description": "Apply camel or snake case to test methods."
2965
+ }
2966
+ ]
2967
+ },
2968
+ {
2969
+ "id": "PHPCSFIXER_php_unit_mock",
2970
+ "category": "Compatibility",
2971
+ "severityLevel": "High",
2972
+ "title": "Replace PHPUnit getMock* with createMock/createPartialMock",
2973
+ "enabled": false,
2974
+ "languages": ["PHP"],
2975
+ "parameters": [
2976
+ {
2977
+ "name": "target",
2978
+ "default": "newest",
2979
+ "description": "Target version of PHPUnit."
2980
+ }
2981
+ ],
2982
+ "tags": ["lib:phpunit"]
2983
+ },
2984
+ {
2985
+ "id": "PHPCSFIXER_php_unit_mock_short_will_return",
2986
+ "category": "CodeStyle",
2987
+ "severityLevel": "Info",
2988
+ "title": "Use short PHPUnit mock willReturn equivalents",
2989
+ "enabled": false,
2990
+ "languages": ["PHP"],
2991
+ "parameters": []
2992
+ },
2993
+ {
2994
+ "id": "PHPCSFIXER_php_unit_namespaced",
2995
+ "category": "Compatibility",
2996
+ "severityLevel": "Warning",
2997
+ "title": "Use namespaced PHPUnit classes",
2998
+ "enabled": false,
2999
+ "languages": ["PHP"],
3000
+ "parameters": [
3001
+ {
3002
+ "name": "target",
3003
+ "default": "newest",
3004
+ "description": "Target version of PHPUnit."
3005
+ }
3006
+ ]
3007
+ },
3008
+ {
3009
+ "id": "PHPCSFIXER_php_unit_no_expectation_annotation",
3010
+ "category": "Compatibility",
3011
+ "severityLevel": "High",
3012
+ "title": "Replace @expectedException annotations with ->setExpectedException methods",
3013
+ "enabled": false,
3014
+ "languages": ["PHP"],
3015
+ "parameters": [
3016
+ {
3017
+ "name": "target",
3018
+ "default": "newest",
3019
+ "description": "Target version of PHPUnit."
3020
+ },
3021
+ {
3022
+ "name": "use_class_const",
3023
+ "default": "true",
3024
+ "description": "Use ::class notation."
3025
+ }
3026
+ ]
3027
+ },
3028
+ {
3029
+ "id": "PHPCSFIXER_php_unit_set_up_tear_down_visibility",
3030
+ "category": "CodeStyle",
3031
+ "severityLevel": "Info",
3032
+ "title": "Enforce protected visibility for PHPUnit setUp and tearDown",
3033
+ "enabled": false,
3034
+ "languages": ["PHP"],
3035
+ "parameters": []
3036
+ },
3037
+ {
3038
+ "id": "PHPCSFIXER_php_unit_size_class",
3039
+ "category": "BestPractice",
3040
+ "severityLevel": "Warning",
3041
+ "title": "Require PHPUnit size annotation",
3042
+ "enabled": false,
3043
+ "languages": ["PHP"],
3044
+ "parameters": [
3045
+ {
3046
+ "name": "group",
3047
+ "default": "small",
3048
+ "description": "Define a specific group to be used in case no group is already in use."
3049
+ }
3050
+ ]
3051
+ },
3052
+ {
3053
+ "id": "PHPCSFIXER_php_unit_strict",
3054
+ "category": "BestPractice",
3055
+ "severityLevel": "Warning",
3056
+ "title": "Prefer strict PHPUnit assertions (assertSame/assertNotSame) over assertEquals/assertNotEquals",
3057
+ "enabled": false,
3058
+ "languages": ["PHP"],
3059
+ "parameters": []
3060
+ },
3061
+ {
3062
+ "id": "PHPCSFIXER_php_unit_test_annotation",
3063
+ "category": "BestPractice",
3064
+ "severityLevel": "Warning",
3065
+ "title": "Enforce PHPUnit @test annotation usage",
3066
+ "enabled": false,
3067
+ "languages": ["PHP"],
3068
+ "parameters": [
3069
+ {
3070
+ "name": "style",
3071
+ "default": "prefix",
3072
+ "description": "Whether to use the @test annotation or not."
3073
+ }
3074
+ ]
3075
+ },
3076
+ {
3077
+ "id": "PHPCSFIXER_php_unit_test_case_static_method_calls",
3078
+ "category": "CodeStyle",
3079
+ "severityLevel": "Info",
3080
+ "title": "Enforce consistent PHPUnit TestCase method call style",
3081
+ "enabled": false,
3082
+ "languages": ["PHP"],
3083
+ "parameters": [
3084
+ {
3085
+ "name": "call_type",
3086
+ "default": "static",
3087
+ "description": "The call type to use for referring to PHPUnit methods."
3088
+ },
3089
+ {
3090
+ "name": "target",
3091
+ "default": "10.0",
3092
+ "description": "Target version of PHPUnit."
3093
+ }
3094
+ ]
3095
+ },
3096
+ {
3097
+ "id": "PHPCSFIXER_php_unit_test_class_requires_covers",
3098
+ "category": "BestPractice",
3099
+ "severityLevel": "Info",
3100
+ "title": "Add default @coversNothing to PHPUnit test classes without @covers*",
3101
+ "enabled": false,
3102
+ "languages": ["PHP"],
3103
+ "parameters": [],
3104
+ "tags": ["testing", "lib:phpunit"]
3105
+ },
3106
+ {
3107
+ "id": "PHPCSFIXER_pow_to_exponentiation",
3108
+ "category": "CodeStyle",
3109
+ "severityLevel": "Info",
3110
+ "title": "Convert pow() to ** operator",
3111
+ "enabled": false,
3112
+ "languages": ["PHP"],
3113
+ "parameters": []
3114
+ },
3115
+ {
3116
+ "id": "PHPCSFIXER_protected_to_private",
3117
+ "category": "BestPractice",
3118
+ "severityLevel": "Warning",
3119
+ "title": "Convert protected to private where possible",
3120
+ "enabled": false,
3121
+ "languages": ["PHP"],
3122
+ "parameters": []
3123
+ },
3124
+ {
3125
+ "id": "PHPCSFIXER_psr_autoloading",
3126
+ "category": "CodeStyle",
3127
+ "severityLevel": "Info",
3128
+ "title": "Enforce PSR autoloading: class file path matches namespace and class name",
3129
+ "enabled": false,
3130
+ "languages": ["PHP"],
3131
+ "parameters": []
3132
+ },
3133
+ {
3134
+ "id": "PHPCSFIXER_random_api_migration",
3135
+ "category": "BestPractice",
3136
+ "severityLevel": "Warning",
3137
+ "title": "Replace deprecated/random functions with mt_* or random_int",
3138
+ "enabled": false,
3139
+ "languages": ["PHP"],
3140
+ "parameters": []
3141
+ },
3142
+ {
3143
+ "id": "PHPCSFIXER_regular_callable_call",
3144
+ "category": "Performance",
3145
+ "severityLevel": "Warning",
3146
+ "title": "Call callables directly instead of using call_user_func*",
3147
+ "enabled": false,
3148
+ "languages": ["PHP"],
3149
+ "parameters": []
3150
+ },
3151
+ {
3152
+ "id": "PHPCSFIXER_return_assignment",
3153
+ "category": "CodeStyle",
3154
+ "severityLevel": "Info",
3155
+ "title": "Avoid assigning a local variable only to return it",
3156
+ "enabled": false,
3157
+ "languages": ["PHP"],
3158
+ "parameters": [
3159
+ {
3160
+ "name": "skip_named_var_tags",
3161
+ "default": "false",
3162
+ "description": "Whether to skip cases where named `@var` tags are used."
3163
+ }
3164
+ ]
3165
+ },
3166
+ {
3167
+ "id": "PHPCSFIXER_return_to_yield_from",
3168
+ "category": "BestPractice",
3169
+ "severityLevel": "Warning",
3170
+ "title": "Use yield from for iterable return types",
3171
+ "enabled": false,
3172
+ "languages": ["PHP"],
3173
+ "parameters": []
3174
+ },
3175
+ {
3176
+ "id": "PHPCSFIXER_return_type_declaration",
3177
+ "category": "CodeStyle",
3178
+ "severityLevel": "Info",
3179
+ "title": "Adjust spacing around colon in return type declarations",
3180
+ "enabled": true,
3181
+ "languages": ["PHP"],
3182
+ "parameters": [
3183
+ {
3184
+ "name": "space_before",
3185
+ "default": "none",
3186
+ "description": "Spacing to apply before colon."
3187
+ }
3188
+ ]
3189
+ },
3190
+ {
3191
+ "id": "PHPCSFIXER_self_accessor",
3192
+ "category": "CodeStyle",
3193
+ "severityLevel": "Info",
3194
+ "title": "Prefer self over class name inside class or interface",
3195
+ "enabled": false,
3196
+ "languages": ["PHP"],
3197
+ "parameters": []
3198
+ },
3199
+ {
3200
+ "id": "PHPCSFIXER_self_static_accessor",
3201
+ "category": "CodeStyle",
3202
+ "severityLevel": "Info",
3203
+ "title": "Prefer self over static inside enums and final/anonymous classes",
3204
+ "enabled": false,
3205
+ "languages": ["PHP"],
3206
+ "parameters": []
3207
+ },
3208
+ {
3209
+ "id": "PHPCSFIXER_semicolon_after_instruction",
3210
+ "category": "ErrorProne",
3211
+ "severityLevel": "High",
3212
+ "title": "Require semicolon after instructions",
3213
+ "enabled": false,
3214
+ "languages": ["PHP"],
3215
+ "parameters": []
3216
+ },
3217
+ {
3218
+ "id": "PHPCSFIXER_set_type_to_cast",
3219
+ "category": "BestPractice",
3220
+ "severityLevel": "Warning",
3221
+ "title": "Use cast instead of settype",
3222
+ "enabled": false,
3223
+ "languages": ["PHP"],
3224
+ "parameters": []
3225
+ },
3226
+ {
3227
+ "id": "PHPCSFIXER_short_scalar_cast",
3228
+ "category": "CodeStyle",
3229
+ "severityLevel": "Info",
3230
+ "title": "Use short scalar casts",
3231
+ "enabled": true,
3232
+ "languages": ["PHP"],
3233
+ "parameters": []
3234
+ },
3235
+ {
3236
+ "id": "PHPCSFIXER_simple_to_complex_string_variable",
3237
+ "category": "CodeStyle",
3238
+ "severityLevel": "Info",
3239
+ "title": "Convert explicit variables in double-quoted strings and heredoc from simple to complex format",
3240
+ "enabled": false,
3241
+ "languages": ["PHP"],
3242
+ "parameters": []
3243
+ },
3244
+ {
3245
+ "id": "PHPCSFIXER_simplified_if_return",
3246
+ "category": "CodeStyle",
3247
+ "severityLevel": "Info",
3248
+ "title": "Simplify if return to direct boolean return",
3249
+ "enabled": false,
3250
+ "languages": ["PHP"],
3251
+ "parameters": []
3252
+ },
3253
+ {
3254
+ "id": "PHPCSFIXER_simplified_null_return",
3255
+ "category": "CodeStyle",
3256
+ "severityLevel": "Info",
3257
+ "title": "Avoid returning null from void-returning contexts",
3258
+ "enabled": false,
3259
+ "languages": ["PHP"],
3260
+ "parameters": []
3261
+ },
3262
+ {
3263
+ "id": "PHPCSFIXER_single_blank_line_at_eof",
3264
+ "category": "CodeStyle",
3265
+ "severityLevel": "Info",
3266
+ "title": "Ensure single blank line at end of PHP file without closing tag",
3267
+ "enabled": false,
3268
+ "languages": ["PHP"],
3269
+ "parameters": []
3270
+ },
3271
+ {
3272
+ "id": "PHPCSFIXER_single_blank_line_before_namespace",
3273
+ "category": "CodeStyle",
3274
+ "severityLevel": "Info",
3275
+ "title": "Enforce single blank line before namespace",
3276
+ "enabled": false,
3277
+ "languages": ["PHP"],
3278
+ "parameters": []
3279
+ },
3280
+ {
3281
+ "id": "PHPCSFIXER_single_class_element_per_statement",
3282
+ "category": "CodeStyle",
3283
+ "severityLevel": "Info",
3284
+ "title": "Enforce single class element per statement",
3285
+ "enabled": false,
3286
+ "languages": ["PHP"],
3287
+ "parameters": []
3288
+ },
3289
+ {
3290
+ "id": "PHPCSFIXER_single_import_per_statement",
3291
+ "category": "CodeStyle",
3292
+ "severityLevel": "Info",
3293
+ "title": "Enforce single use import per statement",
3294
+ "enabled": true,
3295
+ "languages": ["PHP"],
3296
+ "parameters": [
3297
+ {
3298
+ "name": "group_to_single_imports",
3299
+ "default": "true",
3300
+ "description": "Whether to change group imports into single imports."
3301
+ }
3302
+ ]
3303
+ },
3304
+ {
3305
+ "id": "PHPCSFIXER_single_line_after_imports",
3306
+ "category": "CodeStyle",
3307
+ "severityLevel": "Info",
3308
+ "title": "Enforce single-line namespace imports and one blank line after use block",
3309
+ "enabled": false,
3310
+ "languages": ["PHP"],
3311
+ "parameters": []
3312
+ },
3313
+ {
3314
+ "id": "PHPCSFIXER_single_line_comment_spacing",
3315
+ "category": "CodeStyle",
3316
+ "severityLevel": "Info",
3317
+ "title": "Enforce single-line comment spacing",
3318
+ "enabled": false,
3319
+ "languages": ["PHP"],
3320
+ "parameters": []
3321
+ },
3322
+ {
3323
+ "id": "PHPCSFIXER_single_line_comment_style",
3324
+ "category": "CodeStyle",
3325
+ "severityLevel": "Info",
3326
+ "title": "Use // for single-line comments",
3327
+ "enabled": false,
3328
+ "languages": ["PHP"],
3329
+ "parameters": []
3330
+ },
3331
+ {
3332
+ "id": "PHPCSFIXER_single_line_empty_body",
3333
+ "category": "CodeStyle",
3334
+ "severityLevel": "Info",
3335
+ "title": "Abbreviate empty body as single-line {}",
3336
+ "enabled": false,
3337
+ "languages": ["PHP"],
3338
+ "parameters": []
3339
+ },
3340
+ {
3341
+ "id": "PHPCSFIXER_single_line_throw",
3342
+ "category": "CodeStyle",
3343
+ "severityLevel": "Info",
3344
+ "title": "Require single-line throw statements",
3345
+ "enabled": false,
3346
+ "languages": ["PHP"],
3347
+ "parameters": []
3348
+ },
3349
+ {
3350
+ "id": "PHPCSFIXER_single_quote",
3351
+ "category": "CodeStyle",
3352
+ "severityLevel": "Info",
3353
+ "title": "Convert double-quoted simple strings to single quotes",
3354
+ "enabled": false,
3355
+ "languages": ["PHP"],
3356
+ "parameters": [
3357
+ {
3358
+ "name": "strings_containing_single_quote_chars",
3359
+ "default": "false",
3360
+ "description": "Whether to fix double-quoted strings that contains single-quotes."
3361
+ }
3362
+ ]
3363
+ },
3364
+ {
3365
+ "id": "PHPCSFIXER_single_space_after_construct",
3366
+ "category": "CodeStyle",
3367
+ "severityLevel": "Info",
3368
+ "title": "Ensure single space after language constructs",
3369
+ "enabled": false,
3370
+ "languages": ["PHP"],
3371
+ "parameters": []
3372
+ },
3373
+ {
3374
+ "id": "PHPCSFIXER_single_space_around_construct",
3375
+ "category": "CodeStyle",
3376
+ "severityLevel": "Info",
3377
+ "title": "Ensure single space after language constructs",
3378
+ "enabled": true,
3379
+ "languages": ["PHP"],
3380
+ "parameters": []
3381
+ },
3382
+ {
3383
+ "id": "PHPCSFIXER_single_trait_insert_per_statement",
3384
+ "category": "CodeStyle",
3385
+ "severityLevel": "Info",
3386
+ "title": "Enforce single trait use per statement",
3387
+ "enabled": true,
3388
+ "languages": ["PHP"],
3389
+ "parameters": []
3390
+ },
3391
+ {
3392
+ "id": "PHPCSFIXER_space_after_semicolon",
3393
+ "category": "CodeStyle",
3394
+ "severityLevel": "Info",
3395
+ "title": "Fix whitespace after a semicolon",
3396
+ "enabled": false,
3397
+ "languages": ["PHP"],
3398
+ "parameters": [
3399
+ {
3400
+ "name": "remove_in_empty_for_expressions",
3401
+ "default": "false",
3402
+ "description": "Whether spaces should be removed for empty `for` expressions."
3403
+ }
3404
+ ]
3405
+ },
3406
+ {
3407
+ "id": "PHPCSFIXER_spaces_inside_parentheses",
3408
+ "category": "CodeStyle",
3409
+ "severityLevel": "Info",
3410
+ "title": "Enforce spaces inside parentheses",
3411
+ "enabled": false,
3412
+ "languages": ["PHP"],
3413
+ "parameters": [
3414
+ {
3415
+ "name": "space",
3416
+ "default": "none",
3417
+ "description": "Whether to have `single` or `none` space inside parentheses."
3418
+ }
3419
+ ]
3420
+ },
3421
+ {
3422
+ "id": "PHPCSFIXER_standardize_increment",
3423
+ "category": "CodeStyle",
3424
+ "severityLevel": "Info",
3425
+ "title": "Use increment/decrement operators when possible",
3426
+ "enabled": false,
3427
+ "languages": ["PHP"],
3428
+ "parameters": []
3429
+ },
3430
+ {
3431
+ "id": "PHPCSFIXER_standardize_not_equals",
3432
+ "category": "CodeStyle",
3433
+ "severityLevel": "Info",
3434
+ "title": "Standardize not-equals operator to !=",
3435
+ "enabled": false,
3436
+ "languages": ["PHP"],
3437
+ "parameters": []
3438
+ },
3439
+ {
3440
+ "id": "PHPCSFIXER_statement_indentation",
3441
+ "category": "CodeStyle",
3442
+ "severityLevel": "Info",
3443
+ "title": "Enforce statement indentation",
3444
+ "enabled": false,
3445
+ "languages": ["PHP"],
3446
+ "parameters": [
3447
+ {
3448
+ "name": "stick_comment_to_next_continuous_control_statement",
3449
+ "default": "false",
3450
+ "description": "Last comment of code block counts as comment for next block."
3451
+ }
3452
+ ]
3453
+ },
3454
+ {
3455
+ "id": "PHPCSFIXER_static_lambda",
3456
+ "category": "BestPractice",
3457
+ "severityLevel": "Warning",
3458
+ "title": "Declare lambdas as static when they don't reference $this",
3459
+ "enabled": false,
3460
+ "languages": ["PHP"],
3461
+ "parameters": []
3462
+ },
3463
+ {
3464
+ "id": "PHPCSFIXER_static_private_method",
3465
+ "category": "BestPractice",
3466
+ "severityLevel": "Warning",
3467
+ "title": "Make private methods static where possible",
3468
+ "enabled": false,
3469
+ "languages": ["PHP"],
3470
+ "parameters": []
3471
+ },
3472
+ {
3473
+ "id": "PHPCSFIXER_strict_comparison",
3474
+ "category": "BestPractice",
3475
+ "severityLevel": "Warning",
3476
+ "title": "Use strict comparisons",
3477
+ "enabled": false,
3478
+ "languages": ["PHP"],
3479
+ "parameters": []
3480
+ },
3481
+ {
3482
+ "id": "PHPCSFIXER_strict_param",
3483
+ "category": "BestPractice",
3484
+ "severityLevel": "Warning",
3485
+ "title": "Enforce strict parameter usage",
3486
+ "enabled": false,
3487
+ "languages": ["PHP"],
3488
+ "parameters": []
3489
+ },
3490
+ {
3491
+ "id": "PHPCSFIXER_stringable_for_to_string",
3492
+ "category": "CodeStyle",
3493
+ "severityLevel": "Info",
3494
+ "title": "Require Stringable when implementing __toString",
3495
+ "enabled": false,
3496
+ "languages": ["PHP"],
3497
+ "parameters": []
3498
+ },
3499
+ {
3500
+ "id": "PHPCSFIXER_string_implicit_backslashes",
3501
+ "category": "CodeStyle",
3502
+ "severityLevel": "Info",
3503
+ "title": "Normalize implicit backslashes in strings and heredocs",
3504
+ "enabled": false,
3505
+ "languages": ["PHP"],
3506
+ "parameters": [
3507
+ {
3508
+ "name": "double_quoted",
3509
+ "default": "escape",
3510
+ "description": "Whether to escape backslashes in double-quoted strings."
3511
+ },
3512
+ {
3513
+ "name": "heredoc",
3514
+ "default": "escape",
3515
+ "description": "Whether to escape backslashes in heredoc syntax."
3516
+ },
3517
+ {
3518
+ "name": "single_quoted",
3519
+ "default": "unescape",
3520
+ "description": "Whether to escape backslashes in single-quoted strings."
3521
+ }
3522
+ ]
3523
+ },
3524
+ {
3525
+ "id": "PHPCSFIXER_string_length_to_empty",
3526
+ "category": "BestPractice",
3527
+ "severityLevel": "Warning",
3528
+ "title": "Use empty string comparison instead of strlen for empty checks",
3529
+ "enabled": false,
3530
+ "languages": ["PHP"],
3531
+ "parameters": []
3532
+ },
3533
+ {
3534
+ "id": "PHPCSFIXER_string_line_ending",
3535
+ "category": "CodeStyle",
3536
+ "severityLevel": "Info",
3537
+ "title": "Enforce correct line endings in multi-line strings",
3538
+ "enabled": false,
3539
+ "languages": ["PHP"],
3540
+ "parameters": []
3541
+ },
3542
+ {
3543
+ "id": "PHPCSFIXER_switch_case_semicolon_to_colon",
3544
+ "category": "ErrorProne",
3545
+ "severityLevel": "High",
3546
+ "title": "Use colon after case in switch (not semicolon)",
3547
+ "enabled": false,
3548
+ "languages": ["PHP"],
3549
+ "parameters": []
3550
+ },
3551
+ {
3552
+ "id": "PHPCSFIXER_switch_case_space",
3553
+ "category": "CodeStyle",
3554
+ "severityLevel": "Info",
3555
+ "title": "Remove extra spaces around switch case colon",
3556
+ "enabled": false,
3557
+ "languages": ["PHP"],
3558
+ "parameters": []
3559
+ },
3560
+ {
3561
+ "id": "PHPCSFIXER_switch_continue_to_break",
3562
+ "category": "BestPractice",
3563
+ "severityLevel": "Warning",
3564
+ "title": "Replace continue with break in switch cases",
3565
+ "enabled": false,
3566
+ "languages": ["PHP"],
3567
+ "parameters": []
3568
+ },
3569
+ {
3570
+ "id": "PHPCSFIXER_ternary_operator_spaces",
3571
+ "category": "CodeStyle",
3572
+ "severityLevel": "Info",
3573
+ "title": "Standardize spaces around ternary operator",
3574
+ "enabled": true,
3575
+ "languages": ["PHP"],
3576
+ "parameters": []
3577
+ },
3578
+ {
3579
+ "id": "PHPCSFIXER_ternary_to_elvis_operator",
3580
+ "category": "CodeStyle",
3581
+ "severityLevel": "Info",
3582
+ "title": "Use Elvis operator where possible",
3583
+ "enabled": false,
3584
+ "languages": ["PHP"],
3585
+ "parameters": []
3586
+ },
3587
+ {
3588
+ "id": "PHPCSFIXER_ternary_to_null_coalescing",
3589
+ "category": "CodeStyle",
3590
+ "severityLevel": "Info",
3591
+ "title": "Replace isset ternary with null coalescing operator",
3592
+ "enabled": false,
3593
+ "languages": ["PHP"],
3594
+ "parameters": []
3595
+ },
3596
+ {
3597
+ "id": "PHPCSFIXER_trailing_comma_in_multiline",
3598
+ "category": "CodeStyle",
3599
+ "severityLevel": "Info",
3600
+ "title": "Require trailing comma in multiline lists",
3601
+ "enabled": false,
3602
+ "languages": ["PHP"],
3603
+ "parameters": [
3604
+ {
3605
+ "name": "after_heredoc",
3606
+ "default": "false",
3607
+ "description": "Whether a trailing comma should also be placed after heredoc end."
3608
+ }
3609
+ ]
3610
+ },
3611
+ {
3612
+ "id": "PHPCSFIXER_trim_array_spaces",
3613
+ "category": "CodeStyle",
3614
+ "severityLevel": "Info",
3615
+ "title": "Trim array spaces",
3616
+ "enabled": false,
3617
+ "languages": ["PHP"],
3618
+ "parameters": []
3619
+ },
3620
+ {
3621
+ "id": "PHPCSFIXER_type_declaration_spaces",
3622
+ "category": "CodeStyle",
3623
+ "severityLevel": "Info",
3624
+ "title": "Ensure single space between variable and type declaration",
3625
+ "enabled": false,
3626
+ "languages": ["PHP"],
3627
+ "parameters": []
3628
+ },
3629
+ {
3630
+ "id": "PHPCSFIXER_types_spaces",
3631
+ "category": "CodeStyle",
3632
+ "severityLevel": "Info",
3633
+ "title": "Enforce spacing around union and intersection type operators",
3634
+ "enabled": false,
3635
+ "languages": ["PHP"],
3636
+ "parameters": [
3637
+ {
3638
+ "name": "space",
3639
+ "default": "none",
3640
+ "description": "Spacing to apply around union type and intersection type operators."
3641
+ }
3642
+ ]
3643
+ },
3644
+ {
3645
+ "id": "PHPCSFIXER_unary_operator_spaces",
3646
+ "category": "CodeStyle",
3647
+ "severityLevel": "Info",
3648
+ "title": "Place unary operators adjacent to operands",
3649
+ "enabled": true,
3650
+ "languages": ["PHP"],
3651
+ "parameters": [
3652
+ {
3653
+ "name": "only_dec_inc",
3654
+ "default": "false",
3655
+ "description": "Limit to increment and decrement operators."
3656
+ }
3657
+ ]
3658
+ },
3659
+ {
3660
+ "id": "PHPCSFIXER_use_arrow_functions",
3661
+ "category": "CodeStyle",
3662
+ "severityLevel": "Info",
3663
+ "title": "Use arrow functions for single-return anonymous functions",
3664
+ "enabled": false,
3665
+ "languages": ["PHP"],
3666
+ "parameters": []
3667
+ },
3668
+ {
3669
+ "id": "PHPCSFIXER_visibility_required",
3670
+ "category": "CodeStyle",
3671
+ "severityLevel": "Info",
3672
+ "title": "Require and Order Visibility and Modifiers",
3673
+ "enabled": false,
3674
+ "languages": ["PHP"],
3675
+ "parameters": []
3676
+ },
3677
+ {
3678
+ "id": "PHPCSFIXER_void_return",
3679
+ "category": "CodeStyle",
3680
+ "severityLevel": "Info",
3681
+ "title": "Add void return type",
3682
+ "enabled": false,
3683
+ "languages": ["PHP"],
3684
+ "parameters": [
3685
+ {
3686
+ "name": "fix_lambda",
3687
+ "default": "true",
3688
+ "description": "Whether to fix lambda functions as well."
3689
+ }
3690
+ ]
3691
+ },
3692
+ {
3693
+ "id": "PHPCSFIXER_whitespace_after_comma_in_array",
3694
+ "category": "CodeStyle",
3695
+ "severityLevel": "Info",
3696
+ "title": "Enforce whitespace after comma in array",
3697
+ "enabled": false,
3698
+ "languages": ["PHP"],
3699
+ "parameters": [
3700
+ {
3701
+ "name": "ensure_single_space",
3702
+ "default": "false",
3703
+ "description": "If there are only horizontal whitespaces after the comma then ensure it is a single space."
3704
+ }
3705
+ ]
3706
+ },
3707
+ {
3708
+ "id": "PHPCSFIXER_yield_from_array_to_yields",
3709
+ "category": "CodeStyle",
3710
+ "severityLevel": "Info",
3711
+ "title": "Unpack yield from array into individual yields",
3712
+ "enabled": false,
3713
+ "languages": ["PHP"],
3714
+ "parameters": []
3715
+ },
3716
+ {
3717
+ "id": "PHPCSFIXER_yoda_style",
3718
+ "category": "CodeStyle",
3719
+ "severityLevel": "Info",
3720
+ "title": "Enforce Yoda style in conditional expressions",
3721
+ "enabled": false,
3722
+ "languages": ["PHP"],
3723
+ "parameters": [
3724
+ {
3725
+ "name": "always_move_variable",
3726
+ "default": "false",
3727
+ "description": "Whether variables should always be on non assignable side when applying Yoda style."
3728
+ },
3729
+ {
3730
+ "name": "equal",
3731
+ "default": "true",
3732
+ "description": "Style for equal (`==`, `!=`) statements."
3733
+ },
3734
+ {
3735
+ "name": "identical",
3736
+ "default": "true",
3737
+ "description": "Style for identical (`===`, `!==`) statements."
3738
+ }
3739
+ ],
3740
+ "tags": ["yodastyle"]
3741
+ }
3742
+ ]