Code Duplication    Length = 8-9 lines in 9 locations

modules/sharedaddy/sharing-sources.php 9 locations

@@ 504-512 (lines=9) @@
501
class Share_Email extends Sharing_Source {
502
	public $shortname = 'email';
503
	public $icon = '\f410';
504
	public function __construct( $id, array $settings ) {
505
		parent::__construct( $id, $settings );
506
507
		if ( 'official' == $this->button_style ) {
508
			$this->smart = true;
509
		} else {
510
			$this->smart = false;
511
		}
512
	}
513
514
	public function get_name() {
515
		return _x( 'Email', 'as sharing source', 'jetpack' );
@@ 700-708 (lines=9) @@
697
	// 'https://dev.twitter.com/rest/reference/get/help/configuration' ( 2015/02/06 ) short_url_length is 22, short_url_length_https is 23
698
	public $short_url_length = 24;
699
700
	public function __construct( $id, array $settings ) {
701
		parent::__construct( $id, $settings );
702
703
		if ( 'official' == $this->button_style ) {
704
			$this->smart = true;
705
		} else {
706
			$this->smart = false;
707
		}
708
	}
709
710
	public function get_name() {
711
		return __( 'Twitter', 'jetpack' );
@@ 914-922 (lines=9) @@
911
class Share_Reddit extends Sharing_Source {
912
	public $shortname = 'reddit';
913
	public $icon = '\f222';
914
	public function __construct( $id, array $settings ) {
915
		parent::__construct( $id, $settings );
916
917
		if ( 'official' == $this->button_style ) {
918
			$this->smart = true;
919
		} else {
920
			$this->smart = false;
921
		}
922
	}
923
924
	public function get_name() {
925
		return __( 'Reddit', 'jetpack' );
@@ 964-972 (lines=9) @@
961
class Share_LinkedIn extends Sharing_Source {
962
	public $shortname = 'linkedin';
963
	public $icon = '\f207';
964
	public function __construct( $id, array $settings ) {
965
		parent::__construct( $id, $settings );
966
967
		if ( 'official' == $this->button_style ) {
968
			$this->smart = true;
969
		} else {
970
			$this->smart = false;
971
		}
972
	}
973
974
	public function get_name() {
975
		return __( 'LinkedIn', 'jetpack' );
@@ 1189-1197 (lines=9) @@
1186
class Share_Print extends Sharing_Source {
1187
	public $shortname = 'print';
1188
	public $icon = '\f469';
1189
	public function __construct( $id, array $settings ) {
1190
		parent::__construct( $id, $settings );
1191
1192
		if ( 'official' == $this->button_style ) {
1193
			$this->smart = true;
1194
		} else {
1195
			$this->smart = false;
1196
		}
1197
	}
1198
1199
	public function get_name() {
1200
		return __( 'Print', 'jetpack' );
@@ 1224-1232 (lines=9) @@
1221
class Share_PressThis extends Sharing_Source {
1222
	public $shortname = 'pressthis';
1223
	public $icon = '\f205';
1224
	public function __construct( $id, array $settings ) {
1225
		parent::__construct( $id, $settings );
1226
1227
		if ( 'official' == $this->button_style ) {
1228
			$this->smart = true;
1229
		} else {
1230
			$this->smart = false;
1231
		}
1232
	}
1233
1234
	public function get_name() {
1235
		return __( 'Press This', 'jetpack' );
@@ 1505-1512 (lines=8) @@
1502
class Share_Tumblr extends Sharing_Source {
1503
	public $shortname = 'tumblr';
1504
	public $icon = '\f214';
1505
	public function __construct( $id, array $settings ) {
1506
		parent::__construct( $id, $settings );
1507
		if ( 'official' == $this->button_style ) {
1508
			$this->smart = true;
1509
		} else {
1510
			$this->smart = false;
1511
		}
1512
	}
1513
1514
	public function get_name() {
1515
		return __( 'Tumblr', 'jetpack' );
@@ 1575-1582 (lines=8) @@
1572
	public $shortname = 'pinterest';
1573
	public $icon = '\f209';
1574
1575
	public function __construct( $id, array $settings ) {
1576
		parent::__construct( $id, $settings );
1577
		if ( 'official' == $this->button_style ) {
1578
			$this->smart = true;
1579
		} else {
1580
			$this->smart = false;
1581
		}
1582
	}
1583
1584
	public function get_name() {
1585
		return __( 'Pinterest', 'jetpack' );
@@ 1727-1735 (lines=9) @@
1724
	public $shortname = 'pocket';
1725
	public $icon = '\f224';
1726
1727
	public function __construct( $id, array $settings ) {
1728
		parent::__construct( $id, $settings );
1729
1730
		if ( 'official' == $this->button_style ) {
1731
			$this->smart = true;
1732
		} else {
1733
			$this->smart = false;
1734
		}
1735
	}
1736
1737
	public function get_name() {
1738
		return __( 'Pocket', 'jetpack' );