Skip to content
This repository
Browse code

QA: Removing trailing comma in arrays, lowercasing some keywords.

  • Loading branch information...
commit 26c2192d26c4e4cee56836d1767b545d757e30a0 1 parent f004a91
David Persson authored March 23, 2011 nateabele committed June 04, 2011

Showing 76 changed files with 260 additions and 260 deletions. Show diff stats Hide diff stats

  1. 2  libraries/lithium/action/Controller.php
  2. 6  libraries/lithium/action/Response.php
  3. 2  libraries/lithium/analysis/Debugger.php
  4. 2  libraries/lithium/analysis/Inspector.php
  5. 2  libraries/lithium/analysis/logger/adapter/File.php
  6. 10  libraries/lithium/core/Libraries.php
  7. 2  libraries/lithium/data/Connections.php
  8. 2  libraries/lithium/data/Entity.php
  9. 4  libraries/lithium/data/Model.php
  10. 2  libraries/lithium/data/collection/DocumentArray.php
  11. 2  libraries/lithium/data/model/Query.php
  12. 2  libraries/lithium/data/model/Relationship.php
  13. 4  libraries/lithium/data/source/Database.php
  14. 2  libraries/lithium/data/source/Http.php
  15. 10  libraries/lithium/data/source/MongoDb.php
  16. 4  libraries/lithium/data/source/database/adapter/MySql.php
  17. 2  libraries/lithium/data/source/database/adapter/Sqlite3.php
  18. 6  libraries/lithium/data/source/http/adapter/CouchDb.php
  19. 4  libraries/lithium/data/source/mongo_db/Exporter.php
  20. 2  libraries/lithium/g11n/Message.php
  21. 2  libraries/lithium/g11n/catalog/adapter/Code.php
  22. 2  libraries/lithium/g11n/catalog/adapter/Gettext.php
  23. 2  libraries/lithium/net/Message.php
  24. 12  libraries/lithium/net/http/Media.php
  25. 2  libraries/lithium/net/http/Request.php
  26. 2  libraries/lithium/net/http/Route.php
  27. 4  libraries/lithium/net/http/Service.php
  28. 2  libraries/lithium/storage/cache/adapter/Apc.php
  29. 2  libraries/lithium/storage/cache/adapter/File.php
  30. 2  libraries/lithium/storage/cache/adapter/Memory.php
  31. 2  libraries/lithium/storage/cache/adapter/Redis.php
  32. 2  libraries/lithium/storage/session/adapter/Php.php
  33. 2  libraries/lithium/template/View.php
  34. 2  libraries/lithium/template/helper/Form.php
  35. 2  libraries/lithium/test/Dispatcher.php
  36. 6  libraries/lithium/test/Group.php
  37. 4  libraries/lithium/test/Report.php
  38. 4  libraries/lithium/test/Unit.php
  39. 132  libraries/lithium/tests/cases/action/RequestTest.php
  40. 2  libraries/lithium/tests/cases/core/AdaptableTest.php
  41. 2  libraries/lithium/tests/cases/core/LibrariesTest.php
  42. 6  libraries/lithium/tests/cases/data/ModelTest.php
  43. 4  libraries/lithium/tests/cases/data/collection/RecordSetTest.php
  44. 4  libraries/lithium/tests/cases/data/entity/DocumentTest.php
  45. 6  libraries/lithium/tests/cases/data/model/QueryTest.php
  46. 8  libraries/lithium/tests/cases/data/source/DatabaseTest.php
  47. 2  libraries/lithium/tests/cases/data/source/HttpTest.php
  48. 2  libraries/lithium/tests/cases/data/source/MongoDbTest.php
  49. 4  libraries/lithium/tests/cases/data/source/database/adapter/MySqlTest.php
  50. 2  libraries/lithium/tests/cases/data/source/database/adapter/Sqlite3Test.php
  51. 4  libraries/lithium/tests/cases/data/source/mongo_db/ExporterTest.php
  52. 6  libraries/lithium/tests/cases/g11n/CatalogTest.php
  53. 4  libraries/lithium/tests/cases/g11n/LocaleTest.php
  54. 12  libraries/lithium/tests/cases/g11n/MessageTest.php
  55. 12  libraries/lithium/tests/cases/g11n/catalog/adapter/GettextTest.php
  56. 4  libraries/lithium/tests/cases/net/MessageTest.php
  57. 4  libraries/lithium/tests/cases/net/http/MessageTest.php
  58. 6  libraries/lithium/tests/cases/net/http/RequestTest.php
  59. 4  libraries/lithium/tests/cases/net/http/ResponseTest.php
  60. 20  libraries/lithium/tests/cases/template/helper/FormTest.php
  61. 2  libraries/lithium/tests/cases/template/helper/HtmlTest.php
  62. 6  libraries/lithium/tests/cases/test/GroupTest.php
  63. 2  libraries/lithium/tests/cases/test/UnitTest.php
  64. 28  libraries/lithium/tests/cases/util/SetTest.php
  65. 8  libraries/lithium/tests/cases/util/ValidatorTest.php
  66. 2  libraries/lithium/tests/integration/g11n/CatalogValidatorTest.php
  67. 4  libraries/lithium/tests/integration/storage/CookieTest.php
  68. 2  libraries/lithium/tests/mocks/action/MockCgiRequest.php
  69. 8  libraries/lithium/tests/mocks/console/command/MockLibraryService.php
  70. 2  libraries/lithium/tests/mocks/data/MockPostForValidates.php
  71. 42  libraries/lithium/tests/mocks/data/MockSource.php
  72. 2  libraries/lithium/tests/mocks/data/model/MockDocumentSource.php
  73. 20  libraries/lithium/tests/mocks/data/source/database/adapter/MockMySql.php
  74. 2  libraries/lithium/util/Inflector.php
  75. 8  libraries/lithium/util/Set.php
  76. 4  libraries/lithium/util/String.php
2  libraries/lithium/action/Controller.php
@@ -240,7 +240,7 @@ public function render(array $options = array()) {
240 240
 			'location'   => false,
241 241
 			'data'       => null,
242 242
 			'head'       => false,
243  
-			'controller' => Inflector::underscore($name),
  243
+			'controller' => Inflector::underscore($name)
244 244
 		);
