Code Duplication    Length = 5-5 lines in 3 locations

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

@@ 283-287 (lines=5) @@
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 ) ) {

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

@@ 335-339 (lines=5) @@
332
				$searched_items = false;
333
334
				// @codingStandardsIgnoreLine
335
				if ( isset( $_POST['keyword'] ) ) {
336
					// @codingStandardsIgnoreLine
337
					$keyphrases = $_POST['keyword'];
338
				} else {
339
					$keyphrases = array( 0 );
340
				}
341
342
				if ( ! is_array( $keyphrases ) ) {

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

@@ 377-381 (lines=5) @@
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 ) ) {