Browse Source

fix coding standards for whitespaces

euromark 13 years ago
parent
commit
8f78b1e05b

+ 1 - 1
lib/Cake/Console/Command/Task/FixtureTask.php

@@ -314,7 +314,7 @@ class FixtureTask extends BakeTask {
 						} else {
 							$insert = "Lorem ipsum dolor sit amet";
 							if (!empty($fieldInfo['length'])) {
-								 $insert = substr($insert, 0, (int)$fieldInfo['length'] - 2);
+								$insert = substr($insert, 0, (int)$fieldInfo['length'] - 2);
 							}
 						}
 					break;

+ 2 - 2
lib/Cake/Model/Datasource/CakeSession.php

@@ -152,10 +152,10 @@ class CakeSession {
 			return;
 		}
 		if (strpos($base, 'index.php') !== false) {
-			 $base = str_replace('index.php', '', $base);
+			$base = str_replace('index.php', '', $base);
 		}
 		if (strpos($base, '?') !== false) {
-			 $base = str_replace('?', '', $base);
+			$base = str_replace('?', '', $base);
 		}
 		self::$path = $base;
 	}

+ 1 - 1
lib/Cake/Model/Datasource/Database/Postgres.php

@@ -119,7 +119,7 @@ class Postgres extends DboSource {
 				$this->setEncoding($config['encoding']);
 			}
 			if (!empty($config['schema'])) {
-				 $this->_execute('SET search_path TO ' . $config['schema']);
+				$this->_execute('SET search_path TO ' . $config['schema']);
 			}
 		} catch (PDOException $e) {
 			throw new MissingConnectionException(array(

+ 1 - 1
lib/Cake/Model/Datasource/Database/Sqlite.php

@@ -315,7 +315,7 @@ class Sqlite extends DboSource {
 				continue;
 			}
 			if (preg_match('/\bAS\s+(.*)/i', $selects[$j], $matches)) {
-				 $columnName = trim($matches[1], '"');
+				$columnName = trim($matches[1], '"');
 			} else {
 				$columnName = trim(str_replace('"', '', $selects[$j]));
 			}

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

@@ -527,11 +527,11 @@ class DboSource extends DataSource {
  * @return resource Result resource identifier.
  */
 	public function query() {
-		$args	  = func_get_args();
-		$fields	  = null;
-		$order	  = null;
-		$limit	  = null;
-		$page	  = null;
+		$args = func_get_args();
+		$fields = null;
+		$order = null;
+		$limit = null;
+		$page = null;
 		$recursive = null;
 
 		if (count($args) === 1) {
@@ -830,7 +830,7 @@ class DboSource extends DataSource {
 		}
 		if (preg_match('/^([\w-]+)\((.*)\)$/', $data, $matches)) { // Functions
 			return $this->cacheMethod(__FUNCTION__, $cacheKey,
-				 $matches[1] . '(' . $this->name($matches[2]) . ')'
+				$matches[1] . '(' . $this->name($matches[2]) . ')'
 			);
 		}
 		if (