Code Duplication    Length = 7-8 lines in 10 locations

modules/sharedaddy/sharing-sources.php 10 locations

@@ 374-381 (lines=8) @@
371
class Share_Email extends Sharing_Source {
372
	public $shortname = 'email';
373
	public $genericon = '\f410';
374
	public function __construct( $id, array $settings ) {
375
		parent::__construct( $id, $settings );
376
377
		if ( 'official' == $this->button_style ) {
378
			$this->smart = true;
379
		} else { 
380
			$this->smart = false;
381
		}
382
	}
383
384
	public function get_name() {
@@ 561-568 (lines=8) @@
558
	// 'https://dev.twitter.com/rest/reference/get/help/configuration' ( 2015/02/06 ) short_url_length is 22, short_url_length_https is 23
559
	public $short_url_length = 24;
560
561
	public function __construct( $id, array $settings ) {
562
		parent::__construct( $id, $settings );
563
564
		if ( 'official' == $this->button_style ) {
565
			$this->smart = true;
566
		} else { 
567
			$this->smart = false;
568
		}
569
	}
570
571
	public function get_name() {
@@ 756-763 (lines=8) @@
753
class Share_Reddit extends Sharing_Source {
754
	public $shortname = 'reddit';
755
	public $genericon = '\f222';
756
	public function __construct( $id, array $settings ) {
757
		parent::__construct( $id, $settings );
758
759
		if ( 'official' == $this->button_style ) {
760
			$this->smart = true;
761
		} else { 
762
			$this->smart = false;
763
		}
764
	}
765
766
	public function get_name() {
@@ 793-800 (lines=8) @@
790
class Share_LinkedIn extends Sharing_Source {
791
	public $shortname = 'linkedin';
792
	public $genericon = '\f207';
793
	public function __construct( $id, array $settings ) {
794
		parent::__construct( $id, $settings );
795
796
		if ( 'official' == $this->button_style ) {
797
			$this->smart = true;
798
		} else { 
799
			$this->smart = false;
800
		}
801
	}
802
803
	public function get_name() {
@@ 1004-1011 (lines=8) @@
1001
class Share_Print extends Sharing_Source {
1002
	public $shortname = 'print';
1003
	public $genericon = '\f469';
1004
	public function __construct( $id, array $settings ) {
1005
		parent::__construct( $id, $settings );
1006
1007
		if ( 'official' == $this->button_style ) {
1008
			$this->smart = true;
1009
		} else { 
1010
			$this->smart = false;
1011
		}
1012
	}
1013
1014
	public function get_name() {
@@ 1026-1033 (lines=8) @@
1023
class Share_PressThis extends Sharing_Source {
1024
	public $shortname = 'pressthis';
1025
	public $genericon = '\f205';
1026
	public function __construct( $id, array $settings ) {
1027
		parent::__construct( $id, $settings );
1028
1029
		if ( 'official' == $this->button_style ) {
1030
			$this->smart = true;
1031
		} else { 
1032
			$this->smart = false;
1033
		}
1034
	}
1035
1036
	public function get_name() {
@@ 1092-1099 (lines=8) @@
1089
	public $genericon = '\f218';
1090
	private $state = false;
1091
1092
	public function __construct( $id, array $settings ) {
1093
		parent::__construct( $id, $settings );
1094
1095
		if ( 'official' == $this->button_style ) {
1096
			$this->smart = true;
1097
		} else { 
1098
			$this->smart = false;
1099
		}
1100
	}
1101
1102
	public function get_name() {
@@ 1391-1397 (lines=7) @@
1388
class Share_Tumblr extends Sharing_Source {
1389
	public $shortname = 'tumblr';
1390
	public $genericon = '\f214';
1391
	public function __construct( $id, array $settings ) {
1392
		parent::__construct( $id, $settings );
1393
		if ( 'official' == $this->button_style ) {
1394
			$this->smart = true;
1395
		} else { 
1396
			$this->smart = false;
1397
		}
1398
	}
1399
1400
	public function get_name() {
@@ 1440-1446 (lines=7) @@
1437
	public $shortname = 'pinterest';
1438
	public $genericon = '\f209';
1439
1440
	public function __construct( $id, array $settings ) {
1441
		parent::__construct( $id, $settings );
1442
		if ( 'official' == $this->button_style ) {
1443
			$this->smart = true;
1444
		} else { 
1445
			$this->smart = false;
1446
		}
1447
	}
1448
1449
	public function get_name() {
@@ 1592-1599 (lines=8) @@
1589
	public $shortname = 'pocket';
1590
	public $genericon = '\f224';
1591
1592
	public function __construct( $id, array $settings ) {
1593
		parent::__construct( $id, $settings );
1594
1595
		if ( 'official' == $this->button_style ) {
1596
			$this->smart = true;
1597
		} else { 
1598
			$this->smart = false;
1599
		}
1600
	}
1601
1602
	public function get_name() {