Code Duplication    Length = 10-10 lines in 2 locations

module/Behat/src/JobContext.php 2 locations

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