Skip to content
Permalink
Browse files

fix coding standards for whitespaces

  • Loading branch information...
dereuromark committed Nov 14, 2012
1 parent bfbd055 commit 8f78b1e05b2d16ed6ec71ab27fe37f1310a95a7d
@@ -314,7 +314,7 @@ protected function _generateRecords($tableInfo, $recordCount = 1) {
} 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;
@@ -152,10 +152,10 @@ protected static function _setPath($base = null) {
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;
}
@@ -119,7 +119,7 @@ public function connect() {
$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(
@@ -315,7 +315,7 @@ public function resultSet($results) {
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]));
}
@@ -527,11 +527,11 @@ public function lastNumRows($source = null) {
* @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 @@ public function name($data) {
}
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 (

0 comments on commit 8f78b1e

Please sign in to comment.
You can’t perform that action at this time.