Code Duplication    Length = 7-8 lines in 2 locations

src/Video.php 1 location

@@ 22-29 (lines=8) @@
19
	protected $theme;
20
	protected $utility;
21
22
	public function __construct( Image $image, Oembed $oembed, PostMeta $postmeta, Theme $theme, Utility $utility )
23
	{
24
		$this->image    = $image;
25
		$this->oembed   = $oembed;
26
		$this->postmeta = $postmeta;
27
		$this->theme    = $theme;
28
		$this->utility  = $utility;
29
	}
30
31
	public function get( $args = [] )
32
	{

src/Gallery.php 1 location

@@ 22-28 (lines=7) @@
19
	protected $theme;
20
	protected $utility;
21
22
	public function __construct( Image $image, PostMeta $postmeta, Theme $theme, Utility $utility )
23
	{
24
		$this->image    = $image;
25
		$this->postmeta = $postmeta;
26
		$this->theme    = $theme;
27
		$this->utility  = $utility;
28
	}
29
30
	/**
31
	 * @return WP_Query