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

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

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