Completed
Push — add/post-images-package ( ff119f )
by Jeremy
12:24
created
projects/plugins/jetpack/class.jetpack-post-images.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@  discard block
 block discarded – undo
17 17
 	 * If a slideshow is embedded within a post, then parse out the images involved and return them
18 18
 	 *
19 19
 	 * @deprecated use Automattic\Jetpack\Post_Images::from_slideshow
20
+	 * @param integer $post_id
20 21
 	 */
21 22
 	static function from_slideshow( $post_id, $width = 200, $height = 200 ) {
22 23
 		_deprecated_function( __METHOD__, 'jetpack-9.7.0', 'Automattic\Jetpack\Post_Images::from_slideshow' );
@@ -101,6 +102,7 @@  discard block
 block discarded – undo
101 102
 	 * If a gallery is detected, then get all the images from it.
102 103
 	 *
103 104
 	 * @deprecated use Automattic\Jetpack\Post_Images::from_gallery
105
+	 * @param integer $post_id
104 106
 	 */
105 107
 	static function from_gallery( $post_id ) {
106 108
 		_deprecated_function( __METHOD__, 'jetpack-9.7.0', 'Automattic\Jetpack\Post_Images::from_gallery' );
@@ -177,6 +179,7 @@  discard block
 block discarded – undo
177 179
 	 * their dimensions are at or above a required minimum.
178 180
 	 *
179 181
 	 * @deprecated use Automattic\Jetpack\Post_Images::from_attachment
182
+	 * @param integer $post_id
180 183
 	 */
181 184
 	static function from_attachment( $post_id, $width = 200, $height = 200 ) {
182 185
 		_deprecated_function( __METHOD__, 'jetpack-9.7.0', 'Automattic\Jetpack\Post_Images::from_attachment' );
@@ -730,7 +733,6 @@  discard block
 block discarded – undo
730 733
 	 * @deprecated use Automattic\Jetpack\Post_Images::fit_image_url
731 734
 	 *
732 735
 	 * @param  string $src
733
-	 * @param  int    $dimension
734 736
 	 * @return string            Transformed image URL
735 737
 	 */
736 738
 	static function fit_image_url( $src, $width, $height ) {
Please login to merge, or discard this patch.
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.