Permalink
Browse files

"return" is a statement

git-svn-id: http://svn.php.net/repository/pear/packages/MDB/trunk@189830 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent d19bf0e commit f573340b22ebcebe540492f85565bb6a8cbe95e3 @quipo quipo committed Jul 4, 2005
Showing with 968 additions and 992 deletions.
  1. +12 −12 MDB.php
  2. +278 −285 MDB/Common.php
  3. +5 −6 MDB/Date.php
  4. +123 −123 MDB/Manager.php
  5. +46 −46 MDB/Modules/LOB.php
  6. +60 −60 MDB/Modules/Manager/Common.php
  7. +32 −32 MDB/Modules/Manager/ibase.php
  8. +67 −75 MDB/Modules/Manager/mysql.php
  9. +31 −31 MDB/Modules/Manager/pgsql.php
  10. +65 −65 MDB/Parser.php
  11. +55 −55 MDB/ibase.php
  12. +102 −109 MDB/mysql.php
  13. +92 −93 MDB/pgsql.php
View
24 MDB.php
@@ -254,7 +254,7 @@ function &factory($type)
@$db =& new $class_name;
- return($db);
+ return $db;
}
// }}}
@@ -294,9 +294,9 @@ function &connect($dsn, $options = FALSE)
$class_name = 'MDB_'.$type;
$include = 'MDB/'.$type.'.php';
} else {
- return(PEAR::raiseError(NULL, MDB_ERROR_NOT_FOUND,
+ return PEAR::raiseError(NULL, MDB_ERROR_NOT_FOUND,
NULL, NULL, 'no RDBMS driver specified',
- 'MDB_Error', TRUE));
+ 'MDB_Error', TRUE);
}
if(is_array($options)
@@ -312,7 +312,7 @@ function &connect($dsn, $options = FALSE)
if(!class_exists($class_name)) {
$error = PEAR::raiseError(NULL, MDB_ERROR_NOT_FOUND, NULL, NULL,
'Unable to include the '.$include.' file', 'MDB_Error', TRUE);
- return($error);
+ return $error;
}
@$db =& new $class_name();
@@ -326,10 +326,10 @@ function &connect($dsn, $options = FALSE)
if (MDB::isError($err)) {
$dsn = $db->getDSN();
$err->addUserInfo($dsn);
- return($err);
+ return $err;
}
}
- return($db);
+ return $db;
}
// }}}
@@ -425,7 +425,7 @@ function loadFile($file)
*/
function apiVersion()
{
- return(1);
+ return 1;
}
// }}}
@@ -476,9 +476,9 @@ function isManip($query)
$manips = 'INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|
ALTER|GRANT|REVOKE|LOCK|UNLOCK|ROLLBACK|COMMIT';
if (preg_match('/^\s*"?('.$manips.')\s+/i', $query)) {
- return(TRUE);
+ return TRUE;
}
- return(FALSE);
+ return FALSE;
}
// }}}
@@ -581,7 +581,7 @@ function errorMessage($value)
function parseDSN($dsn)
{
if (is_array($dsn)) {
- return($dsn);
+ return $dsn;
}
$parsed = array(
@@ -616,7 +616,7 @@ function parseDSN($dsn)
}
if (empty($dsn)) {
- return($parsed);
+ return $parsed;
}
// Get (if found): username and password
@@ -691,7 +691,7 @@ function parseDSN($dsn)
}
}
- return($parsed);
+ return $parsed;
}
}
Oops, something went wrong.

0 comments on commit f573340

Please sign in to comment.