Completed
Push — master ( 98fd09...2b6f65 )
by Warwick
02:54
created
classes/class-lsx-wetu-importer-connect-accommodation.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -214,6 +214,7 @@
 block discarded – undo
214 214
 
215 215
 	/**
216 216
 	 * format the array
217
+	 * @param string $key
217 218
 	 */
218 219
 	public function format_array( $array, $key ) {
219 220
 		$new_array = array();
Please login to merge, or discard this patch.
classes/class-lsx-wetu-importer-destination.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -685,6 +685,7 @@  discard block
 block discarded – undo
685 685
 
686 686
 	/**
687 687
 	 * Set the team memberon each item.
688
+	 * @param boolean $team_members
688 689
 	 */
689 690
 	public function set_team_member( $id, $team_members ) {
690 691
 		delete_post_meta( $id, 'team_to_' . $this->tab_slug );
@@ -696,6 +697,7 @@  discard block
 block discarded – undo
696 697
 
697 698
 	/**
698 699
 	 * Saves the room data
700
+	 * @param string $meta_key
699 701
 	 */
700 702
 	public function set_travel_info( $data, $id, $meta_key, $importable = array( 'none' ) ) {
701 703
 		if ( ! empty( $data[0]['travel_information'] ) && isset( $data[0]['travel_information'][ $meta_key ] ) ) {
Please login to merge, or discard this patch.
classes/class-lsx-wetu-importer-tours.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -924,7 +924,6 @@  discard block
 block discarded – undo
924 924
 	 * Takes the WETU tags and sets the Travel Styles.
925 925
 	 *
926 926
 	 * @param string $id
927
-	 * @param array $travel_styles
928 927
 	 * @return void
929 928
 	 */
930 929
 	public function set_travel_styles( $id, $data ) {
@@ -997,6 +996,7 @@  discard block
 block discarded – undo
997 996
 	 *
998 997
 	 * @param $day array
999 998
 	 * @param $id string
999
+	 * @param integer $leg_counter
1000 1000
 	 * @return boolean / string
1001 1001
 	 */
1002 1002
 	public function set_destination( $day, $id, $leg_counter ) {
Please login to merge, or discard this patch.
classes/class-lsx-wetu-importer-banner-integration.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -229,6 +229,9 @@
 block discarded – undo
229 229
 		}
230 230
 	}
231 231
 
232
+	/**
233
+	 * @param string $url
234
+	 */
232 235
 	public function attach_external_image2( $url = null, $post_data = array(), $post_id = '' ) {
233 236
 		if ( ! $url ) { return new WP_Error( 'missing', 'Need a valid URL' ); }
234 237
 		$att_id = false;
Please login to merge, or discard this patch.
classes/class-lsx-wetu-importer.php 1 patch
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
 	 * @param boolean $name
794 794
 	 * @param boolean $taxonomy
795 795
 	 * @param boolean $parent
796
-	 * @return void
796
+	 * @return boolean
797 797
 	 */
798 798
 	public function set_term( $id = false, $name = false, $taxonomy = false, $parent = false ) {
799 799
 		$term = term_exists( $name, $taxonomy );
@@ -1098,6 +1098,10 @@  discard block
 block discarded – undo
1098 1098
 		return 	false;
1099 1099
 	}
1100 1100
 
1101
+	/**
1102
+	 * @param string $url
1103
+	 * @param string $thumb
1104
+	 */
1101 1105
 	public function attach_external_image2( $url = null, $post_id = null, $thumb = null, $filename = null, $post_data = array() ) {
1102 1106
 		if ( ! $url || ! $post_id ) { return new WP_Error( 'missing', 'Need a valid URL and post ID...' ); }
1103 1107
 		$att_id = false;
@@ -1203,6 +1207,7 @@  discard block
 block discarded – undo
1203 1207
 
1204 1208
 	/**
1205 1209
 	 * Does a multine search
1210
+	 * @param string $haystack
1206 1211
 	 */
1207 1212
 	public function multineedle_stripos( $haystack, $needles, $offset = 0 ) {
1208 1213
 		$found = false;
@@ -1286,6 +1291,9 @@  discard block
 block discarded – undo
1286 1291
 		}
1287 1292
 	}
1288 1293
 
1294
+	/**
1295
+	 * @param string $array
1296
+	 */
1289 1297
 	public function shuffle_assoc( &$array ) {
1290 1298
 		$new = array();
1291 1299
 		$keys = array_keys( $array );
Please login to merge, or discard this patch.
classes/class-lsx-wetu-importer-accommodation.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 	 * Formats the row for output on the screen.
383 383
 	 *
384 384
 	 * @param boolean $row the current row to format.
385
-	 * @return void
385
+	 * @return string|null
386 386
 	 */
387 387
 	public function format_row( $row = false, $row_key = '' ) {
388 388
 		if ( false !== $row ) {
@@ -633,6 +633,7 @@  discard block
 block discarded – undo
633 633
 
634 634
 	/**
635 635
 	 * Set the team memberon each item.
636
+	 * @param boolean $team_members
636 637
 	 */
637 638
 	public function set_team_member( $id, $team_members ) {
638 639
 		delete_post_meta( $id, 'team_to_' . $this->tab_slug );
@@ -644,6 +645,7 @@  discard block
 block discarded – undo
644 645
 
645 646
 	/**
646 647
 	 * Set the safari brand
648
+	 * @param boolean $safari_brands
647 649
 	 */
648 650
 	public function set_safari_brands( $id, $safari_brands ) {
649 651
 		foreach ( $safari_brands as $safari_brand ) {
Please login to merge, or discard this patch.