Code Duplication    Length = 11-11 lines in 2 locations

modules/sharedaddy/sharing-sources.php 2 locations

@@ 870-880 (lines=11) @@
867
	public $icon = '\f204';
868
	private $share_type = 'default';
869
870
	public function __construct( $id, array $settings ) {
871
		parent::__construct( $id, $settings );
872
873
		if ( isset( $settings['share_type'] ) ) {
874
			$this->share_type = $settings['share_type'];
875
		}
876
877
		if ( 'official' == $this->button_style ) {
878
			$this->smart = true;
879
		} else {
880
			$this->smart = false;
881
		}
882
	}
883
@@ 1711-1721 (lines=11) @@
1708
	public $icon = '\f220';
1709
	private $share_type = 'default';
1710
1711
	public function __construct( $id, array $settings ) {
1712
		parent::__construct( $id, $settings );
1713
1714
		if ( isset( $settings['share_type'] ) ) {
1715
			$this->share_type = $settings['share_type'];
1716
		}
1717
1718
		if ( 'official' == $this->button_style ) {
1719
			$this->smart = true;
1720
		} else {
1721
			$this->smart = false;
1722
		}
1723
1724
	}