Code Duplication    Length = 6-6 lines in 2 locations

tests/php/controller/viewcontrollerTest.php 2 locations

@@ 74-79 (lines=6) @@
71
			->with('asset-pipeline.enabled', false)
72
			->will($this->returnValue($isAssetPipelineEnabled));
73
74
		if (!$showAssetPipelineError) {
75
			$this->request->expects($this->once())
76
				->method('isUserAgent')
77
				->with(['/(MSIE)|(Trident)/'])
78
				->will($this->returnValue($isIE));
79
		}
80
81
		if ($showAssetPipelineError) {
82
			$actual = $this->controller->index();
@@ 367-372 (lines=6) @@
364
			->with('asset-pipeline.enabled', false)
365
			->will($this->returnValue($isAssetPipelineEnabled));
366
367
		if (!$showAssetPipelineError) {
368
			$this->request->expects($this->once())
369
				->method('isUserAgent')
370
				->with(['/(MSIE)|(Trident)/'])
371
				->will($this->returnValue($isIE));
372
		}
373
374
		if ($showAssetPipelineError) {
375
			$actual = $this->controller->index();