-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm-baseline.xml
953 lines (953 loc) · 34.8 KB
/
psalm-baseline.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.29.0@7ec5ffbd5f68ae03782d7fd33fff0c45a69f95b3">
<file src="inc/functions/api.php">
<PossiblyInvalidArgument occurrences="1">
<code>$source_post</code>
</PossiblyInvalidArgument>
<PossiblyInvalidPropertyFetch occurrences="1">
<code>$source_post->post_type</code>
</PossiblyInvalidPropertyFetch>
<PossiblyNullArgument occurrences="2">
<code>$project_id</code>
<code>$project_id</code>
</PossiblyNullArgument>
<TooManyArguments occurrences="1">
<code>apply_filters('translationmanager_post_updater', null, $translation)</code>
</TooManyArguments>
<UndefinedFunction occurrences="4">
<code>get_languages()</code>
<code>get_project_items($project_term->term_id)</code>
<code>set_unique_term_meta($project_term, '_translationmanager_order_id', $project_id)</code>
</UndefinedFunction>
</file>
<file src="inc/functions/commons.php">
<ArgumentTypeCoercion occurrences="1">
<code>$constraint</code>
</ArgumentTypeCoercion>
<MissingReturnType occurrences="1">
<code>redirect_admin_page_network</code>
</MissingReturnType>
<PossiblyInvalidArgument occurrences="1"/>
<PossiblyUndefinedArrayOffset occurrences="2">
<code>$_SERVER['HTTP_HOST']</code>
<code>$_SERVER['REQUEST_URI']</code>
</PossiblyUndefinedArrayOffset>
<TooManyArguments occurrences="1"/>
</file>
<file src="inc/functions/cpt-project.php">
<InvalidArgument occurrences="1"/>
<PossiblyInvalidPropertyFetch occurrences="2">
<code>$post->ID</code>
<code>$term->taxonomy</code>
</PossiblyInvalidPropertyFetch>
<PossiblyNullPropertyFetch occurrences="1">
<code>$term->taxonomy</code>
</PossiblyNullPropertyFetch>
<UndefinedPropertyFetch occurrences="1">
<code>$term->taxonomy</code>
</UndefinedPropertyFetch>
</file>
<file src="inc/functions/language.php">
<NullArgument occurrences="1">
<code>null</code>
</NullArgument>
<TooManyArguments occurrences="2">
<code>apply_filters( 'translation_manager_languages_by_site_id', [], $site_id )</code>
<code>apply_filters( 'translationmanager_languages', [], get_current_blog_id() )</code>
</TooManyArguments>
<UndefinedMethod occurrences="2">
<code>$language</code>
<code>$language</code>
</UndefinedMethod>
</file>
<file src="inc/functions/tax-project.php">
<FalsableReturnStatement occurrences="2">
<code>wp_get_referer()</code>
<code>wp_get_referer()</code>
</FalsableReturnStatement>
<InvalidArgument occurrences="1">
<code>$languages</code>
</InvalidArgument>
<InvalidFalsableReturnType occurrences="1">
<code>string</code>
</InvalidFalsableReturnType>
<PossibleRawObjectIteration occurrences="1">
<code>$terms</code>
</PossibleRawObjectIteration>
<PossiblyInvalidArgument occurrences="1"/>
<PossiblyInvalidIterator occurrences="1">
<code>$terms</code>
</PossiblyInvalidIterator>
</file>
<file src="inc/hooks.php">
<MissingClosureParamType occurrences="2">
<code>$admin_footer_text</code>
<code>$file</code>
</MissingClosureParamType>
<PossiblyInvalidArgument occurrences="1"/>
<UndefinedFunction occurrences="4">
<code>'Translationmanager\\Functions\\bulk_translate_projects_by_request_posts'</code>
<code>'Translationmanager\\Functions\\project_hide_slug'</code>
<code>'Translationmanager\\Functions\\project_hide_slug'</code>
<code>get_supported_post_types()</code>
</UndefinedFunction>
</file>
<file src="src/Activation/Activator.php">
<MissingReturnType occurrences="1">
<code>store_version</code>
</MissingReturnType>
<PossiblyFalseArgument occurrences="3">
<code>$file_version</code>
<code>$file_version</code>
<code>$setup_files</code>
</PossiblyFalseArgument>
<UnresolvableInclude occurrences="1">
<code>require_once $setup_script</code>
</UnresolvableInclude>
</file>
<file src="src/Activation/ServiceProvider.php">
<MissingClosureReturnType occurrences="1">
<code>function (Container $container) {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/Api.php">
<PropertyNotSetInConstructor occurrences="2">
<code>$project</code>
<code>$project_item</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Api/Project.php">
<InvalidOperand occurrences="2">
<code>$project_id</code>
<code>(int)$project_id</code>
</InvalidOperand>
</file>
<file src="src/Api/ProjectItem.php">
<InvalidScalarArgument occurrences="1">
<code>$project_id</code>
</InvalidScalarArgument>
<TooManyArguments occurrences="1"/>
<UndefinedFunction occurrences="1">
<code>Functions\current_lang_code()</code>
</UndefinedFunction>
</file>
<file src="src/Assets/ServiceProvider.php">
<InvalidReturnType occurrences="1">
<code>boot</code>
</InvalidReturnType>
<MissingClosureReturnType occurrences="1">
<code>function (Container $container) {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/Assets/Translationmanager.php">
<InvalidScalarArgument occurrences="1">
<code>filemtime($this->plugin->dir('/assets/css/translationmanager.css'))</code>
</InvalidScalarArgument>
</file>
<file src="src/MetaBox/ServiceProvider.php">
<InvalidReturnType occurrences="1">
<code>boot</code>
</InvalidReturnType>
<MissingClosureReturnType occurrences="1">
<code>function () {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/MetaBox/Translation.php">
<UndefinedFunction occurrences="2">
<code>Functions\get_template('views/meta-box/translation/layout.php')</code>
<code>Functions\projects()</code>
</UndefinedFunction>
<UnresolvableInclude occurrences="1">
<code>require $template</code>
</UnresolvableInclude>
</file>
<file src="src/Module/ACF/Acf.php">
<InvalidOperand occurrences="1">
<code>$key</code>
</InvalidOperand>
<PossiblyFalseOperand occurrences="2">
<code>$this->getClonedFieldKeyPosition($key, $needle, $number - 1)</code>
</PossiblyFalseOperand>
<UndefinedFunction occurrences="2">
<code>get_field_object($acfKey)</code>
<code>get_field_object(substr($acfKey, -$fieldKeyPosition))</code>
</UndefinedFunction>
</file>
<file src="src/Module/ACF/Processor/OutgoingMetaProcessor.php">
<UndefinedFunction occurrences="1">
<code>get_field_objects($sourcePostId)</code>
</UndefinedFunction>
</file>
<file src="src/Module/Elementor/Processor/IncomingMetaProcessor.php">
<InvalidReturnStatement occurrences="1">
<code>null</code>
</InvalidReturnStatement>
<PossiblyFalseArgument occurrences="1">
<code>json_encode($metaValue)</code>
</PossiblyFalseArgument>
<UndefinedClass occurrences="1">
<code>\Elementor\Plugin</code>
</UndefinedClass>
</file>
<file src="src/Module/Mlp/Adapter.php">
<ArgumentTypeCoercion occurrences="1">
<code>'Inpsyde\MultilingualPress\Framework\Language\Language'</code>
</ArgumentTypeCoercion>
<InvalidPropertyAssignmentValue occurrences="1">
<code>$pluginVersion</code>
</InvalidPropertyAssignmentValue>
<MissingClosureParamType occurrences="1">
<code>$site</code>
</MissingClosureParamType>
<MissingClosureReturnType occurrences="1">
<code>function ($site) {</code>
</MissingClosureReturnType>
<UndefinedFunction occurrences="1">
<code>siteExists($site)</code>
</UndefinedFunction>
</file>
<file src="src/Module/Mlp/Connector.php">
<MissingPropertyType occurrences="1">
<code>$utils</code>
</MissingPropertyType>
<MissingReturnType occurrences="1">
<code>prepare_outgoing</code>
</MissingReturnType>
</file>
<file src="src/Module/Mlp/ConnectorBootstrap.php">
<MissingReturnType occurrences="1">
<code>boot</code>
</MissingReturnType>
</file>
<file src="src/Module/Mlp/Integrator.php">
<UndefinedClass occurrences="1">
<code>Inpsyde_Property_List_Interface</code>
</UndefinedClass>
</file>
<file src="src/Module/Mlp/Processor/PostDataBuilder.php">
<PossiblyInvalidMethodCall occurrences="1">
<code>to_array</code>
</PossiblyInvalidMethodCall>
<PossiblyInvalidPropertyFetch occurrences="1">
<code>$linkedPost->ID</code>
</PossiblyInvalidPropertyFetch>
</file>
<file src="src/Module/Mlp/Processor/PostParentSync.php">
<TooManyArguments occurrences="1"/>
</file>
<file src="src/Module/Mlp/Processor/PostSaver.php">
<ArgumentTypeCoercion occurrences="1">
<code>$post_data</code>
</ArgumentTypeCoercion>
<PossiblyInvalidArgument occurrences="1">
<code>$target_post_id</code>
</PossiblyInvalidArgument>
<PossiblyInvalidCast occurrences="1">
<code>$target_post_id</code>
</PossiblyInvalidCast>
<PossiblyInvalidMethodCall occurrences="1">
<code>get_error_message</code>
</PossiblyInvalidMethodCall>
<PossiblyInvalidPropertyFetch occurrences="1">
<code>$target_post->ID</code>
</PossiblyInvalidPropertyFetch>
<TooManyArguments occurrences="1"/>
</file>
<file src="src/Module/Mlp/Processor/PostThumbSync.php">
<TooManyArguments occurrences="1"/>
</file>
<file src="src/Module/Mlp/Processor/TaxonomiesSync.php">
<InvalidArgument occurrences="1">
<code>$this->relate_new_terms($target_post_new_terms, $translation)</code>
</InvalidArgument>
<InvalidReturnStatement occurrences="2">
<code>$terms</code>
<code>array_filter($target_terms)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="2">
<code>int[]</code>
<code>int[]</code>
</InvalidReturnType>
<MissingReturnType occurrences="1">
<code>sync_target_terms</code>
</MissingReturnType>
<TooManyArguments occurrences="4"/>
</file>
<file src="src/Module/Mlp/Utils/ImageCopier.php">
<InvalidReturnStatement occurrences="1">
<code>$attachment_id</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>int</code>
</InvalidReturnType>
<PossiblyFalseArgument occurrences="2">
<code>$linked_file</code>
<code>$source_file</code>
</PossiblyFalseArgument>
<PossiblyInvalidArgument occurrences="3">
<code>$attachment</code>
<code>$attachment_id</code>
<code>$attachment_id</code>
</PossiblyInvalidArgument>
<PossiblyInvalidPropertyFetch occurrences="1">
<code>$attachment->post_type</code>
</PossiblyInvalidPropertyFetch>
<PossiblyNullArgument occurrences="1">
<code>$linked_file</code>
</PossiblyNullArgument>
<RedundantConditionGivenDocblockType occurrences="2">
<code>$target_site_id</code>
<code>$target_site_id</code>
</RedundantConditionGivenDocblockType>
<UndefinedConstant occurrences="1">
<code>ABSPATH</code>
</UndefinedConstant>
<UnresolvableInclude occurrences="1">
<code>require_once ABSPATH . 'wp-admin/includes/image.php'</code>
</UnresolvableInclude>
</file>
<file src="src/Module/Mlp/Utils/Registry.php">
<NullableReturnStatement occurrences="1">
<code>$this->services[__FUNCTION__][$id]</code>
</NullableReturnStatement>
<PossiblyNullArgument occurrences="1">
<code>$this->services[__FUNCTION__]</code>
</PossiblyNullArgument>
<PossiblyNullArrayAccess occurrences="1">
<code>$this->services[__FUNCTION__][$id]</code>
</PossiblyNullArrayAccess>
<PossiblyUndefinedArrayOffset occurrences="1">
<code>$this->services[__FUNCTION__]</code>
</PossiblyUndefinedArrayOffset>
</file>
<file src="src/Module/ModuleIntegrator.php">
<InvalidPropertyAssignmentValue occurrences="1">
<code>$modulesProvider</code>
</InvalidPropertyAssignmentValue>
<MissingReturnType occurrences="1">
<code>integrate</code>
</MissingReturnType>
</file>
<file src="src/Module/Processor/ProcessorBus.php">
<FalseOperand occurrences="1">
<code>is_a($processor, $target)</code>
</FalseOperand>
<MissingReturnType occurrences="1">
<code>process</code>
</MissingReturnType>
<TooManyArguments occurrences="1"/>
<TypeDoesNotContainType occurrences="2">
<code>!$this->queue</code>
<code>$this->queue</code>
</TypeDoesNotContainType>
</file>
<file src="src/Module/ServiceProvider.php">
<MissingClosureReturnType occurrences="14">
<code>function () {</code>
<code>function () {</code>
<code>function () {</code>
<code>function () {</code>
<code>function () {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/Module/TranslationEntityAwareTrait.php">
<UndefinedClass occurrences="1">
<code>WC_Product</code>
</UndefinedClass>
<UndefinedDocblockClass occurrences="1">
<code>WC_Product</code>
</UndefinedDocblockClass>
</file>
<file src="src/Module/WooCommerce/Processor/IncomingMetaProcessor.php">
<InvalidReturnStatement occurrences="1">
<code>null</code>
</InvalidReturnStatement>
<UndefinedClass occurrences="2">
<code>$product</code>
<code>WC_Product</code>
</UndefinedClass>
</file>
<file src="src/Module/WooCommerce/Processor/OutgoingMetaProcessor.php">
<UndefinedFunction occurrences="1">
<code>wc_get_product($translation->source_post_id())</code>
</UndefinedFunction>
</file>
<file src="src/Module/YoastSeo/WordPressSeo.php">
<MissingReturnType occurrences="2">
<code>prepare_outgoing</code>
<code>update_translation</code>
</MissingReturnType>
<UndefinedClass occurrences="4">
<code>WPSEO_Meta</code>
<code>WPSEO_Meta</code>
<code>WPSEO_Meta</code>
<code>WPSEO_Meta</code>
</UndefinedClass>
</file>
<file src="src/Notice/StandardNotice.php">
<UndefinedFunction occurrences="1">
<code>\Translationmanager\Functions\get_template('/views/notice/standard.php')</code>
</UndefinedFunction>
<UnresolvableInclude occurrences="1">
<code>include \Translationmanager\Functions\get_template('/views/notice/standard.php')</code>
</UnresolvableInclude>
</file>
<file src="src/Notice/TransientNotice.php">
<UndefinedFunction occurrences="1">
<code>\Translationmanager\Functions\get_template('/views/notice/list.php')</code>
</UndefinedFunction>
<UnresolvableInclude occurrences="1">
<code>include \Translationmanager\Functions\get_template('/views/notice/list.php')</code>
</UnresolvableInclude>
</file>
<file src="src/Pages/PageOptions.php">
<InvalidScalarArgument occurrences="2">
<code>filemtime((new Plugin())->dir('/assets/css/settings.css'))</code>
<code>filemtime((new Plugin())->dir('/resources/js/options-page.js'))</code>
</InvalidScalarArgument>
<PossiblyFalseOperand occurrences="1">
<code>current($chosen_action)</code>
</PossiblyFalseOperand>
<PossiblyInvalidOperand occurrences="1">
<code>current($chosen_action)</code>
</PossiblyInvalidOperand>
<UndefinedFunction occurrences="1">
<code>Functions\get_template('/views/options-page/layout.php')</code>
</UndefinedFunction>
<UnresolvableInclude occurrences="1">
<code>require_once Functions\get_template('/views/options-page/layout.php')</code>
</UnresolvableInclude>
</file>
<file src="src/Pages/PluginMainPage.php">
<MissingClosureParamType occurrences="2">
<code>$parent_file</code>
<code>$submenu_file</code>
</MissingClosureParamType>
<PossiblyNullPropertyFetch occurrences="2">
<code>$screen->id</code>
<code>$screen->id</code>
</PossiblyNullPropertyFetch>
</file>
<file src="src/Pages/Project.php">
<NullArgument occurrences="1">
<code>null</code>
</NullArgument>
<PossiblyNullPropertyFetch occurrences="1">
<code>get_current_screen()->post_type</code>
</PossiblyNullPropertyFetch>
<UndefinedConstant occurrences="1">
<code>ABSPATH</code>
</UndefinedConstant>
<UndefinedFunction occurrences="1">
<code>\Translationmanager\Functions\get_template('/views/project/page-layout.php')</code>
</UndefinedFunction>
<UnresolvableInclude occurrences="2">
<code>require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php'</code>
<code>require_once \Translationmanager\Functions\get_template('/views/project/page-layout.php')</code>
</UnresolvableInclude>
</file>
<file src="src/Pages/ServiceProvider.php">
<InvalidReturnType occurrences="1">
<code>boot</code>
</InvalidReturnType>
<MissingClosureReturnType occurrences="3">
<code>function () {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/Project/ServiceProvider.php">
<InvalidReturnType occurrences="1">
<code>boot</code>
</InvalidReturnType>
<MissingClosureReturnType occurrences="1">
<code>function () {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/Project/Taxonomy.php">
<MissingReturnType occurrences="1">
<code>register_post_status</code>
</MissingReturnType>
<PossiblyFalseArgument occurrences="3">
<code>$project</code>
<code>$project</code>
<code>wp_get_referer()</code>
</PossiblyFalseArgument>
<PossiblyInvalidArgument occurrences="3">
<code>wp_unslash($_POST['action'] ?? '')</code>
<code>wp_unslash($_POST['description'] ?? '')</code>
<code>wp_unslash($_POST['tag-name'] ?? '')</code>
</PossiblyInvalidArgument>
<PossiblyInvalidFunctionCall occurrences="1">
<code>$closure()</code>
</PossiblyInvalidFunctionCall>
<PossiblyInvalidOperand occurrences="1"/>
<UndefinedFunction occurrences="1">
<code>Functions\get_template('/views/project/form-title-description.php')</code>
</UndefinedFunction>
<UnresolvableInclude occurrences="1">
<code>require Functions\get_template('/views/project/form-title-description.php')</code>
</UnresolvableInclude>
</file>
<file src="src/ProjectHandler.php">
<MissingReturnType occurrences="1">
<code>add_translation</code>
</MissingReturnType>
<PossiblyFalseArgument occurrences="1">
<code>get_post_type($post_id)</code>
</PossiblyFalseArgument>
<PossiblyInvalidArgument occurrences="1">
<code>$translation_id</code>
</PossiblyInvalidArgument>
<PossiblyInvalidMethodCall occurrences="1">
<code>get_error_message</code>
</PossiblyInvalidMethodCall>
<PossiblyNullArgument occurrences="1">
<code>get_post_type_object(get_post_type($post_id))</code>
</PossiblyNullArgument>
<PossiblyUndefinedMethod occurrences="1">
<code>$ids</code>
</PossiblyUndefinedMethod>
</file>
<file src="src/ProjectItem/PostType.php">
<PossiblyNullArgument occurrences="1">
<code>get_delete_post_link($post->ID)</code>
</PossiblyNullArgument>
<PossiblyNullPropertyFetch occurrences="1">
<code>get_current_screen()->post_type</code>
</PossiblyNullPropertyFetch>
</file>
<file src="src/ProjectItem/ServiceProvider.php">
<InvalidReturnType occurrences="1">
<code>boot</code>
</InvalidReturnType>
<MissingClosureParamType occurrences="1">
<code>$c</code>
</MissingClosureParamType>
<MissingClosureReturnType occurrences="1">
<code>function ($c) {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/ProjectUpdater.php">
<InvalidArgument occurrences="2">
<code>$already_in_project[$lang_id][$ancestor_id]</code>
<code>$lang_id</code>
</InvalidArgument>
<InvalidArrayOffset occurrences="4">
<code>$already_in_project[$lang]</code>
<code>$already_in_project[$lang]</code>
<code>$already_in_project[$lang]</code>
<code>$already_in_project[$lang_id]</code>
</InvalidArrayOffset>
<InvalidOperand occurrences="2">
<code>$data['post_type'] === 'project_item'</code>
<code>$this->append_to_title</code>
</InvalidOperand>
<MissingReturnType occurrences="1">
<code>init</code>
</MissingReturnType>
<PossiblyInvalidArgument occurrences="4">
<code>$post</code>
<code>$post</code>
<code>$project_item_id</code>
<code>$project_item_id</code>
</PossiblyInvalidArgument>
<TooManyArguments occurrences="1">
<code>apply_filters('translationmanager_force_add_parent_translations', false, $post)</code>
</TooManyArguments>
</file>
<file src="src/Request/Api/AddTranslation.php">
<InvalidScalarArgument occurrences="1">
<code>$project</code>
</InvalidScalarArgument>
<PossiblyUndefinedVariable occurrences="1">
<code>$project</code>
</PossiblyUndefinedVariable>
<TooManyArguments occurrences="1"/>
<UndefinedFunction occurrences="2"/>
</file>
<file src="src/Request/Api/ImportProject.php">
<FalsableReturnStatement occurrences="1"/>
<UndefinedFunction occurrences="2">
<code>project_update($project)</code>
</UndefinedFunction>
</file>
<file src="src/Request/Api/OrderProject.php">
<FalsableReturnStatement occurrences="1"/>
<UndefinedFunction occurrences="2">
<code>create_project_order($project)</code>
</UndefinedFunction>
</file>
<file src="src/Request/Api/UpdateProjectOrderStatus.php">
<FalsableReturnStatement occurrences="1"/>
<PossiblyUndefinedVariable occurrences="2">
<code>$project</code>
<code>$status</code>
</PossiblyUndefinedVariable>
<UndefinedFunction occurrences="5">
<code>project_global_status($project)</code>
<code>set_unique_term_meta($project, '_translationmanager_order_status', $status)</code>
</UndefinedFunction>
</file>
<file src="src/Request/ProjectItemBulk.php">
<FalsableReturnStatement occurrences="1"/>
<PossiblyInvalidArgument occurrences="1">
<code>wp_unslash($_POST['action'] ?? '')</code>
</PossiblyInvalidArgument>
</file>
<file src="src/Request/ServiceProvider.php">
<InvalidReturnType occurrences="1">
<code>boot</code>
</InvalidReturnType>
<MissingClosureReturnType occurrences="4">
<code>function () {</code>
<code>function () {</code>
<code>function () {</code>
<code>function () {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/Request/SupportRequest.php">
<InvalidReturnStatement occurrences="1">
<code>null</code>
</InvalidReturnStatement>
<PossiblyFalseOperand occurrences="1">
<code>$inputs</code>
</PossiblyFalseOperand>
<PossiblyInvalidArrayAccess occurrences="3">
<code>$_FILES['support_request_upload']['name']</code>
<code>$_FILES['support_request_upload']['size']</code>
<code>$_FILES['support_request_upload']['tmp_name']</code>
</PossiblyInvalidArrayAccess>
<PossiblyInvalidArrayOffset occurrences="3">
<code>$_FILES['support_request_upload']['name']</code>
<code>$_FILES['support_request_upload']['size']</code>
<code>$_FILES['support_request_upload']['tmp_name']</code>
</PossiblyInvalidArrayOffset>
<UndefinedConstant occurrences="1">
<code>MB_IN_BYTES</code>
</UndefinedConstant>
<UndefinedFunction occurrences="1">
<code>Functions\username($user)</code>
</UndefinedFunction>
</file>
<file src="src/Setting/PluginSettings.php">
<MissingClosureParamType occurrences="2">
<code>$value</code>
<code>$value</code>
</MissingClosureParamType>
<MissingReturnType occurrences="2">
<code>add_settings_field</code>
<code>dispatch_input_text</code>
</MissingReturnType>
<UndefinedFunction occurrences="1">
<code>Functions\get_template('views/type/default.php')</code>
</UndefinedFunction>
<UnresolvableInclude occurrences="1">
<code>require Functions\get_template('views/type/default.php')</code>
</UnresolvableInclude>
</file>
<file src="src/Setting/ServiceProvider.php">
<InvalidReturnType occurrences="1">
<code>boot</code>
</InvalidReturnType>
<MissingClosureReturnType occurrences="1">
<code>static function () {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/SystemStatus/Collection.php">
<PossiblyNullArrayOffset occurrences="1">
<code>$this->list</code>
</PossiblyNullArrayOffset>
</file>
<file src="src/SystemStatus/ServiceProvider.php">
<InvalidReturnType occurrences="1">
<code>boot</code>
</InvalidReturnType>
<MissingClosureReturnType occurrences="1">
<code>function () {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/SystemStatus/Translationmanager.php">
<InvalidOperand occurrences="1">
<code>(int)$test['code']</code>
</InvalidOperand>
<UndefinedFunction occurrences="2">
<code>get_languages()</code>
<code>translationmanager_api()</code>
</UndefinedFunction>
</file>
<file src="src/TableList/RestrictManagePosts.php">
<InvalidScalarArgument occurrences="2">
<code>filemtime($this->plugin->dir('/assets/css/restrict-manage-posts.css'))</code>
<code>filemtime($this->plugin->dir('/resources/js/restrict-manage-posts.js'))</code>
</InvalidScalarArgument>
<UndefinedFunction occurrences="1">
<code>\Translationmanager\Functions\get_template('/views/restrict-manage-posts.php')</code>
</UndefinedFunction>
<UnresolvableInclude occurrences="1">
<code>require_once \Translationmanager\Functions\get_template('/views/restrict-manage-posts.php')</code>
</UnresolvableInclude>
</file>
<file src="src/TableList/ServiceProvider.php">
<InvalidReturnType occurrences="1">
<code>boot</code>
</InvalidReturnType>
<MissingClosureReturnType occurrences="1">
<code>function (Container $container) {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
<UndefinedFunction occurrences="1">
<code>get_supported_post_types()</code>
</UndefinedFunction>
</file>
<file src="src/Translation.php">
<MissingPropertyType occurrences="1">
<code>$protected_meta</code>
</MissingPropertyType>
<MissingReturnType occurrences="17">
<code>get_meta</code>
<code>get_value</code>
<code>has_meta</code>
<code>has_value</code>
<code>is_incoming</code>
<code>is_outgoing</code>
<code>is_valid</code>
<code>remove_meta</code>
<code>remove_value</code>
<code>set_meta</code>
<code>set_value</code>
<code>source_post</code>
<code>source_post_id</code>
<code>source_site_id</code>
<code>target_language</code>
<code>target_site_id</code>
<code>to_array</code>
</MissingReturnType>
<ReservedWord occurrences="2">
<code>mixed</code>
<code>mixed</code>
</ReservedWord>
<UnsafeInstantiation occurrences="2">
<code>new static()</code>
<code>new static()</code>
</UnsafeInstantiation>
</file>
<file src="src/Utils/Assert.php">
<MissingReturnType occurrences="1">
<code>semVersion</code>
</MissingReturnType>
</file>
<file src="src/Utils/NetworkState.php">
<PropertyNotSetInConstructor occurrences="2">
<code>$site_id</code>
<code>$stack</code>
</PropertyNotSetInConstructor>
<UnsafeInstantiation occurrences="1">
<code>new static()</code>
</UnsafeInstantiation>
</file>
<file src="src/Utils/TimeZone.php">
<InvalidOperand occurrences="1">
<code>$option</code>
</InvalidOperand>
</file>
<file src="src/View/Modal.php">
<InvalidScalarArgument occurrences="2">
<code>filemtime($this->plugin->dir('/assets/css/modal.css'))</code>
<code>filemtime($this->plugin->dir('/resources/js/modal.js'))</code>
</InvalidScalarArgument>
<MissingReturnType occurrences="1">
<code>modal_trigger</code>
</MissingReturnType>
<PossiblyInvalidFunctionCall occurrences="1"/>
<UnresolvableInclude occurrences="1">
<code>include $path</code>
</UnresolvableInclude>
</file>
<file src="src/View/Project/OrderInfo.php">
<InvalidNullableReturnType occurrences="1">
<code>\DateTime</code>
</InvalidNullableReturnType>
<NullableReturnStatement occurrences="1">
<code>null</code>
</NullableReturnStatement>
<TooManyArguments occurrences="1">
<code>apply_filters('translationmanager_order_status', $order_status, $this)</code>
</TooManyArguments>
<UndefinedFunction occurrences="3">
<code>Functions\get_project_items($this->projects_term_id)</code>
<code>Functions\get_project_items($this->projects_term_id)</code>
<code>Functions\get_template('views/project/order-info.php')</code>
</UndefinedFunction>
<UnresolvableInclude occurrences="1">
<code>require $template</code>
</UnresolvableInclude>
</file>
<file src="src/Xliff/Export.php">
<PossiblyInvalidPropertyFetch occurrences="1">
<code>$project->name</code>
</PossiblyInvalidPropertyFetch>
<PossiblyNullArgument occurrences="1">
<code>$project->name</code>
</PossiblyNullArgument>
<PossiblyNullPropertyFetch occurrences="1">
<code>$project->name</code>
</PossiblyNullPropertyFetch>
<UndefinedFunction occurrences="3">
<code>Functions\current_language()</code>
<code>Functions\get_languages()</code>
<code>Functions\get_project_items($projectId)</code>
</UndefinedFunction>
<UndefinedPropertyFetch occurrences="1">
<code>$project->name</code>
</UndefinedPropertyFetch>
</file>
<file src="src/Xliff/Import.php">
<InvalidReturnStatement occurrences="1">
<code>$targetPost</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>false|WP_Post</code>
</InvalidReturnType>
<PossibleRawObjectIteration occurrences="1">
<code>$importData['posts']</code>
</PossibleRawObjectIteration>
<PossiblyFalseArgument occurrences="1">
<code>scandir($this->xliff->translationsDir())</code>
</PossiblyFalseArgument>
<PossiblyInvalidArgument occurrences="4">
<code>$ignorableFields</code>
<code>$targetPost</code>
<code>$targetPost</code>
<code>$targetPostId</code>
</PossiblyInvalidArgument>
<UndefinedClass occurrences="2">
<code>WPSEO_Meta</code>
<code>WPSEO_Meta</code>
</UndefinedClass>
<UndefinedFunction occurrences="2">
<code>assignedLanguageTags(false)</code>
<code>resolve(ContentRelations::class)</code>
</UndefinedFunction>
</file>
<file src="src/Xliff/PostTranslatableParts/AcfFields.php">
<UndefinedFunction occurrences="1">
<code>get_field_objects($sourcePostId)</code>
</UndefinedFunction>
</file>
<file src="src/Xliff/PostTranslatableParts/YoastFields.php">
<InvalidOperand occurrences="1">
<code>$sourcePostId</code>
</InvalidOperand>
</file>
<file src="src/Xliff/ServiceProvider.php">
<InvalidReturnType occurrences="1">
<code>boot</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="2">
<code>filemtime($plugin->dir('/resources/js/exportXLIFF.js'))</code>
<code>filemtime($plugin->dir('/resources/js/importXLIFF.js'))</code>
</InvalidScalarArgument>
<MissingClosureReturnType occurrences="6">
<code>function () {</code>
<code>function () {</code>
<code>function () {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
<code>function (Container $container) {</code>
</MissingClosureReturnType>
<MissingReturnType occurrences="1">
<code>register</code>
</MissingReturnType>
</file>
<file src="src/Xliff/SettingsView.php">
<MissingReturnType occurrences="2">
<code>renderExportButton</code>
<code>renderImportOptions</code>
</MissingReturnType>
</file>
<file src="src/Xliff/Xliff.php">
<UndefinedMagicPropertyFetch occurrences="1">
<code>$post->_translationmanager_post_id</code>
</UndefinedMagicPropertyFetch>
</file>
<file src="src/Xliff/XliffElementHelper.php">
<FalsableReturnStatement occurrences="1">
<code>$removeIntPart ? substr($attribute, strpos($attribute, "-") + 1) : $attribute</code>
</FalsableReturnStatement>
<InvalidFalsableReturnType occurrences="1">
<code>string</code>
</InvalidFalsableReturnType>
<PossiblyFalseArgument occurrences="1">
<code>json_encode($target)</code>
</PossiblyFalseArgument>
<PossiblyFalseOperand occurrences="1">
<code>strpos($attribute, "-")</code>
</PossiblyFalseOperand>
<RedundantCondition occurrences="1">
<code>html_entity_decode($source)</code>
</RedundantCondition>
<TypeDoesNotContainNull occurrences="1">
<code>''</code>
</TypeDoesNotContainNull>
</file>
<file src="translationmanager.php">
<MissingClosureParamType occurrences="1">
<code>$plugin</code>
</MissingClosureParamType>
<MissingClosureReturnType occurrences="1">
<code>function () {</code>
</MissingClosureReturnType>
<PossiblyFalseIterator occurrences="1">
<code>glob( __DIR__ . '/inc/functions/*.php' )</code>
</PossiblyFalseIterator>
<PossiblyInvalidFunctionCall occurrences="1">
<code>$bootstrap()</code>
</PossiblyInvalidFunctionCall>
<UnresolvableInclude occurrences="2">
<code>require_once "$rootDir/vendor/autoload.php"</code>
<code>require_once $file</code>
</UnresolvableInclude>
</file>
</files>