@@ -786,6 +786,9 @@ |
||
| 786 | 786 | $this->options_save_other( 'google_plus' ); |
| 787 | 787 | } |
| 788 | 788 | |
| 789 | + /** |
|
| 790 | + * @param string $service_name |
|
| 791 | + */ |
|
| 789 | 792 | function options_save_other( $service_name ) { |
| 790 | 793 | // Nonce check |
| 791 | 794 | check_admin_referer( 'save_' . $service_name . '_token_' . $_REQUEST['connection'] ); |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | add_action( 'infinite_scroll_render', array( $this, 'crowdsignal_shortcode_infinite' ), 11 ); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $survey_link |
|
| 30 | + */ |
|
| 28 | 31 | private function get_async_code( array $settings, $survey_link ) { |
| 29 | 32 | $include = <<<CONTAINER |
| 30 | 33 | ( function( d, c, j ) { |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | * |
| 155 | 155 | * @since 5.3.0 |
| 156 | 156 | * |
| 157 | - * @param array $array The item to be added. |
|
| 157 | + * @param string $array The item to be added. |
|
| 158 | 158 | * |
| 159 | 159 | * @return bool True if the append succeeded, False if not. |
| 160 | 160 | */ |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | * @param DOMElement $parent (optional) an element to which new children should be added. |
| 284 | 284 | * @param DOMDocument $root (optional) the parent document. |
| 285 | 285 | * |
| 286 | - * @return string|DOMDocument The rendered XML string or an object if root element is specified. |
|
| 286 | + * @return null|DOMNode The rendered XML string or an object if root element is specified. |
|
| 287 | 287 | */ |
| 288 | 288 | protected function array_to_xml_string( $array, $parent = null, $root = null ) { |
| 289 | 289 | $return_string = false; |
@@ -100,6 +100,10 @@ discard block |
||
| 100 | 100 | ), menu_page_url( 'sharing', false ) ); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + /** |
|
| 104 | + * @param string $service_name |
|
| 105 | + * @param string $for |
|
| 106 | + */ |
|
| 103 | 107 | static function refresh_url( $service_name, $for ) { |
| 104 | 108 | return add_query_arg( array( |
| 105 | 109 | 'action' => 'request', |
@@ -111,6 +115,10 @@ discard block |
||
| 111 | 115 | ), admin_url( 'options-general.php?page=sharing' ) ); |
| 112 | 116 | } |
| 113 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $service_name |
|
| 120 | + * @param string $id |
|
| 121 | + */ |
|
| 114 | 122 | static function disconnect_url( $service_name, $id ) { |
| 115 | 123 | return add_query_arg( array( |
| 116 | 124 | 'action' => 'delete', |
@@ -324,6 +324,9 @@ discard block |
||
| 324 | 324 | </div><?php |
| 325 | 325 | } |
| 326 | 326 | |
| 327 | + /** |
|
| 328 | + * @param string $service_name |
|
| 329 | + */ |
|
| 327 | 330 | public static function options_page_other( $service_name ) { |
| 328 | 331 | // Nonce check |
| 329 | 332 | check_admin_referer( "options_page_{$service_name}_" . $_REQUEST['connection'] ); |
@@ -704,7 +707,7 @@ discard block |
||
| 704 | 707 | * |
| 705 | 708 | * @param array $connections_data |
| 706 | 709 | * |
| 707 | - * @return array { |
|
| 710 | + * @return string { |
|
| 708 | 711 | * Array of content for generating connection form. |
| 709 | 712 | * |
| 710 | 713 | * @type string HTML content of form |