Completed
Pull Request — feature/reorg (#18320)
by
unknown
196:40 queued 186:31
created
projects/plugins/beta/jetpack-beta-admin.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -100,6 +100,9 @@  discard block
 block discarded – undo
100 100
 		exit();
101 101
 	}
102 102
 
103
+	/**
104
+	 * @param string $option
105
+	 */
103 106
 	static function is_toggle_action( $option ) {
104 107
 		return (
105 108
 			isset( $_GET['_nonce'] ) &&
@@ -304,6 +307,9 @@  discard block
 block discarded – undo
304 307
 		<?php
305 308
 	}
306 309
 
310
+	/**
311
+	 * @param string $header
312
+	 */
307 313
 	static function show_tag( $header, $tag, $url = null, $section = null, $is_last = false ) {
308 314
 		$is_compact = $is_last ? '' : 'is-compact';
309 315
 		if ( isset( $url ) ) {
@@ -520,6 +526,10 @@  discard block
 block discarded – undo
520 526
 		self::show_toggle( __( 'Email Notifications', 'jetpack-beta' ), 'email_notifications', $email_notification );
521 527
 	}
522 528
 
529
+	/**
530
+	 * @param string $option
531
+	 * @param boolean $value
532
+	 */
523 533
 	static function show_toggle( $name, $option, $value ) {
524 534
 		$query = array(
525 535
 			'page'          => 'jetpack-beta',
Please login to merge, or discard this patch.
projects/plugins/beta/jetpack-beta.php 1 patch
Doc Comments   +18 added lines, -1 removed lines patch added patch discarded remove patch
@@ -543,6 +543,9 @@  discard block
 block discarded – undo
543 543
 		return self::get_jetpack_plugin_version();
544 544
 	}
545 545
 
546
+	/**
547
+	 * @return string
548
+	 */
546 549
 	static function get_new_jetpack_version( $is_dev_version = false ) {
547 550
 		$manifest = self::get_beta_manifest();
548 551
 		if ( $is_dev_version ) {
@@ -645,6 +648,9 @@  discard block
 block discarded – undo
645 648
 		return self::get_jetpack_plugin_info( JETPACK_DEV_PLUGIN_FILE );
646 649
 	}
647 650
 
651
+	/**
652
+	 * @param string $plugin_file
653
+	 */
648 654
 	static function get_jetpack_plugin_info( $plugin_file = null ) {
649 655
 
650 656
 		if ( is_null( $plugin_file ) ) {
@@ -678,6 +684,10 @@  discard block
 block discarded – undo
678 684
 		return self::get_remote_data( JETPACK_ORG_API_URL, 'org_data' );
679 685
 	}
680 686
 
687
+	/**
688
+	 * @param string $url
689
+	 * @param string $transient
690
+	 */
681 691
 	static function get_remote_data( $url, $transient, $bypass = false) {
682 692
 		$prefix = 'jetpack_beta_';
683 693
 		$cache  = get_site_transient( $prefix . $transient );
@@ -800,6 +810,9 @@  discard block
 block discarded – undo
800 810
 		return $current_manifest_data;
801 811
 	}
802 812
 
813
+	/**
814
+	 * @param string $plugin_folder
815
+	 */
803 816
 	static function proceed_to_install_and_activate( $url, $plugin_folder = JETPACK_DEV_PLUGIN_SLUG, $section ) {
804 817
 		self::proceed_to_install( $url, $plugin_folder, $section );
805 818
 
@@ -854,6 +867,10 @@  discard block
 block discarded – undo
854 867
 		return false;
855 868
 	}
856 869
 
870
+	/**
871
+	 * @param string $current_plugin
872
+	 * @param string $replace_with_plugin
873
+	 */
857 874
 	static function replace_active_plugin( $current_plugin, $replace_with_plugin = null, $force_activate = false ) {
858 875
 		if ( self::is_network_active() ) {
859 876
 			$new_active_plugins = array();
@@ -1178,7 +1195,7 @@  discard block
 block discarded – undo
1178 1195
 	/**
1179 1196
 	 * Checks if a dir is empty
1180 1197
 	 *
1181
-	 * @param [type] $dir The absolute directory path to check
1198
+	 * @param string $dir The absolute directory path to check
1182 1199
 	 * @return boolean
1183 1200
 	 */
1184 1201
 	static function is_dir_empty( $dir ) {
Please login to merge, or discard this patch.