Completed
Push — add/post-images-package ( 2049e1...51b896 )
by Jeremy
57:58 queued 46:38
created
projects/plugins/jetpack/modules/sharedaddy/sharing-sources.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -389,6 +389,9 @@  discard block
 block discarded – undo
389 389
 		do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) );
390 390
 	}
391 391
 
392
+	/**
393
+	 * @param string $name
394
+	 */
392 395
 	public function js_dialog( $name, $params = array() ) {
393 396
 		if ( true !== $this->open_link_in_new ) {
394 397
 			return;
@@ -1090,6 +1093,9 @@  discard block
 block discarded – undo
1090 1093
 	public $icon = '\f204';
1091 1094
 	private $share_type = 'default';
1092 1095
 
1096
+	/**
1097
+	 * @param string $id
1098
+	 */
1093 1099
 	public function __construct( $id, array $settings ) {
1094 1100
 		parent::__construct( $id, $settings );
1095 1101
 
@@ -1237,6 +1243,10 @@  discard block
 block discarded – undo
1237 1243
 class Share_Print extends Sharing_Source {
1238 1244
 	public $shortname = 'print';
1239 1245
 	public $icon = '\f469';
1246
+
1247
+	/**
1248
+	 * @param string $id
1249
+	 */
1240 1250
 	public function __construct( $id, array $settings ) {
1241 1251
 		parent::__construct( $id, $settings );
1242 1252
 
@@ -1636,6 +1646,9 @@  discard block
 block discarded – undo
1636 1646
 		return __( 'Pinterest', 'jetpack' );
1637 1647
 	}
1638 1648
 
1649
+	/**
1650
+	 * @return string
1651
+	 */
1639 1652
 	public function get_image( $post ) {
1640 1653
 		if ( class_exists( 'Post_Images' ) ) {
1641 1654
 			$image = Post_Images::get_image( $post->ID, array( 'fallback_to_avatars' => true ) );
@@ -1806,6 +1819,9 @@  discard block
 block discarded – undo
1806 1819
 	public $shortname = 'pocket';
1807 1820
 	public $icon = '\f224';
1808 1821
 
1822
+	/**
1823
+	 * @param string $id
1824
+	 */
1809 1825
 	public function __construct( $id, array $settings ) {
1810 1826
 		parent::__construct( $id, $settings );
1811 1827
 
@@ -1934,6 +1950,9 @@  discard block
 block discarded – undo
1934 1950
 class Jetpack_Share_WhatsApp extends Sharing_Source {
1935 1951
 	public $shortname = 'jetpack-whatsapp';
1936 1952
 
1953
+	/**
1954
+	 * @param string $id
1955
+	 */
1937 1956
 	public function __construct( $id, array $settings ) {
1938 1957
 		parent::__construct( $id, $settings );
1939 1958
 	}
Please login to merge, or discard this patch.