Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing superfluous last comma in arrays.

  • Loading branch information...
commit 39b7c4647d37158bf3dc65ac38d0dd7d797f2f38 1 parent a5fc3fb
David Persson davidpersson authored
2  data/model/Relationship.php
View
@@ -101,7 +101,7 @@ public function __construct(array $config = array()) {
'link' => static::LINK_KEY,
'fields' => true,
'fieldName' => null,
- 'constraint' => array(),
+ 'constraint' => array()
);
parent::__construct($config + $defaults);
}
2  net/http/Request.php
View
@@ -156,7 +156,7 @@ public function to($format, array $options = array()) {
'query' => $this->queryString(),
'auth' => $this->_config['auth'],
'content' => $this->body(),
- 'version' => $this->version,
+ 'version' => $this->version
);
$options += $defaults;
4 security/validation/RequestToken.php
View
@@ -56,7 +56,7 @@ class RequestToken {
* @var array
*/
protected static $_classes = array(
- 'session' => 'lithium\storage\Session',
+ 'session' => 'lithium\storage\Session'
);
/**
@@ -102,7 +102,7 @@ public static function get(array $options = array()) {
'regenerate' => false,
'sessionKey' => 'security.token',
'salt' => null,
- 'type' => 'sha512',
+ 'type' => 'sha512'
);
$options += $defaults;
$session = static::$_classes['session'];
6 tests/cases/analysis/logger/adapter/GrowlTest.php
View
@@ -17,7 +17,7 @@ public function testGrowlWrite() {
$growl = new Growl(compact('connection') + array(
'name' => 'Lithium',
- 'title' => 'Lithium log',
+ 'title' => 'Lithium log'
));
$writer = $growl->write('info', 'info: Test message.', array());
$params = array('message' => 'info: Test message.', 'options' => array());
@@ -74,7 +74,7 @@ public function testStickyMessages() {
$growl = new Growl(compact('connection') + array(
'name' => 'Lithium',
- 'title' => 'Lithium log',
+ 'title' => 'Lithium log'
));
$writer = $growl->write('info', 'info: Test message.', array());
$params = array('message' => 'info: Test message.', 'options' => array('sticky' => true));
@@ -100,7 +100,7 @@ public function testMessagePriority() {
$growl = new Growl(compact('connection') + array(
'name' => 'Lithium',
- 'title' => 'Lithium log',
+ 'title' => 'Lithium log'
));
$writer = $growl->write('info', 'info: Test message.', array());
$params = array('message' => 'info: Test message.', 'options' => array(
6 tests/cases/data/source/DatabaseTest.php
View
@@ -154,7 +154,7 @@ public function testSchema() {
$result = $this->db->schema(new Query($options));
$expected = array(
$modelName => array(
- 'id', 'title',
+ 'id', 'title'
),
'MockDatabaseComment' => array(
'body'
@@ -168,7 +168,7 @@ public function testSchema() {
$result = $this->db->schema(new Query($options));
$expected = array(
$modelName => array(
- 'id', 'title',
+ 'id', 'title'
),
'MockDatabaseComment' => array(
'body', 'created'
@@ -259,7 +259,7 @@ public function testNestedQueryConditions() {
'type' => 'read',
'fields' => array('post_id'),
'model' => 'lithium\tests\mocks\data\model\MockDatabaseTagging',
- 'conditions' => array('MockDatabaseTag.tag' => array('foo', 'bar', 'baz')),
+ 'conditions' => array('MockDatabaseTag.tag' => array('foo', 'bar', 'baz'))
))))
));
$result = $this->db->renderCommand($query);
4 tests/cases/net/http/ResponseTest.php
View
@@ -182,7 +182,7 @@ function testTransferEncodingChunkedDecode() {
'1',
'',
'',
- '',
+ ''
));
$response = new Response(compact('message'));
@@ -237,7 +237,7 @@ protected function _createMessage($body, array $headers = array()) {
'Content-Type: text/html; charset=ISO-8859-15',
'Server: Apache/2.2.16 (Debian) mod_ssl/2.2.16 OpenSSL/0.9.8o',
'Transfer-Encoding: chunked',
- 'Vary: Accept-Encoding',
+ 'Vary: Accept-Encoding'
);
return join("\r\n", $headers) . "\r\n\r\n" . $body;
}
2  tests/cases/storage/cache/adapter/RedisTest.php
View
@@ -17,7 +17,7 @@ class RedisTest extends \lithium\test\Unit {
public function __construct(array $config = array()) {
$defaults = array(
'host' => '127.0.0.1',
- 'port' => 6379,
+ 'port' => 6379
);
parent::__construct($config + $defaults);
}
2  tests/cases/template/ViewTest.php
View
@@ -150,7 +150,7 @@ public function testNolayout() {
array (
'template' => 'testFile',
'library' => LITHIUM_LIBRARY_PATH . '/lithium',
- 'type' => 'html',
+ 'type' => 'html'
),
'return' => $expectedPath
));
2  tests/cases/template/helper/FormTest.php
View
@@ -972,7 +972,7 @@ public function testNestedFieldError() {
'type' => 'text', 'name' => 'foo[bar]', 'id' => 'FooBar', 'value' => 'value'
),
'div' => array('class' => 'error'), 'Something bad happened.', '/div',
- array('/div' => array()),
+ array('/div' => array())
));
}
2  tests/integration/data/DatabaseTest.php
View
@@ -37,7 +37,7 @@ class DatabaseTest extends \lithium\test\Unit {
'gallery_id' => null,
'image' => 'me.bmp',
'title' => 'Me.'
- ),
+ )
);
public $gallery = array(
4 tests/integration/data/FieldsTest.php
View
@@ -108,8 +108,8 @@ function testFieldsWithJoins() {
array (
0 => array (
'id' => $eId,
- 'name' => 'John Doe',
- ),
+ 'name' => 'John Doe'
+ )
)
);
$this->assertEqual($expected, $entity->data());
Please sign in to comment.
Something went wrong with that request. Please try again.