245 245
 		$options += $this->_render + $defaults;
246 246
 
6  libraries/lithium/action/Response.php
@@ -80,9 +80,9 @@ public function cache($expires) {
80 80
 				'Cache-Control' => array(
81 81
 					'no-store, no-cache, must-revalidate',
82 82
 					'post-check=0, pre-check=0',
83  
-					'max-age=0',
  83
+					'max-age=0'
84 84
 				),
85  
-				'Pragma' => 'no-cache',
  85
+				'Pragma' => 'no-cache'
86 86
 			));
87 87
 		}
88 88
 		$expires = is_int($expires) ? $expires : strtotime($expires);
@@ -90,7 +90,7 @@ public function cache($expires) {
90 90
 		return $this->headers(array(
91 91
 			'Expires' => gmdate('D, d M Y H:i:s', $expires) . ' GMT',
92 92
 			'Cache-Control' => 'max-age=' . ($expires - time()),
93  
-			'Pragma' => 'cache',
  93
+			'Pragma' => 'cache'
94 94
 		));
95 95
 	}
96 96
 
2  libraries/lithium/analysis/Debugger.php
@@ -43,7 +43,7 @@ public static function trace(array $options = array()) {
43 43
 			'scope' => array(),
44 44
 			'trace' => array(),
45 45
 			'includeScope' => true,
46  
-			'closures' => true,
  46
+			'closures' => true
47 47
 		);
48 48
 		$options += $defaults;
49 49
 
2  libraries/lithium/analysis/Inspector.php
@@ -189,7 +189,7 @@ function($str) { return preg_quote($str, '/'); },
189 189
 			$pattern = join('|', array(
190 190
 				"({$pattern})",
191 191
 				"\\$(.+)\($",
192  
-				"\s*['\"]\w+['\"]\s*=>\s*.+[\{\(]$",
  192
+				"\s*['\"]\w+['\"]\s*=>\s*.+[\{\(]$"
193 193
 			));
194 194
 			$options['pattern'] = "/^({$pattern})/";
195 195
 		}
2  libraries/lithium/analysis/logger/adapter/File.php
@@ -56,7 +56,7 @@ public function __construct(array $config = array()) {
56 56
 			'path' => Libraries::get(true, 'resources') . '/tmp/logs',
57 57
 			'timestamp' => 'Y-m-d H:i:s',
58 58
 			'file' => function($data, $config) { return "{$data['priority']}.log"; },
59  
-			'format' => "{:timestamp} {:message}\n",
  59
+			'format' => "{:timestamp} {:message}\n"
60 60
 		);
61 61
 		parent::__construct($config + $defaults);
62 62
 	}
10  libraries/lithium/core/Libraries.php
@@ -93,7 +93,7 @@ class Libraries {
93 93
 			'{:library}\extensions\command\{:namespace}\{:class}\{:name}',
94 94
 			'{:library}\console\command\{:namespace}\{:class}\{:name}' => array(
95 95
 				'libraries' => 'lithium'
96  
-			),
  96
+			)
97 97
 		),
98 98
 		'controllers' => array(
99 99
 			'{:library}\controllers\{:name}Controller'
@@ -129,10 +129,10 @@ class Libraries {
129 129
 		),
130 130
 		'test' => array(
131 131
 			'{:library}\extensions\test\{:namespace}\{:class}\{:name}',
132  
-			'{:library}\test\{:namespace}\{:class}\{:name}' => array('libraries' => 'lithium'),
  132
+			'{:library}\test\{:namespace}\{:class}\{:name}' => array('libraries' => 'lithium')
133 133
 		),
134 134
 		'tests' => array(
135  
-			'{:library}\tests\{:namespace}\{:class}\{:name}Test',
  135
+			'{:library}\tests\{:namespace}\{:class}\{:name}Test'
136 136
 		)
137 137
 	);
138 138
 
@@ -274,7 +274,7 @@ public static function add($name, array $config = array()) {
274 274
 			'transform' => null,
275 275
 			'bootstrap' => true,
276 276
 			'defer' => false,
277  
-			'default' => false,
  277
+			'default' => false
278 278
 		);
279 279
 		if ($name === 'lithium') {
280 280
 			$defaults['defer'] = true;
@@ -417,7 +417,7 @@ public static function find($library, array $options = array()) {
417 417
 			'recursive' => false,
418 418
 			'filter' => '/^(\w+)?(\\\\[a-z0-9_]+)+\\\\[A-Z][a-zA-Z0-9]+$/',
419 419
 			'exclude' => '',
420  
-			'namespaces' => false,
  420
+			'namespaces' => false
421 421
 		);
422 422
 		$options += $defaults;
423 423
 		$libs = array();
2  libraries/lithium/data/Connections.php
@@ -103,7 +103,7 @@ public static function add($name, array $config = array()) {
103 103
 			'adapter'  => null,
104 104
 			'host'     => 'localhost',
105 105
 			'login'    => '',
106  
-			'password' => '',
  106
+			'password' => ''
107 107
 		);
108 108
 		return static::$_configurations[$name] = $config + $defaults;
109 109
 	}
2  libraries/lithium/data/Entity.php
@@ -387,7 +387,7 @@ public function export() {
387 387
 			'exists'    => $this->_exists,
388 388
 			'data'      => $this->_data,
389 389
 			'update'    => $this->_updated,
390  
-			'increment' => $this->_increment,
  390
+			'increment' => $this->_increment
391 391
 		);
392 392
 	}
393 393
 
4  libraries/lithium/data/Model.php
@@ -741,7 +741,7 @@ public function save($entity, $data = null, array $options = array()) {
741 741
 			'validate' => true,
742 742
 			'whitelist' => null,
743 743
 			'callbacks' => true,
744  
-			'locked' => $self->_meta['locked'],
  744
+			'locked' => $self->_meta['locked']
745 745
 		);
746 746
 		$options += $defaults;
747 747
 		$params = compact('entity', 'data', 'options');
