Skip to content
This repository
Browse code

QA: Misc. Fixes

Mostly whitespace and line-length fixes, also cleaning up some newlines at the end of some files.
  • Loading branch information...
commit 1281928b2f1a132b6b674e78488bea850aa56ad0 1 parent 73be5ea
Michael Nitschinger authored August 04, 2011
4  analysis/Debugger.php
@@ -17,10 +17,10 @@
17 17
  * state of an application in its current context.
18 18
  */
19 19
 class Debugger extends \lithium\core\Object {
20  
-	
  20
+
21 21
 	/**
22 22
 	 * Used for temporary closure caching.
23  
-	 * 
  23
+	 *
24 24
 	 * @see lithium\analysis\Debugger::_closureDef()
25 25
 	 * @var array
26 26
 	 */
4  core/StaticObject.php
@@ -56,8 +56,8 @@ public static function applyFilter($method, $filter = null) {
56 56
 
57 57
 	/**
58 58
 	 * Calls a method on this object with the given parameters. Provides an OO wrapper for
59  
-	 * `forward_static_call_array()`, and improves performance by using straight method calls in most
60  
-	 * cases.
  59
+	 * `forward_static_call_array()`, and improves performance by using straight method calls
  60
+	 * in most cases.
61 61
 	 *
62 62
 	 * @param string $method Name of the method to call.
63 63
 	 * @param array $params Parameter list to use when calling `$method`.
2  data/Entity.php
@@ -392,4 +392,4 @@ public function to($format, array $options = array()) {
392 392
 	}
393 393
 }
394 394
 
395  
-?>
  395
+?>
3  net/http/Response.php
@@ -104,7 +104,8 @@ protected function _init() {
104 104
 			$this->body = $this->_parseMessage($this->_config['message']);
105 105
 		}
106 106
 		if (isset($this->headers['Content-Type'])) {
107  
-			preg_match('/([-\w\/+]+)(;\s*?charset=(.+))?/i', $this->headers['Content-Type'], $match);
  107
+			$pattern = '/([-\w\/+]+)(;\s*?charset=(.+))?/i';
  108
+			preg_match($pattern, $this->headers['Content-Type'], $match);
108 109
 
109 110
 			if (isset($match[1])) {
110 111
 				$this->type = trim($match[1]);
8  tests/cases/core/EnvironmentTest.php
@@ -94,22 +94,22 @@ public function testEnvironmentDetection() {
94 94
 		Environment::set($request);
95 95
 		$isProduction = Environment::is('production'); // returns true if not running locally
96 96
 		$this->assertTrue($isProduction);
97  
-		
  97
+
98 98
 		$request = new MockRequest(array('SERVER_ADDR' => '::1'));
99 99
 		$request->url = 'test/myTest';
100 100
 		Environment::set($request);
101 101
 		$this->assertTrue(Environment::is('test'));
102  
-		
  102
+
103 103
 		$request = new MockRequest();
104 104
 		$request->argv = array(0 => 'test');
105 105
 		Environment::set($request);
106 106
 		$this->assertTrue(Environment::is('test'));
107  
-		
  107
+
108 108
 		$request = new MockRequest();
109 109
 		$request->argv = array(0 => 'something');
110 110
 		Environment::set($request);
111 111
 		$this->assertTrue(Environment::is('development'));
112  
-		
  112
+
113 113
 		$request = new MockRequest();
114 114
 		$request->params = array('env' => 'production');
115 115
 		Environment::set($request);
2  tests/cases/util/SetTest.php
@@ -825,7 +825,7 @@ public function testIsNumericArrayCheck() {
825 825
 
826 826
 		$data = array('one', 2 => 'two', 3 => 'three', 4 => 'four', 'a' => 'five');
827 827
 		$this->assertFalse(Set::isNumeric(array_keys($data)));
828  
-		
  828
+
829 829
 		$data = array();
830 830
 		$this->assertNull(Set::isNumeric($data));
831 831
 	}
2  tests/integration/net/SocketTest.php
@@ -48,7 +48,7 @@ public function testContextAdapter() {
48 48
 	public function testCurlAdapter() {
49 49
 		$message = 'Your PHP installation was not compiled with curl support.';
50 50
 		$this->skipIf(!function_exists('curl_init'), $message);
51  
-				
  51
+
52 52
 		$socket = new Curl($this->_testConfig);
53 53
 		$this->assertTrue($socket->open());
54 54
 		$response = $socket->send();
6  tests/mocks/core/MockRequest.php
@@ -9,11 +9,11 @@
9 9
 namespace lithium\tests\mocks\core;
10 10
 
11 11
 class MockRequest extends \lithium\core\Object {
12  
-	
  12
+
13 13
 	public $url = null;
14  
-	
  14
+
15 15
 	public $params = array();
16  
-	
  16
+
17 17
 	public $argv = array();
18 18
 
19 19
 	public function env($key) {
3  util/Set.php
@@ -542,7 +542,8 @@ public static function insert($list, $path, $data = array()) {
542 542
 	 * Checks to see if all the values in the array are numeric.
543 543
 	 *
544 544
 	 * @param array $array The array to check.  If null, the value of the current Set object.
545  
-	 * @return mixed `true` if values are numeric, `false` if not and `null` if the array to check is empty.
  545
+	 * @return mixed `true` if values are numeric, `false` if not and `null` if the array to
  546
+	 * check is empty.
546 547
 	 */
547 548
 	public static function isNumeric($array = null) {
548 549
 		if (empty($array)) {

0 notes on commit 1281928

Please sign in to comment.
Something went wrong with that request. Please try again.