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