@@ -820,7 +820,7 @@ public function save($entity, $data = null, array $options = array()) {
820 820
 	public function validates($entity, array $options = array()) {
821 821
 		$defaults = array(
822 822
 			'rules' => $this->validates,
823  
-			'events' => $entity->exists() ? 'update' : 'create',
  823
+			'events' => $entity->exists() ? 'update' : 'create'
824 824
 		);
825 825
 		$options += $defaults;
826 826
 		$self = static::_object();
2  libraries/lithium/data/collection/DocumentArray.php
@@ -137,7 +137,7 @@ public function export() {
137 137
 		return array(
138 138
 			'exists' => $this->_exists,
139 139
 			'key'  => $this->_pathKey,
140  
-			'data' => $this->_data,
  140
+			'data' => $this->_data
141 141
 		);
142 142
 	}
143 143
 
2  libraries/lithium/data/model/Query.php
@@ -98,7 +98,7 @@ public function __construct(array $config = array()) {
98 98
 			'joins'      => array(),
99 99
 			'with'       => array(),
100 100
 			'map'        => array(),
101  
-			'whitelist'  => array(),
  101
+			'whitelist'  => array()
102 102
 		);
103 103
 		parent::__construct($config + $defaults);
104 104
 	}
2  libraries/lithium/data/model/Relationship.php
@@ -58,7 +58,7 @@ public function __construct(array $config = array()) {
58 58
 			'link' => self::LINK_KEY,
59 59
 			'fields' => true,
60 60
 			'fieldName' => null,
61  
-			'constraint' => array(),
  61
+			'constraint' => array()
62 62
 		);
63 63
 		parent::__construct($config + $defaults);
64 64
 	}
4  libraries/lithium/data/source/Database.php
@@ -142,7 +142,7 @@ public function __construct(array $config = array()) {
142 142
 			'host'       => 'localhost',
143 143
 			'login'      => 'root',
144 144
 			'password'   => '',
145  
-			'database'   => null,
  145
+			'database'   => null
146 146
 		);
147 147
 		$this->_strings += array(
148 148
 			'read' => 'SELECT {:fields} FROM {:source} {:alias} {:joins} {:conditions} {:group} ' .
@@ -280,7 +280,7 @@ public function read($query, array $options = array()) {
280 280
 					return $records;
281 281
 				case 'item':
282 282
 					return $self->item($query->model(), array(), compact('query', 'result') + array(
283  
-						'class' => 'set',
  283
+						'class' => 'set'
284 284
 					));
285 285
 			}
286 286
 		});
2  libraries/lithium/data/source/Http.php
@@ -77,7 +77,7 @@ public function __construct(array $config = array()) {
77 77
 			'password'   => '',
78 78
 			'port'       => 80,
79 79
 			'timeout'    => 30,
80  
-			'encoding'   => 'UTF-8',
  80
+			'encoding'   => 'UTF-8'
81 81
 		);
82 82
 		$config = $config + $defaults;
83 83
 		$config['username'] = $config['login'];
10  libraries/lithium/data/source/MongoDb.php
@@ -66,7 +66,7 @@ class MongoDb extends \lithium\data\Source {
66 66
 		'set'      => 'lithium\data\collection\DocumentSet',
67 67
 		'result'   => 'lithium\data\source\mongo_db\Result',
68 68
 		'exporter' => 'lithium\data\source\mongo_db\Exporter',
69  
-		'relationship' => 'lithium\data\model\Relationship',
  69
+		'relationship' => 'lithium\data\model\Relationship'
70 70
 	);
71 71
 
