| @@ -28,7 +28,7 @@ discard block | ||
| 28 | 28 | * @since 1.15 | 
| 29 | 29 | * @param bool|false $mixed | 
| 30 | 30 | * | 
| 31 | - * @return bool | |
| 31 | + * @return boolean|null | |
| 32 | 32 | */ | 
| 33 | 33 |  	private function _exit( $mixed = NULL ) { | 
| 34 | 34 | |
| @@ -200,7 +200,7 @@ discard block | ||
| 200 | 200 | * Import Gravity Form XML or JSON | 
| 201 | 201 | * | 
| 202 | 202 | * @param string $xml_or_json_path Path to form XML or JSON file | 
| 203 | - * @return int|bool Imported form ID or false | |
| 203 | + * @return false|string Imported form ID or false | |
| 204 | 204 | */ | 
| 205 | 205 |  	function import_form( $xml_or_json_path = '' ) { | 
| 206 | 206 | |
| @@ -195,7 +195,7 @@ | ||
| 195 | 195 | * | 
| 196 | 196 | * @since 1.6 | 
| 197 | 197 | * | 
| 198 | - * @param int $new_view_id The ID of the newly created View | |
| 198 | + * @param int $new_id The ID of the newly created View | |
| 199 | 199 | * @param WP_Post $post The View that was just cloned | 
| 200 | 200 | * | 
| 201 | 201 | * @return void | 
| @@ -116,7 +116,7 @@ | ||
| 116 | 116 | |
| 117 | 117 | /** | 
| 118 | 118 | * @since 1.12 | 
| 119 | - * @return bool | |
| 119 | + * @return boolean|null | |
| 120 | 120 | */ | 
| 121 | 121 |  	private function add_fallback_shortcode() { | 
| 122 | 122 | |
| @@ -221,7 +221,6 @@ discard block | ||
| 221 | 221 | * | 
| 222 | 222 | * @since 1.15 | 
| 223 | 223 | * | 
| 224 | - * @param string|null $content Content inside shortcode, if defined | |
| 225 | 224 | * | 
| 226 | 225 | * @return string|boolean If URL is fetched, the URL to the entry link. If not found, returns false. | 
| 227 | 226 | */ | 
| @@ -316,7 +315,7 @@ discard block | ||
| 316 | 315 | * | 
| 317 | 316 | * @since 1.15 | 
| 318 | 317 | * | 
| 319 | - * @param string $href URL | |
| 318 | + * @param string|null $url | |
| 320 | 319 | */ | 
| 321 | 320 |  	private function maybe_add_field_values_query_args( $url ) { | 
| 322 | 321 | |
| @@ -278,7 +278,7 @@ | ||
| 278 | 278 | |
| 279 | 279 | /** | 
| 280 | 280 | * Add a notice to be displayed in the admin. | 
| 281 | - * @param array $notice Array with `class` and `message` keys. The message is not escaped. | |
| 281 | + * @param string $notice Array with `class` and `message` keys. The message is not escaped. | |
| 282 | 282 | */ | 
| 283 | 283 |  	public static function add_notice( $notice = array() ) { | 
| 284 | 284 | |
| @@ -183,12 +183,10 @@ discard block | ||
| 183 | 183 |  		if ( file_exists( $mofile_global ) ) { | 
| 184 | 184 | // Look in global /wp-content/languages/[plugin-dir]/ folder | 
| 185 | 185 | load_textdomain( $this->_text_domain, $mofile_global ); | 
| 186 | - } | |
| 187 | -		elseif ( file_exists( $mofile_local ) ) { | |
| 186 | +		} elseif ( file_exists( $mofile_local ) ) { | |
| 188 | 187 | // Look in local /wp-content/plugins/[plugin-dir]/languages/ folder | 
| 189 | 188 | load_textdomain( $this->_text_domain, $mofile_local ); | 
| 190 | - } | |
| 191 | -		else { | |
| 189 | +		} else { | |
| 192 | 190 | // Load the default language files | 
| 193 | 191 | load_plugin_textdomain( $this->_text_domain, false, $lang_dir ); | 
| 194 | 192 | } | 
| @@ -219,7 +217,7 @@ discard block | ||
| 219 | 217 |  	public function settings() { | 
| 220 | 218 | |
| 221 | 219 | // If doing ajax, get outta here | 
| 222 | -		if( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )  { | |
| 220 | +		if( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { | |
| 223 | 221 | return; | 
| 224 | 222 | } | 
| 225 | 223 | |
| @@ -67,7 +67,6 @@ | ||
| 67 | 67 | * | 
| 68 | 68 | * @since 1.15 | 
| 69 | 69 | * | 
| 70 | - * @param array $allcaps An array of all the user's capabilities. | |
| 71 | 70 | * @param array $caps Actual capabilities for meta capability. | 
| 72 | 71 | * @param array $args Optional parameters passed to has_cap(), typically object ID. | 
| 73 | 72 | * @param WP_User|null $user The user object, in WordPress 3.7.0 or higher | 
| @@ -37,6 +37,9 @@ discard block | ||
| 37 | 37 | public $active_areas; | 
| 38 | 38 | |
| 39 | 39 | |
| 40 | + /** | |
| 41 | + * @param string $id | |
| 42 | + */ | |
| 40 | 43 |  	function __construct( $id, $settings = array(), $field_options = array(), $areas = array() ) { | 
| 41 | 44 | |
| 42 | 45 |  		if ( empty( $id ) ) { | 
| @@ -144,6 +147,9 @@ discard block | ||
| 144 | 147 | return $areas; | 
| 145 | 148 | } | 
| 146 | 149 | |
| 150 | + /** | |
| 151 | + * @param string $context | |
| 152 | + */ | |
| 147 | 153 |  	public function get_active_areas( $context ) { | 
| 148 | 154 |  		if ( isset( $this->active_areas[ $context ] ) ) { | 
| 149 | 155 | return $this->active_areas[ $context ]; | 
| @@ -156,8 +162,8 @@ discard block | ||
| 156 | 162 | /** | 
| 157 | 163 | * Assign template specific field options | 
| 158 | 164 | * | 
| 159 | - * @param array $options (default: array()) | |
| 160 | - * @param string $template (default: '') | |
| 165 | + * @param array $field_options (default: array()) | |
| 166 | + * @param string $template_id (default: '') | |
| 161 | 167 | * @param string $field_id key for the field | 
| 162 | 168 | * @param string|array $context Context for the field; `directory` or `single` for example. | 
| 163 | 169 | * | 
| @@ -211,6 +211,7 @@ | ||
| 211 | 211 | * @var $view_id | 
| 212 | 212 | * | 
| 213 | 213 | * @see render_handler | 
| 214 | + * @param string $url | |
| 214 | 215 | */ | 
| 215 | 216 |  	private function set_vars( $matches, $attr, $url, $rawattr ) { | 
| 216 | 217 | |
| @@ -170,7 +170,6 @@ | ||
| 170 | 170 | * | 
| 171 | 171 | * @since 1.5.1 | 
| 172 | 172 | * @param array $visibility_caps Array of capabilities to display in field dropdown. | 
| 173 | - * @param string $field_type Type of field options to render (`field` or `widget`) | |
| 174 | 173 | * @param string $template_id Table slug | 
| 175 | 174 | * @param float $field_id GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by` | 
| 176 | 175 | * @param string $context What context are we in? Example: `single` or `directory` |