Code Duplication    Length = 10-10 lines in 2 locations

module/Behat/src/JobContext.php 2 locations

@@ 288-297 (lines=10) @@
285
		$job->getLocations()->add($location);
286
	}
287
	
288
	private function addProfessions(Job &$job,$terms)
289
	{
290
		$professions = $this->getCategories($terms);
291
		foreach($professions as $profession){
292
			$values = $job->getClassifications()->getProfessions()->getValues();
293
			if(!is_array($values) || !in_array($profession,$values)){
294
				$job->getClassifications()->getProfessions()->getItems()->add($profession);
295
			}
296
		}
297
	}
298
	
299
	private function addIndustries(Job &$job, $terms)
300
	{
@@ 299-308 (lines=10) @@
296
		}
297
	}
298
	
299
	private function addIndustries(Job &$job, $terms)
300
	{
301
		$industries = $this->getCategories($terms);
302
		foreach($industries as $industry){
303
			$values = $job->getClassifications()->getIndustries()->getValues();
304
			if(!is_array($values) || !in_array($industry,$values)){
305
				$job->getClassifications()->getIndustries()->getItems()->add($industry);
306
			}
307
		}
308
	}
309
	
310
	/**
311
	 * @param array $categories