72 72
 	/**
@@ -84,7 +84,7 @@ class MongoDb extends \lithium\data\Source {
84 84
 		'or'  => '$or',
85 85
 		'||'  => '$or',
86 86
 		'not' => '$not',
87  
-		'!'   =>  '$not',
  87
+		'!'   =>  '$not'
88 88
 	);
89 89
 
90 90
 	/**
@@ -151,7 +151,7 @@ public function __construct(array $config = array()) {
151 151
 			'timeout'    => 100,
152 152
 			'replicaSet' => false,
153 153
 			'schema'     => null,
154  
-			'gridPrefix' => 'fs',
  154
+			'gridPrefix' => 'fs'
155 155
 		);
156 156
 		parent::__construct($config + $defaults);
157 157
 	}
@@ -176,7 +176,7 @@ protected function _init() {
176 176
 			'float'   => function($v) { return (float) $v; },
177 177
 			'boolean' => function($v) { return (boolean) $v; },
178 178
 			'code'    => function($v) { return new MongoCode($v); },
179  
-			'binary'  => function($v) { return new MongoBinData($v); },
  179
+			'binary'  => function($v) { return new MongoBinData($v); }
180 180
 		);
181 181
 	}
182 182
 
@@ -209,7 +209,7 @@ public static function enabled($feature = null) {
209 209
 			'arrays' => true,
210 210
 			'transactions' => false,
211 211
 			'booleans' => true,
212  
-			'relationships' => true,
  212
+			'relationships' => true
213 213
 		);
214 214
 		return isset($features[$feature]) ? $features[$feature] : null;
215 215
 	}
4  libraries/lithium/data/source/database/adapter/MySql.php
@@ -103,7 +103,7 @@ public static function enabled($feature = null) {
103 103
 			'arrays' => false,
104 104
 			'transactions' => false,
105 105
 			'booleans' => true,
106  
-			'relationships' => true,
  106
+			'relationships' => true
107 107
 		);
108 108
 		return isset($features[$feature]) ? $features[$feature] : null;
109 109
 	}
@@ -216,7 +216,7 @@ public function describe($entity, array $meta = array()) {
216 216
 
217 217
 				$fields[$column['field']] = $match + array(
218 218
 					'null'     => ($column['null'] == 'YES' ? true : false),
219  
-					'default'  => $column['default'],
  219
+					'default'  => $column['default']
220 220
 				);
221 221
 			}
222 222
 			return $fields;
2  libraries/lithium/data/source/database/adapter/Sqlite3.php
@@ -90,7 +90,7 @@ public function __construct(array $config = array()) {
90 90
 		$defaults = array(
91 91
 			'database'   => '',
92 92
 			'flags'      => SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE,
93  
-			'key'        => NULL
  93
+			'key'        => null
94 94
 		);
95 95
 		parent::__construct($config + $defaults);
96 96
 	}
6  libraries/lithium/data/source/http/adapter/CouchDb.php
@@ -44,7 +44,7 @@ class CouchDb extends \lithium\data\source\Http {
44 44
 		'service' => 'lithium\net\http\Service',
45 45
 		'entity' => 'lithium\data\entity\Document',
46 46
 		'set' => 'lithium\data\collection\DocumentSet',
47  
-		'array' => 'lithium\data\collection\DocumentArray',
  47
+		'array' => 'lithium\data\collection\DocumentArray'
48 48
 	);
49 49
 
50 50
 	protected $_handlers = array();
@@ -65,7 +65,7 @@ protected function _init() {
65 65
 		$this->_handlers += array(
66 66
 			'integer' => function($v) { return (integer) $v; },
67 67
 			'float'   => function($v) { return (float) $v; },
68  
-			'boolean' => function($v) { return (boolean) $v; },
  68
+			'boolean' => function($v) { return (boolean) $v; }
69 69
 		);
70 70
 	}
71 71
 
@@ -485,7 +485,7 @@ public static function enabled($feature = null) {
485 485
 			'arrays' => true,
486 486
 			'transactions' => false,
487 487
 			'booleans' => true,
488  
-			'relationships' => false,
  488
+			'relationships' => false
489 489
 		);
490 490
 		return isset($features[$feature]) ? $features[$feature] : null;
491 491
 	}
4  libraries/lithium/data/source/mongo_db/Exporter.php
@@ -19,7 +19,7 @@ class Exporter extends \lithium\core\StaticObject {
19 19
 		'MongoBinData' => 'binary',
20 20
 		'datetime'     => 'date',
21 21
 		'timestamp'    => 'date',
22  
-		'int'          => 'integer',
  22
+		'int'          => 'integer'
23 23
 	);
24 24
 
25 25
 	public static function get($type, $export, array $options = array()) {
@@ -85,7 +85,7 @@ public static function toCommand($changes) {
85 85
 			'update'    => '$set',
86 86
 			'increment' => '$inc',
87 87
 			'remove'    => '$unset',
88  
-			'rename'    => '$rename',
  88
+			'rename'    => '$rename'
89 89
 		);
90 90
 		$result = array();
91 91
 
2  libraries/lithium/g11n/Message.php
@@ -100,7 +100,7 @@ public static function translate($id, array $options = array()) {
100 100
 			'locale' => Environment::get('locale'),
101 101
 			'scope' => null,
102 102
 			'default' => null,
103  
-			'noop' => false,
  103
+			'noop' => false
104 104
 		);
105 105
 		extract($options + $defaults);
106 106
 
2  libraries/lithium/g11n/catalog/adapter/Code.php
@@ -139,7 +139,7 @@ protected function _parsePhp($file) {
139 139
 					$data = $this->_merge($data, array(
140 140
 						'id' => $ids['singular'],
141 141
 						'ids' => $ids,
142  
-						'occurrences' => array($occurrence),
  142
+						'occurrences' => array($occurrence)
143 143
 					));
144 144
 					extract($defaults, EXTR_OVERWRITE);
145 145
 				} elseif ($token[0] === T_CONSTANT_ENCAPSED_STRING) {
2  libraries/lithium/g11n/catalog/adapter/Gettext.php
@@ -285,7 +285,7 @@ protected function _parseMo($stream) {
285 285
 			'offsetId' => null,
286 286
 			'offsetTranslated' => null,
287 287
 			'sizeHashes' => null,
288  
-			'offsetHashes' => null,
  288
+			'offsetHashes' => null
289 289
 		);
290 290
 		foreach ($header as &$value) {
291 291
 			$value = $this->_readLong($stream, $isBigEndian);
2  libraries/lithium/net/Message.php
@@ -82,7 +82,7 @@ public function __construct(array $config = array()) {
82 82
 			'username' => null,
83 83
 			'password' => null,
84 84
 			'body' => null,
85  
-			'message' => null,
  85
+			'message' => null
86 86
 		);
87 87
 		$config += $defaults;
88 88
 
12  libraries/lithium/net/http/Media.php
@@ -219,7 +219,7 @@ public static function type($type, $content = null, array $options = array()) {
219 219
 			'encode' => false,
220 220
 			'decode' => false,
221 221
 			'cast'   => true,
222  
-			'conditions' => array(),
  222
+			'conditions' => array()
223 223
 		);
224 224
 
225 225
 		if ($content === false) {
@@ -410,7 +410,7 @@ public static function asset($path, $type, array $options = array()) {
410 410
 			'path' => array(),
411 411
 			'suffix' => null,
412 412
 			'check' => false,
413  
-			'library' => true,
  413
+			'library' => true
414 414
 		);
415 415
 		if (!$base = static::_assets($type)) {
416 416
 			$type = 'generic';
@@ -506,7 +506,7 @@ public static function path($path, $type, array $options = array()) {
506 506
 			'base' => null,
507 507
 			'path' => array(),
508 508
 			'suffix' => null,
509  
-			'library' => true,
  509
+			'library' => true
510 510
 		);
511 511
 		if (!$base = static::_assets($type)) {
512 512
 			$type = 'generic';
@@ -753,7 +753,7 @@ protected static function _types($type = null) {
753 753
 			'js'           => array('application/javascript', 'text/javascript'),
754 754
 			'text'         => 'text/plain',
755 755
 			'txt'          => array('alias' => 'text'),
756  
-			'xml'          => array('application/xml', 'text/xml'),
  756
+			'xml'          => array('application/xml', 'text/xml')
757 757
 		);
758 758
 
759 759
 		if (!$type) {
@@ -795,7 +795,7 @@ protected static function _handlers($type = null) {
795 795
 				'paths'    => array(
796 796
 					'template' => '{:library}/views/{:controller}/{:template}.{:type}.php',
797 797
 					'layout'   => '{:library}/views/layouts/{:layout}.{:type}.php',
798  
-					'element'  => '{:library}/views/elements/{:template}.{:type}.php',
  798
+					'element'  => '{:library}/views/elements/{:template}.{:type}.php'
799 799
 				)
800 800
 			),
801 801
 			'html' => array(),
@@ -803,7 +803,7 @@ protected static function _handlers($type = null) {
803 803
 				return json_decode($data, true);
804 804
 			}),
805 805
 			'text' => array('cast' => false, 'encode' => function($s) { return $s; }),
806  
-			'form' => array('cast' => true, 'encode' => 'http_build_query'),
  806
+			'form' => array('cast' => true, 'encode' => 'http_build_query')
807 807
 		);
808 808
 
809 809
 		if ($type) {
2  libraries/lithium/net/http/Request.php
@@ -80,7 +80,7 @@ public function __construct(array $config = array()) {
80 80
 		$this->headers = array(
81 81
 			'Host' => $this->port ? "{$this->host}:{$this->port}" : $this->host,
82 82
 			'Connection' => 'Close',
83  
-			'User-Agent' => 'Mozilla/5.0',
  83
+			'User-Agent' => 'Mozilla/5.0'
84 84
 		);
85 85
 		$this->headers($config['headers']);
86 86
 
2  libraries/lithium/net/http/Route.php
@@ -171,7 +171,7 @@ public function __construct(array $config = array()) {
171 171
 			'defaults' => array(),
172 172
 			'keys'     => array(),
173 173
 			'persist'  => array(),
174  
-			'handler'  => null,
  174
+			'handler'  => null
175 175
 		);
176 176
 		parent::__construct($config + $defaults);
177 177
 	}
4  libraries/lithium/net/http/Service.php
@@ -54,7 +54,7 @@ class Service extends \lithium\core\Object {
54 54
 	protected $_classes = array(
55 55
 		'media'    => 'lithium\net\http\Media',
56 56
 		'request'  => 'lithium\net\http\Request',
57  
-		'response' => 'lithium\net\http\Response',
  57
+		'response' => 'lithium\net\http\Response'
58 58
 	);
59 59
 
60 60
 	/**
@@ -75,7 +75,7 @@ public function __construct(array $config = array()) {
75 75
 			'username'   => null,
76 76
 			'password'   => null,
77 77
 			'encoding'   => 'UTF-8',
78  
-			'socket'     => 'Context',
  78
+			'socket'     => 'Context'
79 79
 		);
80 80
 		parent::__construct($config + $defaults);
81 81
 	}
2  libraries/lithium/storage/cache/adapter/Apc.php
@@ -48,7 +48,7 @@ class Apc extends \lithium\core\Object {
48 48
 	public function __construct(array $config = array()) {
49 49
 		$defaults = array(
50 50
 			'prefix' => '',
51  
-			'expiry' => '+1 hour',
  51
+			'expiry' => '+1 hour'
52 52
 		);
53 53
 		parent::__construct($config + $defaults);
54 54
 	}
2  libraries/lithium/storage/cache/adapter/File.php
@@ -55,7 +55,7 @@ public function __construct(array $config = array()) {
55 55
 		$defaults = array(
56 56
 			'path' => Libraries::get(true, 'resources') . '/tmp/cache',
57 57
 			'prefix' => '',
58  
-			'expiry' => '+1 hour',
  58
+			'expiry' => '+1 hour'
59 59
 		);
60 60
 		parent::__construct($config + $defaults);
61 61
 	}
2  libraries/lithium/storage/cache/adapter/Memory.php
@@ -62,7 +62,7 @@ public function read($key) {
62 62
 			if (is_array($key)) {
63 63
 				$results = array();
64 64
 
65  
-				foreach($key as $k) {
  65
+				foreach ($key as $k) {
66 66
 					if (isset($cache[$k])) {
67 67
 						$results[$k] = $cache[$k];
68 68
 					}
2  libraries/lithium/storage/cache/adapter/Redis.php
@@ -81,7 +81,7 @@ public function __construct(array $config = array()) {
81 81
 		$defaults = array(
82 82
 			'host' => '127.0.0.1:6379',
83 83
 			'expiry' => '+1 hour',
84  
-			'persistent' => false,
  84
+			'persistent' => false
85 85
 		);
86 86
 		parent::__construct($config + $defaults);
87 87
 	}
2  libraries/lithium/storage/session/adapter/Php.php
@@ -28,7 +28,7 @@ class Php extends \lithium\core\Object {
28 28
 	 * @var array Keys are session ini settings, with the `session.` namespace.
29 29
 	 */
