Completed
Pull Request — master (#130)
by
unknown
05:21 queued 02:05
created
application/tests/_ci_phpunit_test/CIPHPUnitTestDouble.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 		// methods in it. But we can't use them in
46 46
 		// `$this->request->setCallablePreConstructor()`
47 47
 		$mock = $this->testCase->getMockBuilder($classname);
48
-		if (! $constructor_args)
48
+		if ( ! $constructor_args)
49 49
 		{
50 50
 			$mock->disableOriginalConstructor();
51 51
 		}
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 				break;
102 102
 			default:
103 103
 				throw new RuntimeException(
104
-					'Sorry, ' . $count . ' params not implemented yet'
104
+					'Sorry, '.$count.' params not implemented yet'
105 105
 				);
106 106
 		}
107 107
 	}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
48 48
 		if (! $constructor_args)
49 49
 		{
50 50
 			$mock->disableOriginalConstructor();
51
-		}
52
-		elseif (is_array($constructor_args))
51
+		} elseif (is_array($constructor_args))
53 52
 		{
54 53
 			$mock->setConstructorArgs($constructor_args);
55 54
 		}
Please login to merge, or discard this patch.