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-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 );

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

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