30 30
 	protected $_defaults = array(
31  
-		'session.cookie_lifetime' => '0',
  31
+		'session.cookie_lifetime' => '0'
32 32
 	);
33 33
 
34 34
 	/**
2  libraries/lithium/template/View.php
@@ -245,7 +245,7 @@ public function render($process, array $data = array(), array $options = array()
245 245
 			'type' => 'html',
246 246
 			'layout' => null,
247 247
 			'template' => null,
248  
-			'context' => array(),
  248
+			'context' => array()
249 249
 		);
250 250
 		$options += $defaults;
251 251
 
2  libraries/lithium/template/helper/Form.php
@@ -400,7 +400,7 @@ public function field($name, array $options = array()) {
400 400
 			'type' => isset($options['list']) ? 'select' : 'text',
401 401
 			'template' => 'field',
402 402
 			'wrap' => array(),
403  
-			'list' => null,
  403
+			'list' => null
404 404
 		);
405 405
 		$type = isset($options['type']) ? $options['type'] : $defaults['type'];
406 406
 
2  libraries/lithium/test/Dispatcher.php
@@ -49,7 +49,7 @@ public static function run($group = null, array $options = array()) {
49 49
 		$defaults = array(
50 50
 			'title' => $group,
51 51
 			'filters' => array(),
52  
-			'reporter' => 'text',
  52
+			'reporter' => 'text'
53 53
 		);
54 54
 		$options += $defaults;
55 55
 		$isCase = is_string($group) && preg_match('/Test$/', $group);
6  libraries/lithium/test/Group.php
@@ -59,7 +59,7 @@ public static function all(array $options = array()) {
59 59
 		$defaults = array(
60 60
 			'filter' => '/cases/',
61 61
 			'exclude' => '/mock/',
62  
-			'recursive' => true,
  62
+			'recursive' => true
63 63
 		);
64 64
 		return Libraries::locate('tests', null, $options + $defaults);
65 65
 	}
@@ -123,7 +123,7 @@ public function tests($params = array(), array $options = array()) {
123 123
 	protected function _resolve($test) {
124 124
 		if (strpos($test, '\\') === false && Libraries::get($test)) {
125 125
 			return (array) Libraries::find($test, array(
126  
-				'recursive' => true, 'filter' => '/cases|integration|functional/',
  126
+				'recursive' => true, 'filter' => '/cases|integration|functional/'
127 127
 			));
128 128
 		}
129 129
 		if (preg_match("/Test/", $test)) {
@@ -137,7 +137,7 @@ protected function _resolve($test) {
137 137
 		return (array) Libraries::find($library, array(
138 138
 			'recursive' => true,
139 139
 			'path' => '/' . str_replace('\\', '/', $path),
140  
-			'filter' => '/cases|integration|functional/',
  140
+			'filter' => '/cases|integration|functional/'
141 141
 		));
142 142
 	}
143 143
 }
4  libraries/lithium/test/Report.php
@@ -112,7 +112,7 @@ public function __construct(array $config = array()) {
112 112
 			'group' => null,
113 113
 			'filters' => array(),
114 114
 			'format' => 'txt',
115  
-			'reporter' => 'console',
  115
+			'reporter' => 'console'
116 116
 		);
117 117
 		parent::__construct($config + $defaults);
118 118
 	}
@@ -222,7 +222,7 @@ public function render($template, $data = array()) {
222 222
 			$data = $this->stats();
223 223
 		}
224 224
 		$template = Libraries::locate("test.templates.{$config['reporter']}", $template, array(
225  
-			'filter' => false, 'type' => 'file', 'suffix' => ".{$config['format']}.php",
  225
+			'filter' => false, 'type' => 'file', 'suffix' => ".{$config['format']}.php"
226 226
 		));
227 227
 		$params = compact('template', 'data', 'config');
228 228
 
4  libraries/lithium/test/Unit.php
@@ -227,7 +227,7 @@ public function assert($expression, $message = false, $data = array()) {
227 227
 			'file'      => $trace[$i - 1]['file'],
228 228
 			'line'      => $trace[$i - 1]['line'],
229 229
 			'method'    => $trace[$i]['function'],
230  
-			'assertion' => $trace[$i - 1]['function'],
  230
+			'assertion' => $trace[$i - 1]['function']
231 231
 		);
232 232
 		$this->_result($expression ? 'pass' : 'fail', $result);
233 233
 		return $expression;
@@ -739,7 +739,7 @@ protected function _reportException($exception, $lineFlag = null) {
739 739
 				'scope'        => array_filter(array(
740 740
 					'functionRef' => __NAMESPACE__ . '\{closure}',
741 741
 					'line'        => $lineFlag
742  
-				)),
  742
+				))
743 743
 			));
744 744
 		}
745 745
 		$this->_result('exception', $exception + array(
132  libraries/lithium/tests/cases/action/RequestTest.php
@@ -343,7 +343,7 @@ public function testSingleFileNormalization() {
343 343
 				'type' => 'image/jpeg',
344 344
 				'tmp_name' => '/private/var/tmp/phpows38J',
345 345
 				'error' => 0,
346  
-				'size' => 418,
  346
+				'size' => 418
347 347
 		  	)
348 348
 		);
349 349
 		$request = new Request();
@@ -353,7 +353,7 @@ public function testSingleFileNormalization() {
353 353
 			'type' => 'image/jpeg',
354 354
 			'tmp_name' => '/private/var/tmp/phpows38J',
355 355
 			'error' => 0,
356  
-			'size' => 418,
  356
+			'size' => 418
357 357
 		));
358 358
 		$result = $request->data;
359 359
 		$this->assertEqual($expected, $result);
@@ -367,27 +367,27 @@ public function testDeepFileNormalization() {
367 367
 				'name' => array(
368 368
 			  		0 => 'file 2.jpg',
369 369
 			  		1 => 'file 3.jpg',
370  
-			  		2 => 'file 4.jpg',
  370
+			  		2 => 'file 4.jpg'
371 371
 				),
372 372
 				'type' => array(
373 373
 			  		0 => 'image/jpeg',
374 374
 			  		1 => 'image/jpeg',
375  
-			  		2 => 'image/jpeg',
  375
+			  		2 => 'image/jpeg'
376 376
 				),
377 377
 				'tmp_name' => array(
378 378
 			  		0 => '/private/var/tmp/phpF5vsky',
379 379
 			  		1 => '/private/var/tmp/phphRJ2zW',
380  
-			  		2 => '/private/var/tmp/phprI92L1',
  380
+			  		2 => '/private/var/tmp/phprI92L1'
381 381
 				),
382 382
 				'error' => array(
383 383
 			  		0 => 0,
384 384
 			  		1 => 0,
385  
-			  		2 => 0,
  385
+			  		2 => 0
386 386
 				),
387 387
 				'size' => array(
388 388
 			  		0 => 418,
389 389
 			  		1 => 418,
390  
-			  		2 => 418,
  390
+			  		2 => 418
391 391
 				)
392 392
 			)
393 393
 		);
@@ -399,22 +399,22 @@ public function testDeepFileNormalization() {
399 399
 				'type' => 'image/jpeg',
400 400
 				'tmp_name' => '/private/var/tmp/phpF5vsky',
401 401
 				'error' => 0,
402  
-				'size' => 418,
  402
+				'size' => 418
403 403
 			),
404 404
 			1 => array(
405 405
 				'name' => 'file 3.jpg',
406 406
 				'type' => 'image/jpeg',
407 407
 				'tmp_name' => '/private/var/tmp/phphRJ2zW',
408 408
 				'error' => 0,
409  
-				'size' => 418,
  409
+				'size' => 418
410 410
 			),
411 411
 			2 => array(
412 412
 				'name' => 'file 4.jpg',
413 413
 				'type' => 'image/jpeg',
414 414
 				'tmp_name' => '/private/var/tmp/phprI92L1',
415 415
 				'error' => 0,
416  
-				'size' => 418,
417  
-			),
  416
+				'size' => 418
  417
+			)
418 418
 		));
419 419
 		$result = $request->data;
420 420
 		$this->assertEqual($expected, $result);
@@ -425,20 +425,20 @@ public function testDeepFileNormalization() {
425 425
 	public function testNestedFilesNormalization() {
426 426
 		$_FILES = array('Image' => array(
427 427
 			'name' => array(
428  
-		  		'file' => 'file 5.jpg',
  428
+		  		'file' => 'file 5.jpg'
429 429
 			),
430 430
 			'type' => array(
431  
-		  		'file' => 'image/jpeg',
  431
+		  		'file' => 'image/jpeg'
432 432
 			),
433 433
 			'tmp_name' => array(
434  
-		  		'file' => '/private/var/tmp/phpAmSDL4',
  434
+		  		'file' => '/private/var/tmp/phpAmSDL4'
435 435
 			),
436 436
 			'error' => array(
437  
-		  		'file' => 0,
  437
+		  		'file' => 0
438 438
 			),
439 439
 			'size' => array(
440  
-		  		'file' => 418,
441  
-			),
  440
+		  		'file' => 418
  441
+			)
442 442
 	  	));
443 443
 		$request = new Request();
444 444
 
@@ -448,7 +448,7 @@ public function testNestedFilesNormalization() {
448 448
 				'type' => 'image/jpeg',
449 449
 				'tmp_name' => '/private/var/tmp/phpAmSDL4',
450 450
 				'error' => 0,
451  
-				'size' => 418,
  451
+				'size' => 418
452 452
 		  	)
453 453
 		));
454 454
 
@@ -464,35 +464,35 @@ public function testNestedDeepFilesNormalization() {
464 464
 		  		'files' => array(
465 465
 					0 => 'file 6.jpg',
466 466
 					1 => 'file 7.jpg',
467  
-					2 => 'file 8.jpg',
468  
-		  		),
  467
+					2 => 'file 8.jpg'
  468
+		  		)
469 469
 			),
470 470
 			'type' => array(
471 471
 		  		'files' => array(
472 472
 					0 => 'image/jpeg',
473 473
 					1 => 'image/jpeg',
474  
-					2 => 'image/jpeg',
475  
-		  		),
  474
+					2 => 'image/jpeg'
  475
+		  		)
476 476
 			),
477 477
 			'tmp_name' => array(
478 478
 		  		'files' => array(
479 479
 					0 => '/private/var/tmp/php2eViak',
480 480
 					1 => '/private/var/tmp/phpMsC5Pp',
481  
-					2 => '/private/var/tmp/phpm2nm98',
482  
-		  		),
  481
+					2 => '/private/var/tmp/phpm2nm98'
  482
+		  		)
483 483
 			),
484 484
 			'error' => array(
485 485
 				'files' => array(
486 486
 					0 => 0,
487 487
 					1 => 0,
488  
-					2 => 0,
489  
-		  		),
  488
+					2 => 0
  489
+		  		)
490 490
 			),
491 491
 			'size' => array(
492 492
 		  		'files' => array(
493 493
 					0 => 418,
494 494
 					1 => 418,
495  
-					2 => 418,
  495
+					2 => 418
496 496
 		  		)
497 497
 			)
498 498
 		));
@@ -505,22 +505,22 @@ public function testNestedDeepFilesNormalization() {
505 505
 					'type' => 'image/jpeg',
506 506
 					'tmp_name' => '/private/var/tmp/php2eViak',
507 507
 					'error' => 0,
508  
-					'size' => 418,
  508
+					'size' => 418
509 509
 				),
510 510
 				1 => array(
511 511
 					'name' => 'file 7.jpg',
512 512
 					'type' => 'image/jpeg',
513 513
 					'tmp_name' => '/private/var/tmp/phpMsC5Pp',
514 514
 					'error' => 0,
515  
-					'size' => 418,
  515
+					'size' => 418
516 516
 				),
517 517
 				2 => array(
518 518
 					'name' => 'file 8.jpg',
519 519
 					'type' => 'image/jpeg',
520 520
 					'tmp_name' => '/private/var/tmp/phpm2nm98',
521 521
 					'error' => 0,
522  
-					'size' => 418,
523  
-				),
  522
+					'size' => 418
  523
+				)
524 524
 		  	)
525 525
 		));
526 526
 		$result = $request->data;
@@ -536,89 +536,89 @@ public function testMixedFilesNormalization() {
536 536
 				'type' => 'image/jpeg',
537 537
 				'tmp_name' => '/private/var/tmp/phpows38J',
538 538
 				'error' => 0,
539  
-				'size' => 418,
  539
+				'size' => 418
540 540
 		  	),
541 541
 		  	'files' =>  array(
542 542
 				'name' => array(
543 543
 			  		0 => 'file 2.jpg',
544 544
 			  		1 => 'file 3.jpg',
545  
-			  		2 => 'file 4.jpg',
  545
+			  		2 => 'file 4.jpg'
546 546
 				),
547 547
 				'type' => array(
548 548
 			  		0 => 'image/jpeg',
549 549
 			  		1 => 'image/jpeg',
550  
-			  		2 => 'image/jpeg',
  550
+			  		2 => 'image/jpeg'
551 551
 				),
552 552
 				'tmp_name' => array(
553 553
 			  		0 => '/private/var/tmp/phpF5vsky',
554 554
 			  		1 => '/private/var/tmp/phphRJ2zW',
555  
-			  		2 => '/private/var/tmp/phprI92L1',
  555
+			  		2 => '/private/var/tmp/phprI92L1'
556 556
 				),
557 557
 				'error' => array(
558 558
 			  		0 => 0,
559 559
 			  		1 => 0,
560  
-			  		2 => 0,
  560
+			  		2 => 0
561 561
 				),
562 562
 				'size' => array(
563 563
 			  		0 => 418,
564 564
 			  		1 => 418,
565  
-			  		2 => 418,
566  
-				),
  565
+			  		2 => 418
  566
+				)
567 567
 		  	),
568 568
 		  	'Image' => array(
569 569
 				'name' => array(
570  
-			  		'file' => 'file 5.jpg',
  570
+			  		'file' => 'file 5.jpg'
571 571
 				),
572 572
 				'type' => array(
573  
-			  		'file' => 'image/jpeg',
  573
+			  		'file' => 'image/jpeg'
574 574
 				),
575 575
 				'tmp_name' => array(
576  
-			  		'file' => '/private/var/tmp/phpAmSDL4',
  576
+			  		'file' => '/private/var/tmp/phpAmSDL4'
577 577
 				),
578 578
 				'error' => array(
579  
-			  		'file' => 0,
  579
+			  		'file' => 0
580 580
 				),
581 581
 				'size' => array(
582  
-			  		'file' => 418,
583  
-				),
  582
+			  		'file' => 418
  583
+				)
584 584
 		  	),
585 585
 		  	'Photo' => array(
586 586
 				'name' => array(
587 587
 			  		'files' => array(
588 588
 						0 => 'file 6.jpg',
589 589
 						1 => 'file 7.jpg',
590  
-						2 => 'file 8.jpg',
591  
-			  		),
  590
+						2 => 'file 8.jpg'
  591
+			  		)
592 592
 				),
593 593
 				'type' => array(
594 594
 			  		'files' => array(
595 595
 						0 => 'image/jpeg',
596 596
 						1 => 'image/jpeg',
597  
-						2 => 'image/jpeg',
598  
-			  		),
  597
+						2 => 'image/jpeg'
  598
+			  		)
599 599
 				),
600 600
 				'tmp_name' => array(
601 601
 			  		'files' => array(
602 602
 						0 => '/private/var/tmp/php2eViak',
603 603
 						1 => '/private/var/tmp/phpMsC5Pp',
604  
-						2 => '/private/var/tmp/phpm2nm98',
605  
-			  		),
  604
+						2 => '/private/var/tmp/phpm2nm98'
  605
+			  		)
606 606
 				),
607 607
 				'error' => array(
608 608
 					'files' => array(
609 609
 						0 => 0,
610 610
 						1 => 0,
611  
-						2 => 0,
612  
-			  		),
  611
+						2 => 0
  612
+			  		)
613 613
 				),
614 614
 				'size' => array(
615 615
 			  		'files' => array(
616 616
 						0 => 418,
617 617
 						1 => 418,
618  
-						2 => 418,
619  
-			  		),
620  
-				),
621  
-		  	),
  618
+						2 => 418
  619
+			  		)
  620
+				)
  621
+		  	)
622 622
 		);
623 623
 		$expected = array(
624 624
 			'file' => array(
@@ -626,7 +626,7 @@ public function testMixedFilesNormalization() {
626 626
 				'type' => 'image/jpeg',
627 627
 				'tmp_name' => '/private/var/tmp/phpows38J',
628 628
 				'error' => 0,
629  
-				'size' => 418,
  629
+				'size' => 418
630 630
 		  	),
631 631
 			'files' => array(
632 632
 				0 => array(
@@ -634,22 +634,22 @@ public function testMixedFilesNormalization() {
634 634
 					'type' => 'image/jpeg',
635 635
 					'tmp_name' => '/private/var/tmp/phpF5vsky',
636 636
 					'error' => 0,
637  
-					'size' => 418,
  637
+					'size' => 418
638 638
 				),
639 639
 				1 => array(
640 640
 					'name' => 'file 3.jpg',
641 641
 					'type' => 'image/jpeg',
642 642
 					'tmp_name' => '/private/var/tmp/phphRJ2zW',
643 643
 					'error' => 0,
644  
-					'size' => 418,
  644
+					'size' => 418
645 645
 				),
646 646
 				2 => array(
647 647
 					'name' => 'file 4.jpg',
648 648
 					'type' => 'image/jpeg',
649 649
 					'tmp_name' => '/private/var/tmp/phprI92L1',
650 650
 					'error' => 0,
651  
-					'size' => 418,
652  
-				),
  651
+					'size' => 418
  652
+				)
653 653
 			),
654 654
 			'Image' => array(
655 655
 				'file' => array(
@@ -657,7 +657,7 @@ public function testMixedFilesNormalization() {
657 657
 					'type' => 'image/jpeg',
658 658
 					'tmp_name' => '/private/var/tmp/phpAmSDL4',
659 659
 					'error' => 0,
660  
-					'size' => 418,
  660
+					'size' => 418
661 661
 			  	)
662 662
 			),
663 663
 			'Photo' => array(
@@ -667,22 +667,22 @@ public function testMixedFilesNormalization() {
667 667
 						'type' => 'image/jpeg',
668 668
 						'tmp_name' => '/private/var/tmp/php2eViak',
669 669
 						'error' => 0,
670  
-						'size' => 418,
  670
+						'size' => 418
671 671
 					),
672 672
 					1 => array(
673 673
 						'name' => 'file 7.jpg',
674 674
 						'type' => 'image/jpeg',
675 675
 						'tmp_name' => '/private/var/tmp/phpMsC5Pp',
676 676
 						'error' => 0,
677  
-						'size' => 418,
  677
+						'size' => 418
678 678
 					),
679 679
 					2 => array(
680 680
 						'name' => 'file 8.jpg',
681 681
 						'type' => 'image/jpeg',
682 682
 						'tmp_name' => '/private/var/tmp/phpm2nm98',
683 683
 						'error' => 0,
684  
-						'size' => 418,
685  
-					),
  684
+						'size' => 418
  685
+					)
686 686
 			  	)
687 687
 			)
688 688
 		);
2  libraries/lithium/tests/cases/core/AdaptableTest.php
@@ -174,7 +174,7 @@ public function testApplySingleStrategy() {
174 174
 		$items = array('default' => array(
175 175
 			'filters' => array(),
176 176
 			'adapter' => null,
177  
-			'strategies' => array('lithium\tests\mocks\storage\cache\strategy\MockSerializer'),
  177
+			'strategies' => array('lithium\tests\mocks\storage\cache\strategy\MockSerializer')
178 178
 		));
179 179
 		$strategy::config($items);
180 180
 		$result = $strategy::config();
2 </