diff --git a/lib/Cake/Console/Command/Task/ProjectTask.php b/lib/Cake/Console/Command/Task/ProjectTask.php index e8bf783fa..1890dd8a1 100644 --- a/lib/Cake/Console/Command/Task/ProjectTask.php +++ b/lib/Cake/Console/Command/Task/ProjectTask.php @@ -404,7 +404,7 @@ class ProjectTask extends AppShell { } if ($this->interactive) { $this->hr(); - $this->out(__d('cake_console', 'You need to enable Configure::write(\'Routing.prefixes\',array(\'admin\')) in /app/Config/core.php to use prefix routing.')); + $this->out(__d('cake_console', 'You need to enable Configure::write(\'Routing.prefixes\', array(\'admin\')) in /app/Config/core.php to use prefix routing.')); $this->out(__d('cake_console', 'What would you like the prefix route to be?')); $this->out(__d('cake_console', 'Example: www.example.com/admin/controller')); while (!$admin) { @@ -412,7 +412,7 @@ class ProjectTask extends AppShell { } if ($this->cakeAdmin($admin) !== true) { $this->out(__d('cake_console', 'Unable to write to /app/Config/core.php.')); - $this->out(__d('cake_console', 'You need to enable Configure::write(\'Routing.prefixes\',array(\'admin\')) in /app/Config/core.php to use prefix routing.')); + $this->out(__d('cake_console', 'You need to enable Configure::write(\'Routing.prefixes\', array(\'admin\')) in /app/Config/core.php to use prefix routing.')); $this->_stop(); } return $admin . '_'; diff --git a/lib/Cake/I18n/I18n.php b/lib/Cake/I18n/I18n.php index 9df77da75..890b072fc 100644 --- a/lib/Cake/I18n/I18n.php +++ b/lib/Cake/I18n/I18n.php @@ -590,7 +590,7 @@ class I18n { $string = $string[1]; if (substr($string, 0, 2) === $this->_escape . 'x') { $delimiter = $this->_escape . 'x'; - return implode('', array_map('chr', array_map('hexdec',array_filter(explode($delimiter, $string))))); + return implode('', array_map('chr', array_map('hexdec', array_filter(explode($delimiter, $string))))); } if (substr($string, 0, 2) === $this->_escape . 'd') { $delimiter = $this->_escape . 'd'; diff --git a/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php b/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php index e6e5296e5..b4e881a08 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php @@ -1046,7 +1046,7 @@ class TreeBehaviorNumberTest extends CakeTestCase { array($modelClass => array('name' => '1.2'))); $this->assertEquals($children, $expects); - $topNodes = $this->Tree->children(false, true,array('name')); + $topNodes = $this->Tree->children(false, true, array('name')); $expects = array(array($modelClass => array('name' => '1. Root')), array($modelClass => array('name' => '1.1'))); $this->assertEquals($topNodes, $expects); @@ -1077,7 +1077,7 @@ class TreeBehaviorNumberTest extends CakeTestCase { $this->assertEquals($initialCount, $laterCount); $this->assertEquals($initialTopNodes, $laterTopNodes); - $topNodes = $this->Tree->children(false, true,array('name')); + $topNodes = $this->Tree->children(false, true, array('name')); $expects = array(array($modelClass => array('name' => '1.1')), array($modelClass => array('name' => '1.2')), array($modelClass => array('name' => '1. Root'))); @@ -1148,7 +1148,7 @@ class TreeBehaviorNumberTest extends CakeTestCase { ); $this->assertEquals($children, $expects); - $topNodes = $this->Tree->children(false, true,array('name')); + $topNodes = $this->Tree->children(false, true, array('name')); $expects = array(array($modelClass => array('name' => '1. Root'))); $this->assertEquals($topNodes, $expects); diff --git a/lib/Cake/Test/Case/Model/ModelReadTest.php b/lib/Cake/Test/Case/Model/ModelReadTest.php index 93dfab10e..b3c1dd5ec 100644 --- a/lib/Cake/Test/Case/Model/ModelReadTest.php +++ b/lib/Cake/Test/Case/Model/ModelReadTest.php @@ -232,7 +232,7 @@ class ModelReadTest extends BaseModelTest { array('Product' => array('type' => 'Music'), array('price' => 4)), array('Product' => array('type' => 'Toy'), array('price' => 3)) ); - $result = $Product->find('all',array( + $result = $Product->find('all', array( 'fields' => array('Product.type', 'MIN(Product.price) as price'), 'group' => 'Product.type', 'order' => 'Product.type ASC' @@ -7717,34 +7717,34 @@ class ModelReadTest extends BaseModelTest { $this->assertFalse((bool)$result['Author']['false']); } - $result = $Post->find('first',array('fields' => array('author_id'))); + $result = $Post->find('first', array('fields' => array('author_id'))); $this->assertFalse(isset($result['Post']['two'])); $this->assertFalse(isset($result['Author']['false'])); - $result = $Post->find('first',array('fields' => array('author_id', 'two'))); + $result = $Post->find('first', array('fields' => array('author_id', 'two'))); $this->assertEquals(2, $result['Post']['two']); $this->assertFalse(isset($result['Author']['false'])); - $result = $Post->find('first',array('fields' => array('two'))); + $result = $Post->find('first', array('fields' => array('two'))); $this->assertEquals(2, $result['Post']['two']); $Post->id = 1; $result = $Post->field('two'); $this->assertEquals(2, $result); - $result = $Post->find('first',array( + $result = $Post->find('first', array( 'conditions' => array('two' => 2), 'limit' => 1 )); $this->assertEquals(2, $result['Post']['two']); - $result = $Post->find('first',array( + $result = $Post->find('first', array( 'conditions' => array('two <' => 3), 'limit' => 1 )); $this->assertEquals(2, $result['Post']['two']); - $result = $Post->find('first',array( + $result = $Post->find('first', array( 'conditions' => array('NOT' => array('two >' => 3)), 'limit' => 1 )); diff --git a/lib/Cake/Test/Case/Model/ModelWriteTest.php b/lib/Cake/Test/Case/Model/ModelWriteTest.php index 46ddd8a34..18e81ff1a 100644 --- a/lib/Cake/Test/Case/Model/ModelWriteTest.php +++ b/lib/Cake/Test/Case/Model/ModelWriteTest.php @@ -396,7 +396,7 @@ class ModelWriteTest extends BaseModelTest { $data[$Post->alias]['user_id'] = 301; $Post->save($data); - $users = $User->find('all',array('order' => 'User.id')); + $users = $User->find('all', array('order' => 'User.id')); $this->assertEquals(1, $users[0]['User']['post_count']); $this->assertEquals(2, $users[1]['User']['post_count']); } @@ -423,7 +423,7 @@ class ModelWriteTest extends BaseModelTest { $data[$Post->alias]['uid'] = 301; $Post->save($data); - $users = $User->find('all',array('order' => 'User.uid')); + $users = $User->find('all', array('order' => 'User.uid')); $this->assertEquals(1, $users[0]['User']['post_count']); $this->assertEquals(2, $users[1]['User']['post_count']); } @@ -551,7 +551,7 @@ class ModelWriteTest extends BaseModelTest { )); $data[$Post->alias]['user_id'] = 301; $Post->save($data); - $result = $User->find('all',array('order' => 'User.id')); + $result = $User->find('all', array('order' => 'User.id')); $this->assertEquals(2, $result[0]['User']['post_count']); $this->assertEquals(1, $result[1]['User']['posts_published']); } diff --git a/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php b/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php index 2bfb64f65..71029212d 100644 --- a/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php +++ b/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php @@ -1076,7 +1076,7 @@ class HttpSocketTest extends CakeTestCase { 'pass' => 'hunter2' ) )); - $this->assertEquals($socket->request['auth'],array('Basic' => array('user' => 'joel', 'pass' => 'hunter2'))); + $this->assertEquals($socket->request['auth'], array('Basic' => array('user' => 'joel', 'pass' => 'hunter2'))); $this->assertTrue(strpos($socket->request['header'], 'Authorization: Basic am9lbDpodW50ZXIy') !== false); } diff --git a/lib/Cake/Test/Case/Utility/SetTest.php b/lib/Cake/Test/Case/Utility/SetTest.php index 47efb8d31..52d363356 100644 --- a/lib/Cake/Test/Case/Utility/SetTest.php +++ b/lib/Cake/Test/Case/Utility/SetTest.php @@ -282,15 +282,15 @@ class SetTest extends CakeTestCase { $this->assertEquals($a, $b); $a = array( - array(7,6,4), - array(3,4,5), - array(3,2,array(1,1,1)), + array(7, 6, 4), + array(3, 4, 5), + array(3, 2, array(1, 1, 1)), ); $b = array( - array(3,2,array(1,1,1)), - array(3,4,5), - array(7,6,4), + array(3, 2, array(1, 1, 1)), + array(3, 4, 5), + array(7, 6, 4), ); $a = Set::sort($a, '{n}', 'asc'); diff --git a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php index 78ed898d0..711872dab 100644 --- a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php @@ -3472,10 +3472,10 @@ class FormHelperTest extends CakeTestCase { $this->Form->create('ValidateProfile'); $ValidateProfile = ClassRegistry::getObject('ValidateProfile'); $ValidateProfile->validationErrors['city'] = array('required
'); - $result = $this->Form->input('city',array('error' => array('attributes' => array('escape' => true)))); + $result = $this->Form->input('city', array('error' => array('attributes' => array('escape' => true)))); $this->assertRegExp('/required<br>/', $result); - $result = $this->Form->input('city',array('error' => array('attributes' => array('escape' => false)))); + $result = $this->Form->input('city', array('error' => array('attributes' => array('escape' => false)))); $this->assertRegExp('/required
/', $result); } @@ -8428,7 +8428,7 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); - $result = $this->Form->input('ValidateProfile.1.ValidateItem.2.created',array('empty' => true)); + $result = $this->Form->input('ValidateProfile.1.ValidateItem.2.created', array('empty' => true)); $expected = array( 'div' => array('class' => 'input date'), 'label' => array('for' => 'ValidateProfile1ValidateItem2CreatedMonth'),