Browse Source

Fix a few more coding standards errors.

mark_story 14 years ago
parent
commit
72cb96b727

+ 1 - 1
lib/Cake/Model/Datasource/DboSource.php

@@ -198,7 +198,7 @@ class DboSource extends DataSource {
  * Default fields that are used by the DBO
  *
  * @var array
- */	
+ */
 	protected $_queryDefaults = array(
 		'conditions' => array(),
 		'fields' => null,

+ 1 - 1
lib/Cake/Model/Permission.php

@@ -108,7 +108,7 @@ class Permission extends AppModel {
 		$acoIDs = Set::extract($acoPath, '{n}.' . $this->Aco->alias . '.id');
 
 		$count = count($aroPath);
-		for ($i = 0 ; $i < $count; $i++) {
+		for ($i = 0; $i < $count; $i++) {
 			$permAlias = $this->alias;
 
 			$perms = $this->find('all', array(

+ 2 - 0
lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php

@@ -38,6 +38,7 @@ class TestCacheSession extends CacheSession {
 	protected function _writeSession() {
 		return true;
 	}
+
 }
 
 class TestDatabaseSession extends DatabaseSession {
@@ -45,6 +46,7 @@ class TestDatabaseSession extends DatabaseSession {
 	protected function _writeSession() {
 		return true;
 	}
+
 }
 
 /**

+ 6 - 6
lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php

@@ -836,10 +836,10 @@ class DboSourceTest extends CakeTestCase {
 		$log = $db->getLog();
 		$this->assertEquals($expected, $log['log'][0]);
 	}
-	
+
 /**
  * Test build statement with some fields missing 
- * 
+ *
  * @return void
  */
 	public function testBuildStatementDefaults() {
@@ -850,13 +850,13 @@ class DboSourceTest extends CakeTestCase {
 			array(
 				'fields' => array('DISTINCT(AssetsTag.asset_id)'),
 				'table' => "assets_tags",
-				'alias'=>"AssetsTag",                                          
-				'conditions' => array("Tag.name"=>'foo bar'),
-				'limit' => null,         
+				'alias' => "AssetsTag",
+				'conditions' => array("Tag.name" => 'foo bar'),
+				'limit' => null,
 				'group' => "AssetsTag.asset_id"
 			),
 			$this->Model
 		);
 	}
-	
+
 }