Code Duplication    Length = 10-11 lines in 2 locations

src/wordlift/analysis/response/class-analysis-response-ops-factory.php 1 location

@@ 49-59 (lines=11) @@
46
	 *
47
	 * @since 3.25.1
48
	 */
49
	public function __construct( $entity_uri_service, $entity_service, $entity_type_service, $post_image_storage, $entity_helper ) {
50
51
		$this->entity_uri_service  = $entity_uri_service;
52
		$this->entity_service      = $entity_service;
53
		$this->entity_type_service = $entity_type_service;
54
		$this->post_image_storage  = $post_image_storage;
55
		$this->entity_helper       = $entity_helper;
56
57
		self::$instance = $this;
58
59
	}
60
61
	public static function get_instance() {
62

src/wordlift/analysis/response/class-analysis-response-ops.php 1 location

@@ 63-72 (lines=10) @@
60
	 *
61
	 * @since 3.21.5
62
	 */
63
	public function __construct( $entity_uri_service, $entity_service, $entity_type_service, $post_image_storage, $entity_helper, $json ) {
64
65
		$this->json                = $json;
66
		$this->entity_uri_service  = $entity_uri_service;
67
		$this->entity_service      = $entity_service;
68
		$this->entity_type_service = $entity_type_service;
69
		$this->post_image_storage  = $post_image_storage;
70
		$this->entity_helper       = $entity_helper;
71
72
	}
73
74
	/**
75
	 * Switches remote entities, i.e. entities with id outside the local dataset, to local entities.