Code Duplication    Length = 8-9 lines in 9 locations

modules/sharedaddy/sharing-sources.php 9 locations

@@ 489-497 (lines=9) @@
486
class Share_Email extends Sharing_Source {
487
	public $shortname = 'email';
488
	public $icon = '\f410';
489
	public function __construct( $id, array $settings ) {
490
		parent::__construct( $id, $settings );
491
492
		if ( 'official' == $this->button_style ) {
493
			$this->smart = true;
494
		} else {
495
			$this->smart = false;
496
		}
497
	}
498
499
	public function get_name() {
500
		return _x( 'Email', 'as sharing source', 'jetpack' );
@@ 685-693 (lines=9) @@
682
	// 'https://dev.twitter.com/rest/reference/get/help/configuration' ( 2015/02/06 ) short_url_length is 22, short_url_length_https is 23
683
	public $short_url_length = 24;
684
685
	public function __construct( $id, array $settings ) {
686
		parent::__construct( $id, $settings );
687
688
		if ( 'official' == $this->button_style ) {
689
			$this->smart = true;
690
		} else {
691
			$this->smart = false;
692
		}
693
	}
694
695
	public function get_name() {
696
		return __( 'Twitter', 'jetpack' );
@@ 899-907 (lines=9) @@
896
class Share_Reddit extends Sharing_Source {
897
	public $shortname = 'reddit';
898
	public $icon = '\f222';
899
	public function __construct( $id, array $settings ) {
900
		parent::__construct( $id, $settings );
901
902
		if ( 'official' == $this->button_style ) {
903
			$this->smart = true;
904
		} else {
905
			$this->smart = false;
906
		}
907
	}
908
909
	public function get_name() {
910
		return __( 'Reddit', 'jetpack' );
@@ 949-957 (lines=9) @@
946
class Share_LinkedIn extends Sharing_Source {
947
	public $shortname = 'linkedin';
948
	public $icon = '\f207';
949
	public function __construct( $id, array $settings ) {
950
		parent::__construct( $id, $settings );
951
952
		if ( 'official' == $this->button_style ) {
953
			$this->smart = true;
954
		} else {
955
			$this->smart = false;
956
		}
957
	}
958
959
	public function get_name() {
960
		return __( 'LinkedIn', 'jetpack' );
@@ 1174-1182 (lines=9) @@
1171
class Share_Print extends Sharing_Source {
1172
	public $shortname = 'print';
1173
	public $icon = '\f469';
1174
	public function __construct( $id, array $settings ) {
1175
		parent::__construct( $id, $settings );
1176
1177
		if ( 'official' == $this->button_style ) {
1178
			$this->smart = true;
1179
		} else {
1180
			$this->smart = false;
1181
		}
1182
	}
1183
1184
	public function get_name() {
1185
		return __( 'Print', 'jetpack' );
@@ 1209-1217 (lines=9) @@
1206
class Share_PressThis extends Sharing_Source {
1207
	public $shortname = 'pressthis';
1208
	public $icon = '\f205';
1209
	public function __construct( $id, array $settings ) {
1210
		parent::__construct( $id, $settings );
1211
1212
		if ( 'official' == $this->button_style ) {
1213
			$this->smart = true;
1214
		} else {
1215
			$this->smart = false;
1216
		}
1217
	}
1218
1219
	public function get_name() {
1220
		return __( 'Press This', 'jetpack' );
@@ 1490-1497 (lines=8) @@
1487
class Share_Tumblr extends Sharing_Source {
1488
	public $shortname = 'tumblr';
1489
	public $icon = '\f214';
1490
	public function __construct( $id, array $settings ) {
1491
		parent::__construct( $id, $settings );
1492
		if ( 'official' == $this->button_style ) {
1493
			$this->smart = true;
1494
		} else {
1495
			$this->smart = false;
1496
		}
1497
	}
1498
1499
	public function get_name() {
1500
		return __( 'Tumblr', 'jetpack' );
@@ 1560-1567 (lines=8) @@
1557
	public $shortname = 'pinterest';
1558
	public $icon = '\f209';
1559
1560
	public function __construct( $id, array $settings ) {
1561
		parent::__construct( $id, $settings );
1562
		if ( 'official' == $this->button_style ) {
1563
			$this->smart = true;
1564
		} else {
1565
			$this->smart = false;
1566
		}
1567
	}
1568
1569
	public function get_name() {
1570
		return __( 'Pinterest', 'jetpack' );
@@ 1712-1720 (lines=9) @@
1709
	public $shortname = 'pocket';
1710
	public $icon = '\f224';
1711
1712
	public function __construct( $id, array $settings ) {
1713
		parent::__construct( $id, $settings );
1714
1715
		if ( 'official' == $this->button_style ) {
1716
			$this->smart = true;
1717
		} else {
1718
			$this->smart = false;
1719
		}
1720
	}
1721
1722
	public function get_name() {
1723
		return __( 'Pocket', 'jetpack' );