@@ -232,6 +232,9 @@ |
||
232 | 232 | } |
233 | 233 | } |
234 | 234 | |
235 | + /** |
|
236 | + * @param string $url |
|
237 | + */ |
|
235 | 238 | public function attach_external_image2( $url = null, $post_data = array() ) { |
236 | 239 | if ( ! $url ) { return new WP_Error( 'missing', 'Need a valid URL' ); } |
237 | 240 |
@@ -214,6 +214,7 @@ |
||
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(); |
@@ -685,6 +685,7 @@ discard block |
||
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 |
||
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 ] ) ) { |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | * Formats the row for output on the screen. |
394 | 394 | * |
395 | 395 | * @param boolean $row the current row to format. |
396 | - * @return void |
|
396 | + * @return string|null |
|
397 | 397 | */ |
398 | 398 | public function format_row( $row = false ) { |
399 | 399 | if ( false !== $row ) { |
@@ -652,6 +652,7 @@ discard block |
||
652 | 652 | |
653 | 653 | /** |
654 | 654 | * Set the team memberon each item. |
655 | + * @param boolean $team_members |
|
655 | 656 | */ |
656 | 657 | public function set_team_member( $id, $team_members ) { |
657 | 658 | delete_post_meta( $id, 'team_to_' . $this->tab_slug ); |
@@ -663,6 +664,7 @@ discard block |
||
663 | 664 | |
664 | 665 | /** |
665 | 666 | * Set the safari brand |
667 | + * @param boolean $safari_brands |
|
666 | 668 | */ |
667 | 669 | public function set_safari_brands( $id, $safari_brands ) { |
668 | 670 | foreach ( $safari_brands as $safari_brand ) { |
@@ -924,7 +924,6 @@ discard block |
||
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 |
||
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 ) { |
@@ -799,7 +799,7 @@ discard block |
||
799 | 799 | * @param boolean $name |
800 | 800 | * @param boolean $taxonomy |
801 | 801 | * @param boolean $parent |
802 | - * @return void |
|
802 | + * @return boolean |
|
803 | 803 | */ |
804 | 804 | public function set_term( $id = false, $name = false, $taxonomy = false, $parent = false ) { |
805 | 805 | // @codingStandardsIgnoreLine |
@@ -1106,6 +1106,10 @@ discard block |
||
1106 | 1106 | return false; |
1107 | 1107 | } |
1108 | 1108 | |
1109 | + /** |
|
1110 | + * @param string $url |
|
1111 | + * @param string $thumb |
|
1112 | + */ |
|
1109 | 1113 | public function attach_external_image2( $url = null, $post_id = null, $thumb = null, $filename = null, $post_data = array() ) { |
1110 | 1114 | if ( ! $url || ! $post_id ) { return new WP_Error( 'missing', 'Need a valid URL and post ID...' ); } |
1111 | 1115 | |
@@ -1216,6 +1220,7 @@ discard block |
||
1216 | 1220 | |
1217 | 1221 | /** |
1218 | 1222 | * Does a multine search |
1223 | + * @param string $haystack |
|
1219 | 1224 | */ |
1220 | 1225 | public function multineedle_stripos( $haystack, $needles, $offset = 0 ) { |
1221 | 1226 | $found = false; |
@@ -1299,6 +1304,9 @@ discard block |
||
1299 | 1304 | } |
1300 | 1305 | } |
1301 | 1306 | |
1307 | + /** |
|
1308 | + * @param string $array |
|
1309 | + */ |
|
1302 | 1310 | public function shuffle_assoc( &$array ) { |
1303 | 1311 | $new = array(); |
1304 | 1312 | $keys = array_keys( $array ); |