Completed
Push — master ( 9f7220...dc80e6 )
by David
01:07
created
src/includes/class-wordlift.php 1 patch
Spacing   +285 added lines, -285 removed lines patch added patch discarded remove patch
@@ -637,15 +637,15 @@  discard block
 block discarded – undo
637 637
 		$that = $this;
638 638
 		add_action(
639 639
 			'plugins_loaded',
640
-			function () use ( $that ) {
641
-				$that->define_admin_hooks( $that );
642
-				$that->define_public_hooks( $that );
640
+			function() use ($that) {
641
+				$that->define_admin_hooks($that);
642
+				$that->define_public_hooks($that);
643 643
 			},
644 644
 			4
645 645
 		);
646 646
 
647 647
 		// If we're in `WP_CLI` load the related files.
648
-		if ( class_exists( 'WP_CLI' ) ) {
648
+		if (class_exists('WP_CLI')) {
649 649
 			$this->load_cli_dependencies();
650 650
 		}
651 651
 
@@ -685,328 +685,328 @@  discard block
 block discarded – undo
685 685
 		 * The class responsible for orchestrating the actions and filters of the
686 686
 		 * core plugin.
687 687
 		 */
688
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-loader.php';
688
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-loader.php';
689 689
 
690 690
 		// The class responsible for plugin uninstall.
691
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-deactivator-feedback.php';
691
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-deactivator-feedback.php';
692 692
 
693 693
 		/**
694 694
 		 * The class responsible for defining internationalization functionality
695 695
 		 * of the plugin.
696 696
 		 */
697
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-i18n.php';
697
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-i18n.php';
698 698
 
699 699
 		/**
700 700
 		 * WordLift's supported languages.
701 701
 		 */
702
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-languages.php';
702
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-languages.php';
703 703
 
704 704
 		/**
705 705
 		 * WordLift's supported countries.
706 706
 		 */
707
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-countries.php';
707
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-countries.php';
708 708
 
709 709
 		/**
710 710
 		 * Provide support functions to sanitize data.
711 711
 		 */
712
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-sanitizer.php';
712
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-sanitizer.php';
713 713
 
714 714
 		/** Services. */
715
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-log-service.php';
716
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-http-api.php';
717
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-redirect-service.php';
718
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-configuration-service.php';
719
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-entity-post-type-service.php';
720
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-entity-type-service.php';
721
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-entity-link-service.php';
722
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-relation-service.php';
723
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-image-service.php';
715
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-log-service.php';
716
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-http-api.php';
717
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-redirect-service.php';
718
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-configuration-service.php';
719
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-entity-post-type-service.php';
720
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-entity-type-service.php';
721
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-entity-link-service.php';
722
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-relation-service.php';
723
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-image-service.php';
724 724
 
725 725
 		/**
726 726
 		 * The Schema service.
727 727
 		 */
728
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-schema-service.php';
728
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-schema-service.php';
729 729
 
730 730
 		/**
731 731
 		 * The schema:url property service.
732 732
 		 */
733
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-property-service.php';
734
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-schema-url-property-service.php';
733
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-property-service.php';
734
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-schema-url-property-service.php';
735 735
 
736 736
 		/**
737 737
 		 * The UI service.
738 738
 		 */
739
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-ui-service.php';
739
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-ui-service.php';
740 740
 
741 741
 		/**
742 742
 		 * The Entity Types Taxonomy service.
743 743
 		 */
744
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-entity-type-taxonomy-service.php';
744
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-entity-type-taxonomy-service.php';
745 745
 
746 746
 		/**
747 747
 		 * The Entity service.
748 748
 		 */
749
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-entity-uri-service.php';
750
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-entity-service.php';
749
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-entity-uri-service.php';
750
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-entity-service.php';
751 751
 
752 752
 		// Add the entity rating service.
753
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-rating-service.php';
753
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-rating-service.php';
754 754
 
755 755
 		/**
756 756
 		 * The User service.
757 757
 		 */
758
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-user-service.php';
758
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-user-service.php';
759 759
 
760 760
 		/**
761 761
 		 * The Timeline service.
762 762
 		 */
763
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-timeline-service.php';
763
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-timeline-service.php';
764 764
 
765 765
 		/**
766 766
 		 * The Topic Taxonomy service.
767 767
 		 */
768
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-topic-taxonomy-service.php';
768
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-topic-taxonomy-service.php';
769 769
 
770 770
 		/**
771 771
 		 * The WordLift URI service.
772 772
 		 */
773
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-uri-service.php';
774
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-property-factory.php';
775
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-sample-data-service.php';
773
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-uri-service.php';
774
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-property-factory.php';
775
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-sample-data-service.php';
776 776
 
777
-		require_once plugin_dir_path( __DIR__ ) . 'includes/properties/class-wordlift-property-getter-factory.php';
778
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-attachment-service.php';
777
+		require_once plugin_dir_path(__DIR__).'includes/properties/class-wordlift-property-getter-factory.php';
778
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-attachment-service.php';
779 779
 
780 780
 		/**
781 781
 		 * Load the converters.
782 782
 		 */
783
-		require_once plugin_dir_path( __DIR__ ) . 'includes/intf-wordlift-post-converter.php';
784
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
785
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
786
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
787
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
788
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-website-jsonld-converter.php';
783
+		require_once plugin_dir_path(__DIR__).'includes/intf-wordlift-post-converter.php';
784
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
785
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-postid-to-jsonld-converter.php';
786
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-entity-post-to-jsonld-converter.php';
787
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-post-to-jsonld-converter.php';
788
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-website-jsonld-converter.php';
789 789
 
790 790
 		/**
791 791
 		 * Load cache-related files.
792 792
 		 */
793
-		require_once plugin_dir_path( __DIR__ ) . 'includes/cache/require.php';
793
+		require_once plugin_dir_path(__DIR__).'includes/cache/require.php';
794 794
 
795 795
 		/**
796 796
 		 * Load the content filter.
797 797
 		 */
798
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-content-filter-service.php';
798
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-content-filter-service.php';
799 799
 
800 800
 		/*
801 801
 		 * Load the excerpt helper.
802 802
 		 */
803
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-post-excerpt-helper.php';
803
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-post-excerpt-helper.php';
804 804
 
805 805
 		/**
806 806
 		 * Load the JSON-LD service to publish entities using JSON-LD.s
807 807
 		 *
808 808
 		 * @since 3.8.0
809 809
 		 */
810
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-jsonld-service.php';
810
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-jsonld-service.php';
811 811
 
812 812
 		// The Publisher Service and the AJAX adapter.
813
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-publisher-service.php';
814
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
813
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-publisher-service.php';
814
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-publisher-ajax-adapter.php';
815 815
 
816
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-post-adapter.php';
816
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-post-adapter.php';
817 817
 
818 818
 		/**
819 819
 		 * Load the WordLift key validation service.
820 820
 		 */
821
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-key-validation-service.php';
821
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-key-validation-service.php';
822 822
 
823 823
 		// Load the `Wordlift_Category_Taxonomy_Service` class definition.
824
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-category-taxonomy-service.php';
824
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-category-taxonomy-service.php';
825 825
 
826 826
 		// Load the `Wordlift_Entity_Page_Service` class definition.
827
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-entity-page-service.php';
827
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-entity-page-service.php';
828 828
 
829 829
 		/** Linked Data. */
830
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-storage.php';
831
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
832
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
833
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
834
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
835
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
836
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
837
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
838
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
839
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
840
-		require_once plugin_dir_path( __DIR__ ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
830
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-storage.php';
831
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
832
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-post-property-storage.php';
833
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
834
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
835
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-post-author-storage.php';
836
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
837
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-post-image-storage.php';
838
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-post-related-storage.php';
839
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-url-property-storage.php';
840
+		require_once plugin_dir_path(__DIR__).'includes/linked-data/storage/class-wordlift-storage-factory.php';
841 841
 
842 842
 		/** Services. */
843
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-google-analytics-export-service.php';
844
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-api-service.php';
843
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-google-analytics-export-service.php';
844
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-api-service.php';
845 845
 
846 846
 		/** Adapters. */
847
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-tinymce-adapter.php';
848
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-newrelic-adapter.php';
849
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
850
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-entity-type-adapter.php';
851
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-wprocket-adapter.php';
847
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-tinymce-adapter.php';
848
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-newrelic-adapter.php';
849
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-sample-data-ajax-adapter.php';
850
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-entity-type-adapter.php';
851
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-wprocket-adapter.php';
852 852
 
853 853
 		/** Autocomplete. */
854
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-autocomplete-adapter.php';
854
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-autocomplete-adapter.php';
855 855
 
856
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-remote-image-service.php';
856
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-remote-image-service.php';
857 857
 
858 858
 		/** Analytics */
859
-		require_once plugin_dir_path( __DIR__ ) . 'includes/analytics/class-wordlift-analytics-connect.php';
859
+		require_once plugin_dir_path(__DIR__).'includes/analytics/class-wordlift-analytics-connect.php';
860 860
 
861 861
 		/**
862 862
 		 * The class responsible for defining all actions that occur in the admin area.
863 863
 		 */
864
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin.php';
864
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin.php';
865 865
 
866 866
 		/**
867 867
 		 * The class to customize the entity list admin page.
868 868
 		 */
869
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-entity-list-service.php';
869
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-entity-list-service.php';
870 870
 
871 871
 		/**
872 872
 		 * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
873 873
 		 */
874 874
 		global $wp_version;
875
-		if ( version_compare( $wp_version, '5.3', '<' ) ) {
876
-			require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
875
+		if (version_compare($wp_version, '5.3', '<')) {
876
+			require_once plugin_dir_path(__DIR__).'admin/class-wordlift-entity-types-taxonomy-walker.php';
877 877
 		} else {
878
-			require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
878
+			require_once plugin_dir_path(__DIR__).'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
879 879
 		}
880 880
 
881 881
 		/**
882 882
 		 * The Notice service.
883 883
 		 */
884
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-notice-service.php';
884
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-notice-service.php';
885 885
 
886 886
 		/**
887 887
 		 * The PrimaShop adapter.
888 888
 		 */
889
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-primashop-adapter.php';
889
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-primashop-adapter.php';
890 890
 
891 891
 		/**
892 892
 		 * The WordLift Dashboard service.
893 893
 		 */
894
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-dashboard-service.php';
894
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-dashboard-service.php';
895 895
 
896 896
 		/**
897 897
 		 * The admin 'Install wizard' page.
898 898
 		 */
899
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-setup.php';
899
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-setup.php';
900 900
 
901 901
 		/**
902 902
 		 * The WordLift entity type list admin page controller.
903 903
 		 */
904
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
904
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
905 905
 
906 906
 		/**
907 907
 		 * The WordLift entity type settings admin page controller.
908 908
 		 */
909
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-entity-type-settings.php';
909
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-entity-type-settings.php';
910 910
 
911 911
 		/**
912 912
 		 * The admin 'Download Your Data' page.
913 913
 		 */
914
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-download-your-data-page.php';
914
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-download-your-data-page.php';
915 915
 
916 916
 		/**
917 917
 		 * The admin 'WordLift Settings' page.
918 918
 		 */
919
-		require_once plugin_dir_path( __DIR__ ) . 'admin/elements/intf-wordlift-admin-element.php';
920
-		require_once plugin_dir_path( __DIR__ ) . 'admin/elements/class-wordlift-admin-input-element.php';
921
-		require_once plugin_dir_path( __DIR__ ) . 'admin/elements/class-wordlift-admin-radio-input-element.php';
922
-		require_once plugin_dir_path( __DIR__ ) . 'admin/elements/class-wordlift-admin-select-element.php';
923
-		require_once plugin_dir_path( __DIR__ ) . 'admin/elements/class-wordlift-admin-select2-element.php';
924
-		require_once plugin_dir_path( __DIR__ ) . 'admin/elements/class-wordlift-admin-language-select-element.php';
925
-		require_once plugin_dir_path( __DIR__ ) . 'admin/elements/class-wordlift-admin-country-select-element.php';
926
-		require_once plugin_dir_path( __DIR__ ) . 'admin/elements/class-wordlift-admin-tabs-element.php';
927
-		require_once plugin_dir_path( __DIR__ ) . 'admin/elements/class-wordlift-admin-author-element.php';
928
-		require_once plugin_dir_path( __DIR__ ) . 'admin/elements/class-wordlift-admin-publisher-element.php';
929
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-page.php';
930
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-settings-page.php';
931
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-settings-analytics-page.php';
932
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
933
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
919
+		require_once plugin_dir_path(__DIR__).'admin/elements/intf-wordlift-admin-element.php';
920
+		require_once plugin_dir_path(__DIR__).'admin/elements/class-wordlift-admin-input-element.php';
921
+		require_once plugin_dir_path(__DIR__).'admin/elements/class-wordlift-admin-radio-input-element.php';
922
+		require_once plugin_dir_path(__DIR__).'admin/elements/class-wordlift-admin-select-element.php';
923
+		require_once plugin_dir_path(__DIR__).'admin/elements/class-wordlift-admin-select2-element.php';
924
+		require_once plugin_dir_path(__DIR__).'admin/elements/class-wordlift-admin-language-select-element.php';
925
+		require_once plugin_dir_path(__DIR__).'admin/elements/class-wordlift-admin-country-select-element.php';
926
+		require_once plugin_dir_path(__DIR__).'admin/elements/class-wordlift-admin-tabs-element.php';
927
+		require_once plugin_dir_path(__DIR__).'admin/elements/class-wordlift-admin-author-element.php';
928
+		require_once plugin_dir_path(__DIR__).'admin/elements/class-wordlift-admin-publisher-element.php';
929
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-page.php';
930
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-settings-page.php';
931
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-settings-analytics-page.php';
932
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-settings-page-action-link.php';
933
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
934 934
 
935 935
 		/** Admin Pages */
936
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-user-profile-page.php';
937
-		require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-entity-type-admin-service.php';
936
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-user-profile-page.php';
937
+		require_once plugin_dir_path(__DIR__).'admin/class-wordlift-entity-type-admin-service.php';
938 938
 
939 939
 		/**
940 940
 		 * The class responsible for defining all actions that occur in the public-facing
941 941
 		 * side of the site.
942 942
 		 */
943
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-public.php';
943
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-public.php';
944 944
 
945 945
 		/**
946 946
 		 * The shortcode abstract class.
947 947
 		 */
948
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-shortcode.php';
948
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-shortcode.php';
949 949
 
950 950
 		/**
951 951
 		 * The Timeline shortcode.
952 952
 		 */
953
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-timeline-shortcode.php';
953
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-timeline-shortcode.php';
954 954
 
955 955
 		/**
956 956
 		 * The Navigator shortcode.
957 957
 		 */
958
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-navigator-shortcode.php';
958
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-navigator-shortcode.php';
959 959
 
960 960
 		/**
961 961
 		 * The Products Navigator shortcode.
962 962
 		 */
963
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-products-navigator-shortcode.php';
963
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-products-navigator-shortcode.php';
964 964
 
965 965
 		/**
966 966
 		 * The chord shortcode.
967 967
 		 */
968
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-chord-shortcode.php';
968
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-chord-shortcode.php';
969 969
 
970 970
 		/**
971 971
 		 * The geomap shortcode.
972 972
 		 */
973
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-geomap-shortcode.php';
973
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-geomap-shortcode.php';
974 974
 
975 975
 		/**
976 976
 		 * The entity cloud shortcode.
977 977
 		 */
978
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
978
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-related-entities-cloud-shortcode.php';
979 979
 
980 980
 		/**
981 981
 		 * The entity glossary shortcode.
982 982
 		 */
983
-		require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-alphabet-service.php';
984
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-vocabulary-shortcode.php';
983
+		require_once plugin_dir_path(__DIR__).'includes/class-wordlift-alphabet-service.php';
984
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-vocabulary-shortcode.php';
985 985
 
986 986
 		/**
987 987
 		 * Faceted Search shortcode.
988 988
 		 */
989
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-faceted-search-shortcode.php';
989
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-faceted-search-shortcode.php';
990 990
 
991 991
 		/**
992 992
 		 * The ShareThis service.
993 993
 		 */
994
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-sharethis-service.php';
994
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-sharethis-service.php';
995 995
 
996 996
 		/**
997 997
 		 * The SEO service.
998 998
 		 */
999
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-seo-service.php';
999
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-seo-service.php';
1000 1000
 
1001 1001
 		/**
1002 1002
 		 * The AMP service.
1003 1003
 		 */
1004
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-amp-service.php';
1004
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-amp-service.php';
1005 1005
 
1006 1006
 		/** Widgets */
1007
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-widget.php';
1008
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1009
-		require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-context-cards-service.php';
1007
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-widget.php';
1008
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-related-entities-cloud-widget.php';
1009
+		require_once plugin_dir_path(__DIR__).'public/class-wordlift-context-cards-service.php';
1010 1010
 
1011 1011
 		/*
1012 1012
 		 * Batch Operations. They're similar to Batch Actions but do not require working on post types.
@@ -1015,8 +1015,8 @@  discard block
 block discarded – undo
1015 1015
 		 *
1016 1016
 		 * @since 3.20.0
1017 1017
 		 */
1018
-		require_once plugin_dir_path( __DIR__ ) . 'includes/batch/intf-wordlift-batch-operation.php';
1019
-		require_once plugin_dir_path( __DIR__ ) . 'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1018
+		require_once plugin_dir_path(__DIR__).'includes/batch/intf-wordlift-batch-operation.php';
1019
+		require_once plugin_dir_path(__DIR__).'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1020 1020
 
1021 1021
 		/*
1022 1022
 		 * Schema.org Services.
@@ -1024,10 +1024,10 @@  discard block
 block discarded – undo
1024 1024
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1025 1025
 		 */
1026 1026
 		// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
1027
-		if ( apply_filters( 'wl_feature__enable__all-entity-types', WL_ALL_ENTITY_TYPES ) ) {
1028
-			require_once plugin_dir_path( __DIR__ ) . 'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1029
-			require_once plugin_dir_path( __DIR__ ) . 'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1030
-			require_once plugin_dir_path( __DIR__ ) . 'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1027
+		if (apply_filters('wl_feature__enable__all-entity-types', WL_ALL_ENTITY_TYPES)) {
1028
+			require_once plugin_dir_path(__DIR__).'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1029
+			require_once plugin_dir_path(__DIR__).'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1030
+			require_once plugin_dir_path(__DIR__).'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1031 1031
 			new Wordlift_Schemaorg_Sync_Service();
1032 1032
 			$schemaorg_property_service = Wordlift_Schemaorg_Property_Service::get_instance();
1033 1033
 			new Wordlift_Schemaorg_Class_Service();
@@ -1043,13 +1043,13 @@  discard block
 block discarded – undo
1043 1043
 
1044 1044
 		// Instantiate a global logger.
1045 1045
 		global $wl_logger;
1046
-		$wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1046
+		$wl_logger = Wordlift_Log_Service::get_logger('WordLift');
1047 1047
 
1048 1048
 		// Load the `wl-api` end-point.
1049 1049
 		new Wordlift_Http_Api();
1050 1050
 
1051 1051
 		// Load the Install Service.
1052
-		require_once plugin_dir_path( __DIR__ ) . 'install/class-wordlift-install-service.php';
1052
+		require_once plugin_dir_path(__DIR__).'install/class-wordlift-install-service.php';
1053 1053
 		$this->install_service = new Wordlift_Install_Service();
1054 1054
 		$this->notice_service  = new Wordlift_Notice_Service();
1055 1055
 		$this->user_service    = Wordlift_User_Service::get_instance();
@@ -1071,21 +1071,21 @@  discard block
 block discarded – undo
1071 1071
 		add_action(
1072 1072
 			'plugins_loaded',
1073 1073
 			// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
1074
-			function () use ( &$that, $schemaorg_property_service ) {
1074
+			function() use (&$that, $schemaorg_property_service) {
1075 1075
 
1076 1076
 				/** Services. */
1077 1077
 				// Create the configuration service.
1078 1078
 				new Wordlift_Api_Service();
1079 1079
 
1080 1080
 				// Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1081
-				$that->entity_link_service = new Wordlift_Entity_Link_Service( $that->entity_post_type_service, Wordlift_Configuration_Service::get_instance()->get_entity_base_path() );
1081
+				$that->entity_link_service = new Wordlift_Entity_Link_Service($that->entity_post_type_service, Wordlift_Configuration_Service::get_instance()->get_entity_base_path());
1082 1082
 
1083 1083
 				$schema_url_property_service = new Wordlift_Schema_Url_Property_Service();
1084 1084
 
1085 1085
 				$that->entity_uri_service = Wordlift_Entity_Uri_Service::get_instance();
1086 1086
 
1087 1087
 				// Create a new instance of the Redirect service.
1088
-				$that->redirect_service = new Wordlift_Redirect_Service( $that->entity_uri_service );
1088
+				$that->redirect_service = new Wordlift_Redirect_Service($that->entity_uri_service);
1089 1089
 
1090 1090
 				// Create a new instance of the Timeline service and Timeline shortcode.
1091 1091
 				$that->timeline_service = new Wordlift_Timeline_Service();
@@ -1098,30 +1098,30 @@  discard block
 block discarded – undo
1098 1098
 				// Create an instance of the PrimaShop adapter.
1099 1099
 				$that->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1100 1100
 
1101
-				$uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1101
+				$uri_service = new Wordlift_Uri_Service($GLOBALS['wpdb']);
1102 1102
 
1103 1103
 				// Create the entity rating service.
1104 1104
 				$that->rating_service = Wordlift_Rating_Service::get_instance();
1105 1105
 
1106 1106
 				// Create entity list customization (wp-admin/edit.php).
1107
-				$that->entity_list_service = new Wordlift_Entity_List_Service( $that->rating_service );
1107
+				$that->entity_list_service = new Wordlift_Entity_List_Service($that->rating_service);
1108 1108
 
1109 1109
 				// Create an instance of the Publisher Service and the AJAX Adapter.
1110 1110
 				$that->publisher_service = Wordlift_Publisher_Service::get_instance();
1111
-				$that->property_factory  = new Wordlift_Property_Factory( $schema_url_property_service );
1112
-				$that->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1111
+				$that->property_factory  = new Wordlift_Property_Factory($schema_url_property_service);
1112
+				$that->property_factory->register(Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service);
1113 1113
 
1114 1114
 				$attachment_service = Wordlift_Attachment_Service::get_instance();
1115 1115
 
1116 1116
 				// Instantiate the JSON-LD service.
1117 1117
 				$property_getter                       = Wordlift_Property_Getter_Factory::create();
1118
-				$that->post_to_jsonld_converter        = new Wordlift_Post_To_Jsonld_Converter( Wordlift_Entity_Type_Service::get_instance(), $that->user_service, $attachment_service );
1119
-				$that->entity_post_to_jsonld_converter = new Wordlift_Entity_Post_To_Jsonld_Converter( Wordlift_Entity_Type_Service::get_instance(), $that->user_service, $attachment_service, $property_getter, $schemaorg_property_service, $that->post_to_jsonld_converter );
1120
-				$that->postid_to_jsonld_converter      = new Wordlift_Postid_To_Jsonld_Converter( $that->entity_post_to_jsonld_converter, $that->post_to_jsonld_converter );
1121
-				$that->jsonld_website_converter        = new Wordlift_Website_Jsonld_Converter( Wordlift_Entity_Type_Service::get_instance(), $that->user_service, $attachment_service );
1118
+				$that->post_to_jsonld_converter        = new Wordlift_Post_To_Jsonld_Converter(Wordlift_Entity_Type_Service::get_instance(), $that->user_service, $attachment_service);
1119
+				$that->entity_post_to_jsonld_converter = new Wordlift_Entity_Post_To_Jsonld_Converter(Wordlift_Entity_Type_Service::get_instance(), $that->user_service, $attachment_service, $property_getter, $schemaorg_property_service, $that->post_to_jsonld_converter);
1120
+				$that->postid_to_jsonld_converter      = new Wordlift_Postid_To_Jsonld_Converter($that->entity_post_to_jsonld_converter, $that->post_to_jsonld_converter);
1121
+				$that->jsonld_website_converter        = new Wordlift_Website_Jsonld_Converter(Wordlift_Entity_Type_Service::get_instance(), $that->user_service, $attachment_service);
1122 1122
 
1123
-				$jsonld_cache                            = new Ttl_Cache( 'jsonld', 86400 );
1124
-				$that->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $that->postid_to_jsonld_converter, $jsonld_cache );
1123
+				$jsonld_cache                            = new Ttl_Cache('jsonld', 86400);
1124
+				$that->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter($that->postid_to_jsonld_converter, $jsonld_cache);
1125 1125
 				/*
1126 1126
 				* Load the `Wordlift_Term_JsonLd_Adapter`.
1127 1127
 				*
@@ -1129,22 +1129,22 @@  discard block
 block discarded – undo
1129 1129
 				*
1130 1130
 				* @since 3.20.0
1131 1131
 				*/
1132
-				require_once plugin_dir_path( __DIR__ ) . 'public/class-wordlift-term-jsonld-adapter.php';
1132
+				require_once plugin_dir_path(__DIR__).'public/class-wordlift-term-jsonld-adapter.php';
1133 1133
 
1134
-				$term_jsonld_adapter  = new Wordlift_Term_JsonLd_Adapter( $that->entity_uri_service, $that->cached_postid_to_jsonld_converter );
1135
-				$that->jsonld_service = new Wordlift_Jsonld_Service( Wordlift_Entity_Service::get_instance(), $that->cached_postid_to_jsonld_converter, $that->jsonld_website_converter, $term_jsonld_adapter );
1134
+				$term_jsonld_adapter  = new Wordlift_Term_JsonLd_Adapter($that->entity_uri_service, $that->cached_postid_to_jsonld_converter);
1135
+				$that->jsonld_service = new Wordlift_Jsonld_Service(Wordlift_Entity_Service::get_instance(), $that->cached_postid_to_jsonld_converter, $that->jsonld_website_converter, $term_jsonld_adapter);
1136 1136
 
1137 1137
 				$jsonld_service = new Jsonld_Service(
1138 1138
 					$that->jsonld_service,
1139 1139
 					$term_jsonld_adapter,
1140
-					new Jsonld_User_Service( $that->user_service )
1140
+					new Jsonld_User_Service($that->user_service)
1141 1141
 				);
1142
-				new Jsonld_Endpoint( $jsonld_service, $that->entity_uri_service );
1142
+				new Jsonld_Endpoint($jsonld_service, $that->entity_uri_service);
1143 1143
 
1144 1144
 				// Prints the JSON-LD in the head.
1145
-				new Jsonld_Adapter( $that->jsonld_service );
1145
+				new Jsonld_Adapter($that->jsonld_service);
1146 1146
 
1147
-				new Jsonld_By_Id_Endpoint( $that->jsonld_service, $that->entity_uri_service );
1147
+				new Jsonld_By_Id_Endpoint($that->jsonld_service, $that->entity_uri_service);
1148 1148
 
1149 1149
 				/**
1150 1150
 				 * @since 3.37.1
@@ -1157,10 +1157,10 @@  discard block
 block discarded – undo
1157 1157
 				// Creating Faq Content filter service.
1158 1158
 				$that->faq_content_filter_service = new Faq_Content_Filter();
1159 1159
 				$that->sample_data_service        = Wordlift_Sample_Data_Service::get_instance();
1160
-				$that->sample_data_ajax_adapter   = new Wordlift_Sample_Data_Ajax_Adapter( $that->sample_data_service );
1160
+				$that->sample_data_ajax_adapter   = new Wordlift_Sample_Data_Ajax_Adapter($that->sample_data_service);
1161 1161
 
1162
-				$that->loader->add_action( 'enqueue_block_editor_assets', $that, 'add_wl_enabled_blocks' );
1163
-				$that->loader->add_action( 'admin_enqueue_scripts', $that, 'add_wl_enabled_blocks' );
1162
+				$that->loader->add_action('enqueue_block_editor_assets', $that, 'add_wl_enabled_blocks');
1163
+				$that->loader->add_action('admin_enqueue_scripts', $that, 'add_wl_enabled_blocks');
1164 1164
 
1165 1165
 				/**
1166 1166
 				 * Filter: wl_feature__enable__blocks.
@@ -1170,15 +1170,15 @@  discard block
 block discarded – undo
1170 1170
 				 * @return bool
1171 1171
 				 * @since 3.27.6
1172 1172
 				 */
1173
-				if ( apply_filters( 'wl_feature__enable__blocks', true ) ) {
1173
+				if (apply_filters('wl_feature__enable__blocks', true)) {
1174 1174
 					// Initialize the short-codes.
1175
-					new Async_Template_Decorator( new Wordlift_Navigator_Shortcode() );
1175
+					new Async_Template_Decorator(new Wordlift_Navigator_Shortcode());
1176 1176
 					new Wordlift_Chord_Shortcode();
1177 1177
 					new Wordlift_Geomap_Shortcode();
1178 1178
 					new Wordlift_Timeline_Shortcode();
1179
-					new Wordlift_Related_Entities_Cloud_Shortcode( Wordlift_Relation_Service::get_instance(), Wordlift_Entity_Service::get_instance() );
1179
+					new Wordlift_Related_Entities_Cloud_Shortcode(Wordlift_Relation_Service::get_instance(), Wordlift_Entity_Service::get_instance());
1180 1180
 					new Wordlift_Vocabulary_Shortcode();
1181
-					new Async_Template_Decorator( new Wordlift_Faceted_Search_Shortcode() );
1181
+					new Async_Template_Decorator(new Wordlift_Faceted_Search_Shortcode());
1182 1182
 				}
1183 1183
 
1184 1184
 				new Wordlift_Products_Navigator_Shortcode();
@@ -1190,16 +1190,16 @@  discard block
 block discarded – undo
1190 1190
 				new Wordlift_Seo_Service();
1191 1191
 
1192 1192
 				// Initialize the AMP service.
1193
-				new Wordlift_AMP_Service( $that->jsonld_service );
1193
+				new Wordlift_AMP_Service($that->jsonld_service);
1194 1194
 
1195 1195
 				/** Services. */
1196 1196
 				$that->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1197 1197
 				new Wordlift_Image_Service();
1198 1198
 
1199 1199
 				/** Adapters. */
1200
-				$that->entity_type_adapter    = new Wordlift_Entity_Type_Adapter( Wordlift_Entity_Type_Service::get_instance() );
1201
-				$that->publisher_ajax_adapter = new Wordlift_Publisher_Ajax_Adapter( $that->publisher_service );
1202
-				$that->tinymce_adapter        = new Wordlift_Tinymce_Adapter( $that );
1200
+				$that->entity_type_adapter    = new Wordlift_Entity_Type_Adapter(Wordlift_Entity_Type_Service::get_instance());
1201
+				$that->publisher_ajax_adapter = new Wordlift_Publisher_Ajax_Adapter($that->publisher_service);
1202
+				$that->tinymce_adapter        = new Wordlift_Tinymce_Adapter($that);
1203 1203
 
1204 1204
 				/*
1205 1205
 				* Exclude our public js from WP-Rocket.
@@ -1219,14 +1219,14 @@  discard block
 block discarded – undo
1219 1219
 				$that->language_select_element = new Wordlift_Admin_Language_Select_Element();
1220 1220
 				$that->country_select_element  = new Wordlift_Admin_Country_Select_Element();
1221 1221
 				$tabs_element                  = new Wordlift_Admin_Tabs_Element();
1222
-				$that->publisher_element       = new Wordlift_Admin_Publisher_Element( $that->publisher_service, $tabs_element, $that->select2_element );
1223
-				$that->author_element          = new Wordlift_Admin_Author_Element( $that->publisher_service, $that->select2_element );
1222
+				$that->publisher_element       = new Wordlift_Admin_Publisher_Element($that->publisher_service, $tabs_element, $that->select2_element);
1223
+				$that->author_element          = new Wordlift_Admin_Author_Element($that->publisher_service, $that->select2_element);
1224 1224
 
1225 1225
 				$that->settings_page             = Wordlift_Admin_Settings_Page::get_instance();
1226
-				$that->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $that->settings_page );
1226
+				$that->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link($that->settings_page);
1227 1227
 
1228
-				$that->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page( $that->input_element, $that->radio_input_element );
1229
-				$that->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link( $that->analytics_settings_page );
1228
+				$that->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page($that->input_element, $that->radio_input_element);
1229
+				$that->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link($that->analytics_settings_page);
1230 1230
 				$that->analytics_connect                   = new Wordlift_Analytics_Connect();
1231 1231
 
1232 1232
 				// Pages.
@@ -1237,9 +1237,9 @@  discard block
 block discarded – undo
1237 1237
 				*
1238 1238
 				* @see https://github.com/insideout10/wordlift-plugin/issues/914
1239 1239
 				*/
1240
-				if ( apply_filters( 'wl_can_see_classification_box', true ) ) {
1241
-					require_once plugin_dir_path( __DIR__ ) . 'admin/class-wordlift-admin-post-edit-page.php';
1242
-					new Wordlift_Admin_Post_Edit_Page( $that );
1240
+				if (apply_filters('wl_can_see_classification_box', true)) {
1241
+					require_once plugin_dir_path(__DIR__).'admin/class-wordlift-admin-post-edit-page.php';
1242
+					new Wordlift_Admin_Post_Edit_Page($that);
1243 1243
 				}
1244 1244
 				new Wordlift_Entity_Type_Admin_Service();
1245 1245
 
@@ -1247,19 +1247,19 @@  discard block
 block discarded – undo
1247 1247
 				$that->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1248 1248
 
1249 1249
 				// Create an instance of the install wizard.
1250
-				$that->admin_setup = new Wordlift_Admin_Setup( $that->key_validation_service, Wordlift_Entity_Service::get_instance(), $that->language_select_element, $that->country_select_element );
1250
+				$that->admin_setup = new Wordlift_Admin_Setup($that->key_validation_service, Wordlift_Entity_Service::get_instance(), $that->language_select_element, $that->country_select_element);
1251 1251
 
1252
-				$that->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $that->entity_post_type_service );
1252
+				$that->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service($that->entity_post_type_service);
1253 1253
 
1254 1254
 				// User Profile.
1255
-				new Wordlift_Admin_User_Profile_Page( $that->author_element, $that->user_service );
1255
+				new Wordlift_Admin_User_Profile_Page($that->author_element, $that->user_service);
1256 1256
 
1257 1257
 				$that->entity_page_service = new Wordlift_Entity_Page_Service();
1258 1258
 
1259 1259
 				// Load the debug service if WP is in debug mode.
1260
-				if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1261
-					require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-debug-service.php';
1262
-					new Wordlift_Debug_Service( Wordlift_Entity_Service::get_instance(), $uri_service );
1260
+				if (defined('WP_DEBUG') && WP_DEBUG) {
1261
+					require_once plugin_dir_path(__DIR__).'includes/class-wordlift-debug-service.php';
1262
+					new Wordlift_Debug_Service(Wordlift_Entity_Service::get_instance(), $uri_service);
1263 1263
 				}
1264 1264
 
1265 1265
 				// Remote Image Service.
@@ -1272,12 +1272,12 @@  discard block
 block discarded – undo
1272 1272
 				*
1273 1273
 				* @see https://github.com/insideout10/wordlift-plugin/issues/852.
1274 1274
 				*/
1275
-				require_once plugin_dir_path( __DIR__ ) . 'includes/class-wordlift-batch-action.php';
1276
-				require_once plugin_dir_path( __DIR__ ) . 'includes/mapping/class-wordlift-mapping-service.php';
1277
-				require_once plugin_dir_path( __DIR__ ) . 'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1275
+				require_once plugin_dir_path(__DIR__).'includes/class-wordlift-batch-action.php';
1276
+				require_once plugin_dir_path(__DIR__).'includes/mapping/class-wordlift-mapping-service.php';
1277
+				require_once plugin_dir_path(__DIR__).'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1278 1278
 
1279 1279
 				// Create an instance of the Mapping Service and assign it to the Ajax Adapter.
1280
-				new Wordlift_Mapping_Ajax_Adapter( new Wordlift_Mapping_Service( Wordlift_Entity_Type_Service::get_instance() ) );
1280
+				new Wordlift_Mapping_Ajax_Adapter(new Wordlift_Mapping_Service(Wordlift_Entity_Type_Service::get_instance()));
1281 1281
 
1282 1282
 				/*
1283 1283
 				* Load the Mappings JSON-LD post processing.
@@ -1291,11 +1291,11 @@  discard block
 block discarded – undo
1291 1291
 				// Taxonomy term rule validator for validating rules for term pages.
1292 1292
 				new Taxonomy_Term_Rule_Validator();
1293 1293
 				new Post_Taxonomy_Term_Rule_Validator();
1294
-				$rule_validators_registry = new Rule_Validators_Registry( $default_rule_validator );
1295
-				$rule_groups_validator    = new Rule_Groups_Validator( $rule_validators_registry );
1296
-				$mappings_validator       = new Mappings_Validator( $mappings_dbo, $rule_groups_validator );
1294
+				$rule_validators_registry = new Rule_Validators_Registry($default_rule_validator);
1295
+				$rule_groups_validator    = new Rule_Groups_Validator($rule_validators_registry);
1296
+				$mappings_validator       = new Mappings_Validator($mappings_dbo, $rule_groups_validator);
1297 1297
 
1298
-				new Url_To_Entity_Transform_Function( $that->entity_uri_service );
1298
+				new Url_To_Entity_Transform_Function($that->entity_uri_service);
1299 1299
 				new Taxonomy_To_Terms_Transform_Function();
1300 1300
 				new Post_Id_To_Entity_Transform_Function();
1301 1301
 				$mappings_transform_functions_registry = new Mappings_Transform_Functions_Registry();
@@ -1305,7 +1305,7 @@  discard block
 block discarded – undo
1305 1305
 				 * Intiailize the acf group data formatter.
1306 1306
 				 */
1307 1307
 				new Acf_Group_Formatter();
1308
-				new Jsonld_Converter( $mappings_validator, $mappings_transform_functions_registry );
1308
+				new Jsonld_Converter($mappings_validator, $mappings_transform_functions_registry);
1309 1309
 
1310 1310
 				/**
1311 1311
 				 * @since 3.26.0
@@ -1323,16 +1323,16 @@  discard block
 block discarded – undo
1323 1323
 				// Call this static method to register FAQ routes to rest api - disabled
1324 1324
 				// Faq_Rest_Controller::register_routes();
1325 1325
 
1326
-				$that->storage_factory = new Wordlift_Storage_Factory( Wordlift_Entity_Service::get_instance(), $that->user_service, $property_getter );
1326
+				$that->storage_factory = new Wordlift_Storage_Factory(Wordlift_Entity_Service::get_instance(), $that->user_service, $property_getter);
1327 1327
 
1328 1328
 				/** WL Autocomplete. */
1329
-				$autocomplete_service       = new All_Autocomplete_Service(
1329
+				$autocomplete_service = new All_Autocomplete_Service(
1330 1330
 					array(
1331 1331
 						new Local_Autocomplete_Service(),
1332
-						new Linked_Data_Autocomplete_Service( Entity_Helper::get_instance(), $that->entity_uri_service, Wordlift_Entity_Service::get_instance() ),
1332
+						new Linked_Data_Autocomplete_Service(Entity_Helper::get_instance(), $that->entity_uri_service, Wordlift_Entity_Service::get_instance()),
1333 1333
 					)
1334 1334
 				);
1335
-				$that->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $autocomplete_service );
1335
+				$that->autocomplete_adapter = new Wordlift_Autocomplete_Adapter($autocomplete_service);
1336 1336
 
1337 1337
 				/**
1338 1338
 				 * @since 3.27.2
@@ -1341,10 +1341,10 @@  discard block
 block discarded – undo
1341 1341
 				 */
1342 1342
 				new Recipe_Maker_Post_Type_Hook();
1343 1343
 				$recipe_maker_validation_service = new Recipe_Maker_Validation_Service();
1344
-				new Recipe_Maker_Jsonld_Hook( $attachment_service, $recipe_maker_validation_service );
1345
-				new Recipe_Maker_After_Get_Jsonld_Hook( $recipe_maker_validation_service );
1346
-				new Recipe_Maker_Jsonld_Swap( $recipe_maker_validation_service, $that->jsonld_service );
1347
-				new Recipe_Maker_Warning( $recipe_maker_validation_service );
1344
+				new Recipe_Maker_Jsonld_Hook($attachment_service, $recipe_maker_validation_service);
1345
+				new Recipe_Maker_After_Get_Jsonld_Hook($recipe_maker_validation_service);
1346
+				new Recipe_Maker_Jsonld_Swap($recipe_maker_validation_service, $that->jsonld_service);
1347
+				new Recipe_Maker_Warning($recipe_maker_validation_service);
1348 1348
 
1349 1349
 				new Duplicate_Markup_Remover();
1350 1350
 
@@ -1352,7 +1352,7 @@  discard block
 block discarded – undo
1352 1352
 				 * @since 3.27.8
1353 1353
 				 * @see https://github.com/insideout10/wordlift-plugin/issues/1248
1354 1354
 				 */
1355
-				new Key_Validation_Notice( $that->key_validation_service, Wordlift_Configuration_Service::get_instance() );
1355
+				new Key_Validation_Notice($that->key_validation_service, Wordlift_Configuration_Service::get_instance());
1356 1356
 				/**
1357 1357
 				 * @since 3.28.0
1358 1358
 				 * @see https://github.com/insideout10/wordlift-plugin/issues?q=assignee%3Anaveen17797+is%3Aopen
@@ -1363,7 +1363,7 @@  discard block
 block discarded – undo
1363 1363
 				 * @since 3.29.0
1364 1364
 				 * @see https://github.com/insideout10/wordlift-plugin/issues/1304
1365 1365
 				 */
1366
-				new Entity_Rest_Service( Wordlift_Entity_Type_Service::get_instance() );
1366
+				new Entity_Rest_Service(Wordlift_Entity_Type_Service::get_instance());
1367 1367
 
1368 1368
 				/**
1369 1369
 				 * Expand author in to references.
@@ -1372,12 +1372,12 @@  discard block
 block discarded – undo
1372 1372
 				 * @see https://github.com/insideout10/wordlift-plugin/issues/1318
1373 1373
 				 */
1374 1374
 				// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
1375
-				if ( apply_filters( 'wl_feature__enable__article-wrapper', false ) ) {
1376
-					new Jsonld_Article_Wrapper( Wordlift_Post_To_Jsonld_Converter::get_instance(), $that->cached_postid_to_jsonld_converter );
1375
+				if (apply_filters('wl_feature__enable__article-wrapper', false)) {
1376
+					new Jsonld_Article_Wrapper(Wordlift_Post_To_Jsonld_Converter::get_instance(), $that->cached_postid_to_jsonld_converter);
1377 1377
 				}
1378 1378
 
1379 1379
 				// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
1380
-				if ( apply_filters( 'wl_feature__enable__match-terms', false ) ) {
1380
+				if (apply_filters('wl_feature__enable__match-terms', false)) {
1381 1381
 					$vocabulary_loader = new Vocabulary_Loader();
1382 1382
 					$vocabulary_loader->init_vocabulary();
1383 1383
 				}
@@ -1385,7 +1385,7 @@  discard block
 block discarded – undo
1385 1385
 				/**
1386 1386
 				 * Added for feature request 1496 (Webhooks)
1387 1387
 				 */
1388
-				if ( apply_filters( 'wl_feature__enable__webhooks', false ) ) {
1388
+				if (apply_filters('wl_feature__enable__webhooks', false)) {
1389 1389
 					$that->webhook_loader = new Webhooks_Loader();
1390 1390
 					$that->webhook_loader->init();
1391 1391
 				}
@@ -1414,7 +1414,7 @@  discard block
 block discarded – undo
1414 1414
 				 * @since 3.31.5
1415 1415
 				 * Create configuration endpoint for webapp to configure.
1416 1416
 				 */
1417
-				new Config( $that->admin_setup, $that->key_validation_service );
1417
+				new Config($that->admin_setup, $that->key_validation_service);
1418 1418
 				/**
1419 1419
 				 * @since 3.31.7
1420 1420
 				 * Remove duplicate videoobject.
@@ -1426,7 +1426,7 @@  discard block
 block discarded – undo
1426 1426
 				 * @since 3.32.0
1427 1427
 				 * Create loader for vocabulary terms.
1428 1428
 				 */
1429
-				$vocabulary_terms_loader = new Vocabulary_Terms_Loader( Wordlift_Entity_Type_Service::get_instance(), $property_getter );
1429
+				$vocabulary_terms_loader = new Vocabulary_Terms_Loader(Wordlift_Entity_Type_Service::get_instance(), $property_getter);
1430 1430
 				$vocabulary_terms_loader->init_feature();
1431 1431
 
1432 1432
 				new Entity_Type_Change_Handler(
@@ -1455,9 +1455,9 @@  discard block
 block discarded – undo
1455 1455
 	private function set_locale() {
1456 1456
 
1457 1457
 		$plugin_i18n = new Wordlift_I18n();
1458
-		$plugin_i18n->set_domain( $this->get_plugin_name() );
1458
+		$plugin_i18n->set_domain($this->get_plugin_name());
1459 1459
 
1460
-		$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1460
+		$this->loader->add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain');
1461 1461
 
1462 1462
 	}
1463 1463
 
@@ -1468,7 +1468,7 @@  discard block
 block discarded – undo
1468 1468
 	 * @since    1.0.0
1469 1469
 	 * @access   private
1470 1470
 	 */
1471
-	private function define_admin_hooks( $that ) {
1471
+	private function define_admin_hooks($that) {
1472 1472
 		$plugin_admin = new Wordlift_Admin(
1473 1473
 			$that->get_plugin_name(),
1474 1474
 			$that->get_version(),
@@ -1476,51 +1476,51 @@  discard block
 block discarded – undo
1476 1476
 			$that->user_service
1477 1477
 		);
1478 1478
 
1479
-		$that->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1480
-		$that->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11 );
1479
+		$that->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles');
1480
+		$that->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11);
1481 1481
 
1482 1482
 		// Hook the `admin_init` function to the Admin Setup.
1483
-		Assertions::is_set( $that->admin_setup, '`admin_setup` must be set' );
1484
-		$that->loader->add_action( 'admin_init', $that->admin_setup, 'admin_init' );
1483
+		Assertions::is_set($that->admin_setup, '`admin_setup` must be set');
1484
+		$that->loader->add_action('admin_init', $that->admin_setup, 'admin_init');
1485 1485
 
1486 1486
 		// Hook the admin_init to the settings page.
1487
-		Assertions::is_set( $that->settings_page, '`setting_page` must be set' );
1488
-		$that->loader->add_action( 'admin_init', $that->settings_page, 'admin_init' );
1487
+		Assertions::is_set($that->settings_page, '`setting_page` must be set');
1488
+		$that->loader->add_action('admin_init', $that->settings_page, 'admin_init');
1489 1489
 
1490 1490
 		// Hook the admin_init to the analytics settings page.
1491
-		Assertions::is_set( $that->analytics_settings_page, '`analytics_setting_page` must be set' );
1492
-		$that->loader->add_action( 'admin_init', $that->analytics_settings_page, 'admin_init' );
1491
+		Assertions::is_set($that->analytics_settings_page, '`analytics_setting_page` must be set');
1492
+		$that->loader->add_action('admin_init', $that->analytics_settings_page, 'admin_init');
1493 1493
 
1494 1494
 		// Hook the init action to taxonomy services.
1495
-		$that->loader->add_action( 'init', $that->topic_taxonomy_service, 'init', 0 );
1496
-		$that->loader->add_action( 'init', $that->entity_types_taxonomy_service, 'init', 0 );
1495
+		$that->loader->add_action('init', $that->topic_taxonomy_service, 'init', 0);
1496
+		$that->loader->add_action('init', $that->entity_types_taxonomy_service, 'init', 0);
1497 1497
 
1498 1498
 		// Hook the AJAX wl_timeline action to the Timeline service.
1499
-		$that->loader->add_action( 'wp_ajax_wl_timeline', $that->timeline_service, 'ajax_timeline' );
1499
+		$that->loader->add_action('wp_ajax_wl_timeline', $that->timeline_service, 'ajax_timeline');
1500 1500
 
1501 1501
 		// Register custom allowed redirect hosts.
1502
-		$that->loader->add_filter( 'allowed_redirect_hosts', $that->redirect_service, 'allowed_redirect_hosts' );
1502
+		$that->loader->add_filter('allowed_redirect_hosts', $that->redirect_service, 'allowed_redirect_hosts');
1503 1503
 		// Hook the AJAX wordlift_redirect action to the Redirect service.
1504
-		$that->loader->add_action( 'wp_ajax_wordlift_redirect', $that->redirect_service, 'ajax_redirect' );
1504
+		$that->loader->add_action('wp_ajax_wordlift_redirect', $that->redirect_service, 'ajax_redirect');
1505 1505
 
1506 1506
 		// Hook save_post to the entity service to update custom fields (such as alternate labels).
1507 1507
 		// We have a priority of 9 because we want to be executed before data is sent to Redlink.
1508
-		$that->loader->add_action( 'save_post', Wordlift_Entity_Service::get_instance(), 'save_post', 9, 2 );
1509
-		$that->loader->add_action( 'save_post', $that->rating_service, 'set_rating_for', 20, 1 );
1508
+		$that->loader->add_action('save_post', Wordlift_Entity_Service::get_instance(), 'save_post', 9, 2);
1509
+		$that->loader->add_action('save_post', $that->rating_service, 'set_rating_for', 20, 1);
1510 1510
 
1511
-		$that->loader->add_action( 'edit_form_before_permalink', Wordlift_Entity_Service::get_instance(), 'edit_form_before_permalink', 10, 1 );
1512
-		$that->loader->add_action( 'in_admin_header', $that->rating_service, 'in_admin_header' );
1511
+		$that->loader->add_action('edit_form_before_permalink', Wordlift_Entity_Service::get_instance(), 'edit_form_before_permalink', 10, 1);
1512
+		$that->loader->add_action('in_admin_header', $that->rating_service, 'in_admin_header');
1513 1513
 
1514 1514
 		// Entity listing customization (wp-admin/edit.php)
1515 1515
 		// Add custom columns.
1516
-		$that->loader->add_filter( 'manage_entity_posts_columns', $that->entity_list_service, 'register_custom_columns' );
1516
+		$that->loader->add_filter('manage_entity_posts_columns', $that->entity_list_service, 'register_custom_columns');
1517 1517
 		// no explicit entity as it prevents handling of other post types.
1518
-		$that->loader->add_filter( 'manage_posts_custom_column', $that->entity_list_service, 'render_custom_columns', 10, 2 );
1518
+		$that->loader->add_filter('manage_posts_custom_column', $that->entity_list_service, 'render_custom_columns', 10, 2);
1519 1519
 		// Add 4W selection.
1520
-		$that->loader->add_action( 'restrict_manage_posts', $that->entity_list_service, 'restrict_manage_posts_classification_scope' );
1521
-		$that->loader->add_filter( 'posts_clauses', $that->entity_list_service, 'posts_clauses_classification_scope' );
1522
-		$that->loader->add_action( 'pre_get_posts', $that->entity_list_service, 'pre_get_posts' );
1523
-		$that->loader->add_action( 'load-edit.php', $that->entity_list_service, 'load_edit' );
1520
+		$that->loader->add_action('restrict_manage_posts', $that->entity_list_service, 'restrict_manage_posts_classification_scope');
1521
+		$that->loader->add_filter('posts_clauses', $that->entity_list_service, 'posts_clauses_classification_scope');
1522
+		$that->loader->add_action('pre_get_posts', $that->entity_list_service, 'pre_get_posts');
1523
+		$that->loader->add_action('load-edit.php', $that->entity_list_service, 'load_edit');
1524 1524
 
1525 1525
 		/*
1526 1526
 		 * If `All Entity Types` is disable, use the radio button Walker.
@@ -1528,18 +1528,18 @@  discard block
 block discarded – undo
1528 1528
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1529 1529
 		 */
1530 1530
 		// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
1531
-		if ( ! apply_filters( 'wl_feature__enable__all-entity-types', WL_ALL_ENTITY_TYPES )
1531
+		if ( ! apply_filters('wl_feature__enable__all-entity-types', WL_ALL_ENTITY_TYPES)
1532 1532
 		     // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
1533
-			 || apply_filters( 'wl_feature__enable__entity-types-professional', false )
1533
+			 || apply_filters('wl_feature__enable__entity-types-professional', false)
1534 1534
 		     // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
1535
-			 || apply_filters( 'wl_feature__enable__entity-types-business', false )
1535
+			 || apply_filters('wl_feature__enable__entity-types-business', false)
1536 1536
 		) {
1537
-			$that->loader->add_filter( 'wp_terms_checklist_args', $that->entity_types_taxonomy_walker, 'terms_checklist_args' );
1537
+			$that->loader->add_filter('wp_terms_checklist_args', $that->entity_types_taxonomy_walker, 'terms_checklist_args');
1538 1538
 		}
1539 1539
 
1540 1540
 		// Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1541 1541
 		// entities.
1542
-		$that->loader->add_filter( 'prima_metabox_entity_header_args', $that->primashop_adapter, 'prima_metabox_entity_header_args', 10 );
1542
+		$that->loader->add_filter('prima_metabox_entity_header_args', $that->primashop_adapter, 'prima_metabox_entity_header_args', 10);
1543 1543
 
1544 1544
 		/**
1545 1545
 		 * Filter: wl_feature__enable__settings-download.
@@ -1559,20 +1559,20 @@  discard block
 block discarded – undo
1559 1559
 		);
1560 1560
 
1561 1561
 		// Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1562
-		$that->loader->add_action( 'wp_ajax_wl_download_your_data', $that->download_your_data_page, 'download_your_data', 10 );
1562
+		$that->loader->add_action('wp_ajax_wl_download_your_data', $that->download_your_data_page, 'download_your_data', 10);
1563 1563
 
1564 1564
 		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1565
-		$that->loader->add_action( 'wp_ajax_wl_jsonld', $that->jsonld_service, 'get' );
1566
-		$that->loader->add_action( 'admin_post_wl_jsonld', $that->jsonld_service, 'get' );
1567
-		$that->loader->add_action( 'admin_post_nopriv_wl_jsonld', $that->jsonld_service, 'get' );
1565
+		$that->loader->add_action('wp_ajax_wl_jsonld', $that->jsonld_service, 'get');
1566
+		$that->loader->add_action('admin_post_wl_jsonld', $that->jsonld_service, 'get');
1567
+		$that->loader->add_action('admin_post_nopriv_wl_jsonld', $that->jsonld_service, 'get');
1568 1568
 
1569 1569
 		// Hook the AJAX wl_validate_key action to the Key Validation service.
1570
-		$that->loader->add_action( 'wp_ajax_wl_validate_key', $that->key_validation_service, 'validate_key' );
1570
+		$that->loader->add_action('wp_ajax_wl_validate_key', $that->key_validation_service, 'validate_key');
1571 1571
 
1572 1572
 		// Hook the AJAX wl_update_country_options action to the countries.
1573
-		$that->loader->add_action( 'wp_ajax_wl_update_country_options', $that->country_select_element, 'get_options_html' );
1573
+		$that->loader->add_action('wp_ajax_wl_update_country_options', $that->country_select_element, 'get_options_html');
1574 1574
 
1575
-		$that->loader->add_filter( 'admin_post_thumbnail_html', $that->publisher_service, 'add_featured_image_instruction' );
1575
+		$that->loader->add_filter('admin_post_thumbnail_html', $that->publisher_service, 'add_featured_image_instruction');
1576 1576
 
1577 1577
 		// Hook the menu creation on the general wordlift menu creation.
1578 1578
 		/**
@@ -1586,16 +1586,16 @@  discard block
 block discarded – undo
1586 1586
 		 * Since 3.30.0 this feature is registered using registry.
1587 1587
 		 */
1588 1588
 		// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
1589
-		if ( apply_filters( 'wl_feature__enable__settings-screen', true ) || Admin_User_Option::is_wordlift_admin() ) {
1590
-			add_action( 'wl_admin_menu', array( $that->settings_page, 'admin_menu' ), 10, 2 );
1589
+		if (apply_filters('wl_feature__enable__settings-screen', true) || Admin_User_Option::is_wordlift_admin()) {
1590
+			add_action('wl_admin_menu', array($that->settings_page, 'admin_menu'), 10, 2);
1591 1591
 		}
1592 1592
 
1593 1593
 		// Hook key update.
1594
-		$that->loader->add_action( 'pre_update_option_wl_general_settings', Wordlift_Configuration_Service::get_instance(), 'maybe_update_dataset_uri', 10, 2 );
1595
-		$that->loader->add_action( 'update_option_wl_general_settings', Wordlift_Configuration_Service::get_instance(), 'update_key', 10, 2 );
1594
+		$that->loader->add_action('pre_update_option_wl_general_settings', Wordlift_Configuration_Service::get_instance(), 'maybe_update_dataset_uri', 10, 2);
1595
+		$that->loader->add_action('update_option_wl_general_settings', Wordlift_Configuration_Service::get_instance(), 'update_key', 10, 2);
1596 1596
 
1597 1597
 		// Add additional action links to the WordLift plugin in the plugins page.
1598
-		$that->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $that->settings_page_action_link, 'action_links', 10, 1 );
1598
+		$that->loader->add_filter('plugin_action_links_wordlift/wordlift.php', $that->settings_page_action_link, 'action_links', 10, 1);
1599 1599
 
1600 1600
 		/*
1601 1601
 		 * Remove the Analytics Settings link from the plugin page.
@@ -1606,23 +1606,23 @@  discard block
 block discarded – undo
1606 1606
 		// $that->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $that->analytics_settings_page_action_link, 'action_links', 10, 1 );
1607 1607
 
1608 1608
 		// Hook the AJAX `wl_publisher` action name.
1609
-		$that->loader->add_action( 'wp_ajax_wl_publisher', $that->publisher_ajax_adapter, 'publisher' );
1609
+		$that->loader->add_action('wp_ajax_wl_publisher', $that->publisher_ajax_adapter, 'publisher');
1610 1610
 
1611 1611
 		// Hook row actions for the entity type list admin.
1612
-		$that->loader->add_filter( 'wl_entity_type_row_actions', $that->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1612
+		$that->loader->add_filter('wl_entity_type_row_actions', $that->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2);
1613 1613
 
1614 1614
 		/** Ajax actions. */
1615
-		$that->loader->add_action( 'wp_ajax_wl_google_analytics_export', $that->google_analytics_export_service, 'export' );
1615
+		$that->loader->add_action('wp_ajax_wl_google_analytics_export', $that->google_analytics_export_service, 'export');
1616 1616
 
1617 1617
 		// Hook capabilities manipulation to allow access to entity type admin
1618 1618
 		// page  on WordPress versions before 4.7.
1619 1619
 		global $wp_version;
1620
-		if ( version_compare( $wp_version, '4.7', '<' ) ) {
1621
-			$that->loader->add_filter( 'map_meta_cap', $that->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 2 );
1620
+		if (version_compare($wp_version, '4.7', '<')) {
1621
+			$that->loader->add_filter('map_meta_cap', $that->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 2);
1622 1622
 		}
1623 1623
 
1624 1624
 		/** Adapters. */
1625
-		$that->loader->add_filter( 'mce_external_plugins', $that->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1625
+		$that->loader->add_filter('mce_external_plugins', $that->tinymce_adapter, 'mce_external_plugins', 10, 1);
1626 1626
 		/**
1627 1627
 		 * Disabling Faq temporarily.
1628 1628
 		 * Load the tinymce editor button on the tool bar.
@@ -1633,14 +1633,14 @@  discard block
 block discarded – undo
1633 1633
 		// $that->loader->add_filter( 'mce_buttons', $that->faq_tinymce_adapter, 'register_faq_toolbar_button', 10, 1 );
1634 1634
 		// $that->loader->add_filter( 'mce_external_plugins', $that->faq_tinymce_adapter, 'register_faq_tinymce_plugin', 10, 1 );
1635 1635
 
1636
-		$that->loader->add_action( 'wp_ajax_wl_sample_data_create', $that->sample_data_ajax_adapter, 'create' );
1637
-		$that->loader->add_action( 'wp_ajax_wl_sample_data_delete', $that->sample_data_ajax_adapter, 'delete' );
1636
+		$that->loader->add_action('wp_ajax_wl_sample_data_create', $that->sample_data_ajax_adapter, 'create');
1637
+		$that->loader->add_action('wp_ajax_wl_sample_data_delete', $that->sample_data_ajax_adapter, 'delete');
1638 1638
 
1639 1639
 		/**
1640 1640
 		 * @since 3.26.0
1641 1641
 		 */
1642 1642
 		$excerpt_adapter = new Post_Excerpt_Meta_Box_Adapter();
1643
-		$that->loader->add_action( 'do_meta_boxes', $excerpt_adapter, 'replace_post_excerpt_meta_box' );
1643
+		$that->loader->add_action('do_meta_boxes', $excerpt_adapter, 'replace_post_excerpt_meta_box');
1644 1644
 		// Adding Rest route for the post excerpt
1645 1645
 		Post_Excerpt_Rest_Controller::register_routes();
1646 1646
 
@@ -1661,14 +1661,14 @@  discard block
 block discarded – undo
1661 1661
 		);
1662 1662
 
1663 1663
 		// Hooks to restrict multisite super admin from manipulating entity types.
1664
-		if ( is_multisite() ) {
1665
-			$that->loader->add_filter( 'map_meta_cap', $that->entity_type_admin_page, 'restrict_super_admin', 10, 2 );
1664
+		if (is_multisite()) {
1665
+			$that->loader->add_filter('map_meta_cap', $that->entity_type_admin_page, 'restrict_super_admin', 10, 2);
1666 1666
 		}
1667 1667
 
1668 1668
 		$deactivator_feedback = new Wordlift_Deactivator_Feedback();
1669 1669
 
1670
-		add_action( 'admin_footer', array( $deactivator_feedback, 'render_feedback_popup' ) );
1671
-		add_action( 'admin_enqueue_scripts', array( $deactivator_feedback, 'enqueue_popup_scripts' ) );
1670
+		add_action('admin_footer', array($deactivator_feedback, 'render_feedback_popup'));
1671
+		add_action('admin_enqueue_scripts', array($deactivator_feedback, 'enqueue_popup_scripts'));
1672 1672
 		add_action(
1673 1673
 			'wp_ajax_wl_deactivation_feedback',
1674 1674
 			array(
@@ -1684,13 +1684,13 @@  discard block
 block discarded – undo
1684 1684
 		 */
1685 1685
 		add_filter(
1686 1686
 			'allowed_block_types',
1687
-			function ( $value ) {
1687
+			function($value) {
1688 1688
 
1689
-				if ( true === $value ) {
1689
+				if (true === $value) {
1690 1690
 					return $value;
1691 1691
 				}
1692 1692
 
1693
-				return array_merge( (array) $value, array( 'wordlift/classification' ) );
1693
+				return array_merge((array) $value, array('wordlift/classification'));
1694 1694
 			},
1695 1695
 			PHP_INT_MAX
1696 1696
 		);
@@ -1710,57 +1710,57 @@  discard block
 block discarded – undo
1710 1710
 	 * @since    1.0.0
1711 1711
 	 * @access   private
1712 1712
 	 */
1713
-	private function define_public_hooks( $that ) {
1713
+	private function define_public_hooks($that) {
1714 1714
 
1715
-		$plugin_public = new Wordlift_Public( $that->get_plugin_name(), $that->get_version() );
1715
+		$plugin_public = new Wordlift_Public($that->get_plugin_name(), $that->get_version());
1716 1716
 
1717 1717
 		// Register the entity post type.
1718
-		$that->loader->add_action( 'init', $that->entity_post_type_service, 'register' );
1718
+		$that->loader->add_action('init', $that->entity_post_type_service, 'register');
1719 1719
 
1720 1720
 		// Bind the link generation and handling hooks to the entity link service.
1721
-		$that->loader->add_filter( 'post_type_link', $that->entity_link_service, 'post_type_link', 10, 2 );
1722
-		$that->loader->add_action( 'pre_get_posts', $that->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1721
+		$that->loader->add_filter('post_type_link', $that->entity_link_service, 'post_type_link', 10, 2);
1722
+		$that->loader->add_action('pre_get_posts', $that->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1);
1723 1723
 
1724
-		$that->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1725
-		$that->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1726
-		$that->loader->add_action( 'wp_enqueue_scripts', $that->context_cards_service, 'enqueue_scripts' );
1724
+		$that->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_styles');
1725
+		$that->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_scripts');
1726
+		$that->loader->add_action('wp_enqueue_scripts', $that->context_cards_service, 'enqueue_scripts');
1727 1727
 
1728 1728
 		// Registering Faq_Content_Filter service used for removing faq question and answer tags from the html.
1729
-		$that->loader->add_filter( 'the_content', $that->faq_content_filter_service, 'remove_all_faq_question_and_answer_tags' );
1729
+		$that->loader->add_filter('the_content', $that->faq_content_filter_service, 'remove_all_faq_question_and_answer_tags');
1730 1730
 		// Hook the content filter service to add entity links.
1731
-		if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1731
+		if ( ! defined('WL_DISABLE_CONTENT_FILTER') || ! WL_DISABLE_CONTENT_FILTER) {
1732 1732
 			// We run before other filters.
1733
-			$that->loader->add_filter( 'the_content', $that->content_filter_service, 'the_content', 9 );
1733
+			$that->loader->add_filter('the_content', $that->content_filter_service, 'the_content', 9);
1734 1734
 		}
1735 1735
 
1736 1736
 		// Hook the AJAX wl_timeline action to the Timeline service.
1737
-		$that->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $that->timeline_service, 'ajax_timeline' );
1737
+		$that->loader->add_action('wp_ajax_nopriv_wl_timeline', $that->timeline_service, 'ajax_timeline');
1738 1738
 
1739 1739
 		// Hook the ShareThis service.
1740
-		$that->loader->add_filter( 'the_content', $that->sharethis_service, 'the_content', 99 );
1741
-		$that->loader->add_filter( 'the_excerpt', $that->sharethis_service, 'the_excerpt', 99 );
1740
+		$that->loader->add_filter('the_content', $that->sharethis_service, 'the_content', 99);
1741
+		$that->loader->add_filter('the_excerpt', $that->sharethis_service, 'the_excerpt', 99);
1742 1742
 
1743 1743
 		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1744
-		$that->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $that->jsonld_service, 'get' );
1744
+		$that->loader->add_action('wp_ajax_nopriv_wl_jsonld', $that->jsonld_service, 'get');
1745 1745
 
1746 1746
 		// Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1747 1747
 		// in order to tweak WP's `WP_Query` to include entities in queries related
1748 1748
 		// to categories.
1749
-		$that->loader->add_action( 'pre_get_posts', $that->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1749
+		$that->loader->add_action('pre_get_posts', $that->category_taxonomy_service, 'pre_get_posts', 10, 1);
1750 1750
 
1751 1751
 		/*
1752 1752
 		 * Hook the `pre_get_posts` action to the `Wordlift_Entity_Page_Service`
1753 1753
 		 * in order to tweak WP's `WP_Query` to show event related entities in reverse
1754 1754
 		 * order of start time.
1755 1755
 		 */
1756
-		$that->loader->add_action( 'pre_get_posts', $that->entity_page_service, 'pre_get_posts', 10, 1 );
1756
+		$that->loader->add_action('pre_get_posts', $that->entity_page_service, 'pre_get_posts', 10, 1);
1757 1757
 
1758 1758
 		// This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
1759
-		$that->loader->add_action( 'save_post', $that->entity_type_adapter, 'save_post', 9, 2 );
1759
+		$that->loader->add_action('save_post', $that->entity_type_adapter, 'save_post', 9, 2);
1760 1760
 
1761 1761
 		// Analytics Script Frontend.
1762
-		if ( apply_filters( 'wl_feature__enable__analytics', true ) && Wordlift_Configuration_Service::get_instance()->is_analytics_enable() ) {
1763
-			$that->loader->add_action( 'wp_enqueue_scripts', $that->analytics_connect, 'enqueue_scripts', 10 );
1762
+		if (apply_filters('wl_feature__enable__analytics', true) && Wordlift_Configuration_Service::get_instance()->is_analytics_enable()) {
1763
+			$that->loader->add_action('wp_enqueue_scripts', $that->analytics_connect, 'enqueue_scripts', 10);
1764 1764
 		}
1765 1765
 
1766 1766
 	}
@@ -1825,7 +1825,7 @@  discard block
 block discarded – undo
1825 1825
 		 * @since 3.27.6
1826 1826
 		 */
1827 1827
 		// phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter,WordPress.WP.EnqueuedResourceParameters.MissingVersion
1828
-		wp_register_script( 'wl_enabled_blocks', false );
1828
+		wp_register_script('wl_enabled_blocks', false);
1829 1829
 
1830 1830
 		$enabled_blocks = array();
1831 1831
 
@@ -1835,11 +1835,11 @@  discard block
 block discarded – undo
1835 1835
 		 * @since 3.32.3
1836 1836
 		 */
1837 1837
 		// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
1838
-		if ( apply_filters( 'wl_feature__enable__product-navigator', true ) ) {
1838
+		if (apply_filters('wl_feature__enable__product-navigator', true)) {
1839 1839
 			$enabled_blocks[] = 'wordlift/products-navigator';
1840 1840
 		}
1841 1841
 
1842
-		if ( apply_filters( 'wl_feature__enable__blocks', true ) ) {
1842
+		if (apply_filters('wl_feature__enable__blocks', true)) {
1843 1843
 			// To intimate JS
1844 1844
 			$enabled_blocks = array_merge(
1845 1845
 				$enabled_blocks,
@@ -1855,8 +1855,8 @@  discard block
 block discarded – undo
1855 1855
 			);
1856 1856
 		}
1857 1857
 
1858
-		wp_localize_script( 'wl_enabled_blocks', 'wlEnabledBlocks', $enabled_blocks );
1859
-		wp_enqueue_script( 'wl_enabled_blocks' );
1858
+		wp_localize_script('wl_enabled_blocks', 'wlEnabledBlocks', $enabled_blocks);
1859
+		wp_enqueue_script('wl_enabled_blocks');
1860 1860
 	}
1861 1861
 
1862 1862
 	/**
@@ -1865,13 +1865,13 @@  discard block
 block discarded – undo
1865 1865
 	public function register_screens() {
1866 1866
 		// Hook the menu to the Download Your Data page.
1867 1867
 		// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
1868
-		if ( apply_filters( 'wl_feature__enable__settings-download', true ) ) {
1869
-			Assertions::is_set( $this->download_your_data_page, "`download_your_data_page` can't be null" );
1870
-			add_action( 'admin_menu', array( $this->download_your_data_page, 'admin_menu' ), 100, 0 );
1868
+		if (apply_filters('wl_feature__enable__settings-download', true)) {
1869
+			Assertions::is_set($this->download_your_data_page, "`download_your_data_page` can't be null");
1870
+			add_action('admin_menu', array($this->download_your_data_page, 'admin_menu'), 100, 0);
1871 1871
 		}
1872 1872
 
1873
-		Assertions::is_set( $this->entity_type_settings_admin_page, "`entity_type_settings_admin_page` can't be null" );
1874
-		add_action( 'admin_menu', array( $this->entity_type_settings_admin_page, 'admin_menu' ), 100, 0 );
1873
+		Assertions::is_set($this->entity_type_settings_admin_page, "`entity_type_settings_admin_page` can't be null");
1874
+		add_action('admin_menu', array($this->entity_type_settings_admin_page, 'admin_menu'), 100, 0);
1875 1875
 
1876 1876
 	}
1877 1877
 
Please login to merge, or discard this patch.