Code Duplication    Length = 6-6 lines in 3 locations

classes/class-wetu-importer-accommodation.php 1 location

@@ 283-288 (lines=6) @@
280
				$searched_items = false;
281
282
				// @codingStandardsIgnoreLine
283
				if ( isset( $_POST['keyword'] ) ) {
284
					// @codingStandardsIgnoreLine
285
					$keyphrases = $_POST['keyword'];
286
				} else {
287
					$keyphrases = array( 0 );
288
				}
289
290
				if ( ! is_array( $keyphrases ) ) {
291
					$keyphrases = array( $keyphrases );

classes/class-wetu-importer-tours.php 1 location

@@ 377-382 (lines=6) @@
374
				$searched_items = false;
375
376
				// @codingStandardsIgnoreLine
377
				if ( isset( $_POST['keyword'] ) ) {
378
					// @codingStandardsIgnoreLine
379
					$keyphrases = $_POST['keyword'];
380
				} else {
381
					$keyphrases = array( 0 );
382
				}
383
384
				if ( ! is_array( $keyphrases ) ) {
385
					$keyphrases = array( $keyphrases );

classes/class-wetu-importer-destination.php 1 location

@@ 348-353 (lines=6) @@
345
				$searched_items = false;
346
347
				// @codingStandardsIgnoreLine
348
				if ( isset( $_POST['keyword'] ) ) {
349
					// @codingStandardsIgnoreLine
350
					$keyphrases = $_POST['keyword'];
351
				} else {
352
					$keyphrases = array( 0 );
353
				}
354
355
				if ( ! is_array( $keyphrases ) ) {
356
					$keyphrases = array( $keyphrases );