Completed
Push — master ( 33757f...461539 )
by Stephanie
03:04
created
classes/models/FrmFormMigrator.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -148,6 +148,9 @@  discard block
 block discarded – undo
148 148
 		return $this->add_form( $form );
149 149
 	}
150 150
 
151
+	/**
152
+	 * @param string $source_form_name
153
+	 */
151 154
 	protected function prepare_new_form( $source_id, $source_form_name ) {
152 155
 		return array(
153 156
 			'import_form_id' => $source_id,
@@ -196,6 +199,9 @@  discard block
 block discarded – undo
196 199
 		// customize this function
197 200
 	}
198 201
 
202
+	/**
203
+	 * @param string $type
204
+	 */
199 205
 	protected function convert_field_type( $type ) {
200 206
 		return $type;
201 207
 	}
@@ -309,6 +315,9 @@  discard block
 block discarded – undo
309 315
 		return array();
310 316
 	}
311 317
 
318
+	/**
319
+	 * @param string $type
320
+	 */
312 321
 	private function is_unsupported_field( $type ) {
313 322
 		$fields = $this->unsupported_field_types();
314 323
 		return in_array( $type, $fields, true );
@@ -322,6 +331,9 @@  discard block
 block discarded – undo
322 331
 		return array();
323 332
 	}
324 333
 
334
+	/**
335
+	 * @param string $type
336
+	 */
325 337
 	private function should_skip_field( $type ) {
326 338
 		$skip_pro_fields = $this->skip_pro_fields();
327 339
 		return ( ! FrmAppHelper::pro_is_installed() && in_array( $type, $skip_pro_fields, true ) );
Please login to merge, or discard this patch.