Completed
Push — master ( 6b8ea4...3a612a )
by Kenji
04:59
created
application/tests/_ci_phpunit_test/CIPHPUnitTestCase.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 			return $this->$name;
42 42
 		}
43 43
 
44
-		throw new LogicException('No such property: ' . $name);
44
+		throw new LogicException('No such property: '.$name);
45 45
 	}
46 46
 
47 47
 	public static function setUpBeforeClass()
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	public function resetInstance()
61 61
 	{
62 62
 		reset_instance();
63
-		if (! CIPHPUnitTest::wiredesignzHmvcInstalled())
63
+		if ( ! CIPHPUnitTest::wiredesignzHmvcInstalled())
64 64
 		{
65 65
 			new CI_Controller();
66 66
 		}
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 			new CI();
70 70
 			new MX_Controller();
71 71
 		}
72
-		$this->CI =& get_instance();
72
+		$this->CI = & get_instance();
73 73
 	}
74 74
 
75 75
 	protected function tearDown()
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 		$this->assertSame(
245 245
 			$code,
246 246
 			$actual,
247
-			'Status code is not ' . $code . ' but ' . $actual . '.'
247
+			'Status code is not '.$code.' but '.$actual.'.'
248 248
 		);
249 249
 	}
250 250
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 	 */
257 257
 	public function assertResponseHeader($name, $value)
258 258
 	{
259
-		$CI =& get_instance();
259
+		$CI = & get_instance();
260 260
 		$actual = $CI->output->get_header($name);
261 261
 
262 262
 		if ($actual === null)
@@ -286,18 +286,18 @@  discard block
 block discarded – undo
286 286
 			$this->fail('redirect() is not called.');
287 287
 		}
288 288
 
289
-		if (! function_exists('site_url'))
289
+		if ( ! function_exists('site_url'))
290 290
 		{
291
-			$CI =& get_instance();
291
+			$CI = & get_instance();
292 292
 			$CI->load->helper('url');
293 293
 		}
294 294
 		$absolute_url = site_url($uri);
295
-		$expected = 'Redirect to ' . $absolute_url;
295
+		$expected = 'Redirect to '.$absolute_url;
296 296
 
297 297
 		$this->assertSame(
298 298
 			$expected,
299 299
 			$status['redirect'],
300
-			'URL to redirect is not ' . $expected . ' but ' . $status['redirect'] . '.'
300
+			'URL to redirect is not '.$expected.' but '.$status['redirect'].'.'
301 301
 		);
302 302
 
303 303
 		if ($code !== null)
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 			$this->assertSame(
306 306
 				$code,
307 307
 				$status['code'],
308
-				'Status code is not ' . $code . ' but ' . $status['code'] . '.'
308
+				'Status code is not '.$code.' but '.$status['code'].'.'
309 309
 			);
310 310
 		}
311 311
 	}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
 		{
39 39
 			$patched = true;
40 40
 			$new_source = static::generateNewSource($source);
41
-		}
42
-		else
41
+		} else
43 42
 		{
44 43
 			$new_source = $source;
45 44
 		}
Please login to merge, or discard this patch.