Skip to content
This repository
Browse code

Fixed indentation

  • Loading branch information...
commit 12364cac8c5b66c0a39a3991da521b9120dd7b8e 1 parent 0568746
ADmad authored February 28, 2012
36  lib/Cake/Model/Datasource/Database/Mysql.php
@@ -608,30 +608,30 @@ protected function _alterIndexes($table, $indexes) {
608 608
 	public function listDetailedSources($name = null) {
609 609
 		$condition = '';
610 610
 		if (is_string($name)) {
611  
-				$condition = ' WHERE name = ' . $this->value($name);
  611
+			$condition = ' WHERE name = ' . $this->value($name);
612 612
 		}
613 613
 		$result = $this->_connection->query('SHOW TABLE STATUS ' . $condition, PDO::FETCH_ASSOC);
614 614
 
615 615
 		if (!$result) {
616  
-				$result->closeCursor();
617  
-				return array();
  616
+			$result->closeCursor();
  617
+			return array();
618 618
 		} else {
619  
-				$tables = array();
620  
-				foreach ($result as $row) {
621  
-						$tables[$row['Name']] = (array) $row;
622  
-						unset($tables[$row['Name']]['queryString']);
623  
-						if (!empty($row['Collation'])) {
624  
-								$charset = $this->getCharsetName($row['Collation']);
625  
-								if ($charset) {
626  
-										$tables[$row['Name']]['charset'] = $charset;
627  
-								}
628  
-						}
629  
-				}
630  
-				$result->closeCursor();
631  
-				if (is_string($name) && isset($tables[$name])) {
632  
-						return $tables[$name];
  619
+			$tables = array();
  620
+			foreach ($result as $row) {
  621
+				$tables[$row['Name']] = (array) $row;
  622
+				unset($tables[$row['Name']]['queryString']);
  623
+				if (!empty($row['Collation'])) {
  624
+					$charset = $this->getCharsetName($row['Collation']);
  625
+					if ($charset) {
  626
+						$tables[$row['Name']]['charset'] = $charset;
  627
+					}
633 628
 				}
634  
-				return $tables;
  629
+			}
  630
+			$result->closeCursor();
  631
+			if (is_string($name) && isset($tables[$name])) {
  632
+				return $tables[$name];
  633
+			}
  634
+			return $tables;
635 635
 		}
636 636
 	}
637 637
 

0 notes on commit 12364ca

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