Code Duplication    Length = 11-11 lines in 2 locations

modules/sharedaddy/sharing-sources.php 2 locations

@@ 960-970 (lines=11) @@
957
	public $icon = '\f204';
958
	private $share_type = 'default';
959
960
	public function __construct( $id, array $settings ) {
961
		parent::__construct( $id, $settings );
962
963
		if ( isset( $settings['share_type'] ) ) {
964
			$this->share_type = $settings['share_type'];
965
		}
966
967
		if ( 'official' == $this->button_style ) {
968
			$this->smart = true;
969
		} else {
970
			$this->smart = false;
971
		}
972
	}
973
@@ 1715-1725 (lines=11) @@
1712
	public $icon = '\f220';
1713
	private $share_type = 'default';
1714
1715
	public function __construct( $id, array $settings ) {
1716
		parent::__construct( $id, $settings );
1717
1718
		if ( isset( $settings['share_type'] ) ) {
1719
			$this->share_type = $settings['share_type'];
1720
		}
1721
1722
		if ( 'official' == $this->button_style ) {
1723
			$this->smart = true;
1724
		} else {
1725
			$this->smart = false;
1726
		}
1727
1728
	}