cvs: pear /MDB2/MDB2/Driver fbsql.php ibase.php mysqli.php oci8.php /MDB2/tests test.php testUtils.php
| From: | Lukas Smith | Date: | Mon, 23 May 2005 19:34:12 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver fbsql.php ibase.php mysqli.php oci8.php /MDB2/tests test.php testUtils.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32082@lists.php.net to get a copy of this message | ||
lsmith Mon May 23 15:34:12 2005 EDT
Modified files:
/pear/MDB2/MDB2/Driver fbsql.php ibase.php mysqli.php oci8.php
/pear/MDB2/tests test.php testUtils.php
Log:
- CS fixes
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/fbsql.php?r1=1.61&r2=1.62&ty=u Index: pear/MDB2/MDB2/Driver/fbsql.php diff -u pear/MDB2/MDB2/Driver/fbsql.php:1.61 pear/MDB2/MDB2/Driver/fbsql.php:1.62 --- pear/MDB2/MDB2/Driver/fbsql.php:1.61 Mon Apr 25 09:09:03 2005 +++ pear/MDB2/MDB2/Driver/fbsql.php Mon May 23 15:34:12 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: fbsql.php,v 1.61 2005/04/25 13:09:03 lsmith Exp $ +// $Id: fbsql.php,v 1.62 2005/05/23 19:34:12 lsmith Exp $ // /** @@ -412,7 +412,7 @@ if (is_numeric($value)) { $query = "DELETE FROM $sequence_name WHERE ".$this->options['seqcol_name']." < $value;"; $result = $this->_doQuery($query, true); - if(PEAR::isError($result)) { + if (PEAR::isError($result)) { $this->warnings[] = 'nextID: could not delete previous sequence table values from '.$seq_name; } } http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/ibase.php?r1=1.91&r2=1.92&ty=u Index: pear/MDB2/MDB2/Driver/ibase.php diff -u pear/MDB2/MDB2/Driver/ibase.php:1.91 pear/MDB2/MDB2/Driver/ibase.php:1.92 --- pear/MDB2/MDB2/Driver/ibase.php:1.91 Sat May 21 19:03:02 2005 +++ pear/MDB2/MDB2/Driver/ibase.php Mon May 23 15:34:12 2005 @@ -43,7 +43,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.91 2005/05/21 23:03:02 lsmith Exp $ +// $Id: ibase.php,v 1.92 2005/05/23 19:34:12 lsmith Exp $ /** * MDB2 FireBird/InterBase driver @@ -507,9 +507,9 @@ $c_position = strpos($query, $colon, $position); if ($q_position && $c_position) { $p_position = min($q_position, $c_position); - } elseif($q_position) { + } elseif ($q_position) { $p_position = $q_position; - } elseif($c_position) { + } elseif ($c_position) { $p_position = $c_position; } else { break; http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mysqli.php?r1=1.22&r2=1.23&ty=u Index: pear/MDB2/MDB2/Driver/mysqli.php diff -u pear/MDB2/MDB2/Driver/mysqli.php:1.22 pear/MDB2/MDB2/Driver/mysqli.php:1.23 --- pear/MDB2/MDB2/Driver/mysqli.php:1.22 Sat May 21 19:06:33 2005 +++ pear/MDB2/MDB2/Driver/mysqli.php Mon May 23 15:34:12 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.22 2005/05/21 23:06:33 lsmith Exp $ +// $Id: mysqli.php,v 1.23 2005/05/23 19:34:12 lsmith Exp $ // /** @@ -531,9 +531,9 @@ $c_position = strpos($query, $colon, $position); if ($q_position && $c_position) { $p_position = min($q_position, $c_position); - } elseif($q_position) { + } elseif ($q_position) { $p_position = $q_position; - } elseif($c_position) { + } elseif ($c_position) { $p_position = $c_position; } else { break; @@ -852,7 +852,7 @@ if (isset($this->values)) { $this->_assignBindColumns($row); } - if (isset($this->types)) { +z if (isset($this->types)) { $row = $this->db->datatype->convertResultRow($this->types, $row); } if ($fetchmode === MDB2_FETCHMODE_OBJECT) { @@ -1044,7 +1044,7 @@ $data = substr($value, 0, $this->db->options['lob_buffer_length']); $value = substr($value, $this->db->options['lob_buffer_length']); mysqli_stmt_send_long_data($this->statement, $parameter, $data); - } while($value); + } while ($value); $parameters[] = null; $parameters[1].= 'b'; } else { http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/oci8.php?r1=1.75&r2=1.76&ty=u Index: pear/MDB2/MDB2/Driver/oci8.php diff -u pear/MDB2/MDB2/Driver/oci8.php:1.75 pear/MDB2/MDB2/Driver/oci8.php:1.76 --- pear/MDB2/MDB2/Driver/oci8.php:1.75 Sat May 21 19:02:52 2005 +++ pear/MDB2/MDB2/Driver/oci8.php Mon May 23 15:34:12 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ -// $Id: oci8.php,v 1.75 2005/05/21 23:02:52 lsmith Exp $ +// $Id: oci8.php,v 1.76 2005/05/23 19:34:12 lsmith Exp $ /** * MDB2 OCI8 driver @@ -526,9 +526,9 @@ $c_position = strpos($query, $colon, $position); if ($q_position && $c_position) { $p_position = min($q_position, $c_position); - } elseif($q_position) { + } elseif ($q_position) { $p_position = $q_position; - } elseif($c_position) { + } elseif ($c_position) { $p_position = $c_position; } else { break; http://cvs.php.net/diff.php/pear/MDB2/tests/test.php?r1=1.7&r2=1.8&ty=u Index: pear/MDB2/tests/test.php diff -u pear/MDB2/tests/test.php:1.7 pear/MDB2/tests/test.php:1.8 --- pear/MDB2/tests/test.php:1.7 Fri Mar 4 05:59:46 2005 +++ pear/MDB2/tests/test.php Mon May 23 15:34:12 2005 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: test.php,v 1.7 2005/03/04 10:59:46 lsmith Exp $ +// $Id: test.php,v 1.8 2005/05/23 19:34:12 lsmith Exp $ /* This is a small test suite for MDB2 using PHPUnit @@ -65,7 +65,7 @@ function htmlErrorHandler($errno, $errstr, $errfile, $errline) { - if((!$GLOBALS['_show_silenced'] && !error_reporting()) || $errno == 2048) { + if ((!$GLOBALS['_show_silenced'] && !error_reporting()) || $errno == 2048) { return; } echo '<pre>'; http://cvs.php.net/diff.php/pear/MDB2/tests/testUtils.php?r1=1.7&r2=1.8&ty=u Index: pear/MDB2/tests/testUtils.php diff -u pear/MDB2/tests/testUtils.php:1.7 pear/MDB2/tests/testUtils.php:1.8 --- pear/MDB2/tests/testUtils.php:1.7 Wed Jan 12 07:34:09 2005 +++ pear/MDB2/tests/testUtils.php Mon May 23 15:34:12 2005 @@ -37,7 +37,7 @@ function getBacktrace() { $message = ''; - if(!function_exists('debug_backtrace')) { + if (!function_exists('debug_backtrace')) { $message.= 'function debug_backtrace does not exists'."\n"; } @@ -45,20 +45,20 @@ array_shift($debug_backtrace); $message.= 'Debug backtrace:'."\n"; - foreach($debug_backtrace as $trace_item) { + foreach ($debug_backtrace as $trace_item) { $message.= "\t" . ' @ '; - if(isset($trace_item['file'])) { + if (isset($trace_item['file'])) { $message.= basename($trace_item['file']) . ':' . $trace_item['line']; } else { $message.= '- PHP inner-code - '; } $message.= ' -- '; - if(isset($trace_item['class'])) { + if (isset($trace_item['class'])) { $message.= $trace_item['class'] . $trace_item['type']; } $message.= $trace_item['function']; - if(isset($trace_item['args']) && is_array($trace_item['args'])) { + if (isset($trace_item['args']) && is_array($trace_item['args'])) { $message.= '('.@implode(', ', $trace_item['args']).')'; } else { $message.= '()'; @@ -84,7 +84,7 @@ $GLOBALS['_show_silenced'] = false; function errorHandler($errno, $errstr, $errfile, $errline) { - if((!$GLOBALS['_show_silenced'] && !error_reporting()) || $errno == 2048) { + if ((!$GLOBALS['_show_silenced'] && !error_reporting()) || $errno == 2048) { return; } $message = "\n"; @@ -113,7 +113,7 @@ } set_error_handler('errorHandler'); -if(function_exists('xdebug_disable')) { +if (function_exists('xdebug_disable')) { xdebug_disable(); } ?> \ No newline at end of file
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/fbsql.php?r1=1.61&r2=1.62&ty=u Index: pear/MDB2/MDB2/Driver/fbsql.php diff -u pear/MDB2/MDB2/Driver/fbsql.php:1.61 pear/MDB2/MDB2/Driver/fbsql.php:1.62 --- pear/MDB2/MDB2/Driver/fbsql.php:1.61 Mon Apr 25 09:09:03 2005 +++ pear/MDB2/MDB2/Driver/fbsql.php Mon May 23 15:34:12 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: fbsql.php,v 1.61 2005/04/25 13:09:03 lsmith Exp $ +// $Id: fbsql.php,v 1.62 2005/05/23 19:34:12 lsmith Exp $ // /** @@ -412,7 +412,7 @@ if (is_numeric($value)) { $query = "DELETE FROM $sequence_name WHERE ".$this->options['seqcol_name']." < $value;"; $result = $this->_doQuery($query, true); - if(PEAR::isError($result)) { + if (PEAR::isError($result)) { $this->warnings[] = 'nextID: could not delete previous sequence table values from '.$seq_name; } } http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/ibase.php?r1=1.91&r2=1.92&ty=u Index: pear/MDB2/MDB2/Driver/ibase.php diff -u pear/MDB2/MDB2/Driver/ibase.php:1.91 pear/MDB2/MDB2/Driver/ibase.php:1.92 --- pear/MDB2/MDB2/Driver/ibase.php:1.91 Sat May 21 19:03:02 2005 +++ pear/MDB2/MDB2/Driver/ibase.php Mon May 23 15:34:12 2005 @@ -43,7 +43,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.91 2005/05/21 23:03:02 lsmith Exp $ +// $Id: ibase.php,v 1.92 2005/05/23 19:34:12 lsmith Exp $ /** * MDB2 FireBird/InterBase driver @@ -507,9 +507,9 @@ $c_position = strpos($query, $colon, $position); if ($q_position && $c_position) { $p_position = min($q_position, $c_position); - } elseif($q_position) { + } elseif ($q_position) { $p_position = $q_position; - } elseif($c_position) { + } elseif ($c_position) { $p_position = $c_position; } else { break; http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mysqli.php?r1=1.22&r2=1.23&ty=u Index: pear/MDB2/MDB2/Driver/mysqli.php diff -u pear/MDB2/MDB2/Driver/mysqli.php:1.22 pear/MDB2/MDB2/Driver/mysqli.php:1.23 --- pear/MDB2/MDB2/Driver/mysqli.php:1.22 Sat May 21 19:06:33 2005 +++ pear/MDB2/MDB2/Driver/mysqli.php Mon May 23 15:34:12 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.22 2005/05/21 23:06:33 lsmith Exp $ +// $Id: mysqli.php,v 1.23 2005/05/23 19:34:12 lsmith Exp $ // /** @@ -531,9 +531,9 @@ $c_position = strpos($query, $colon, $position); if ($q_position && $c_position) { $p_position = min($q_position, $c_position); - } elseif($q_position) { + } elseif ($q_position) { $p_position = $q_position; - } elseif($c_position) { + } elseif ($c_position) { $p_position = $c_position; } else { break; @@ -852,7 +852,7 @@ if (isset($this->values)) { $this->_assignBindColumns($row); } - if (isset($this->types)) { +z if (isset($this->types)) { $row = $this->db->datatype->convertResultRow($this->types, $row); } if ($fetchmode === MDB2_FETCHMODE_OBJECT) { @@ -1044,7 +1044,7 @@ $data = substr($value, 0, $this->db->options['lob_buffer_length']); $value = substr($value, $this->db->options['lob_buffer_length']); mysqli_stmt_send_long_data($this->statement, $parameter, $data); - } while($value); + } while ($value); $parameters[] = null; $parameters[1].= 'b'; } else { http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/oci8.php?r1=1.75&r2=1.76&ty=u Index: pear/MDB2/MDB2/Driver/oci8.php diff -u pear/MDB2/MDB2/Driver/oci8.php:1.75 pear/MDB2/MDB2/Driver/oci8.php:1.76 --- pear/MDB2/MDB2/Driver/oci8.php:1.75 Sat May 21 19:02:52 2005 +++ pear/MDB2/MDB2/Driver/oci8.php Mon May 23 15:34:12 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ -// $Id: oci8.php,v 1.75 2005/05/21 23:02:52 lsmith Exp $ +// $Id: oci8.php,v 1.76 2005/05/23 19:34:12 lsmith Exp $ /** * MDB2 OCI8 driver @@ -526,9 +526,9 @@ $c_position = strpos($query, $colon, $position); if ($q_position && $c_position) { $p_position = min($q_position, $c_position); - } elseif($q_position) { + } elseif ($q_position) { $p_position = $q_position; - } elseif($c_position) { + } elseif ($c_position) { $p_position = $c_position; } else { break; http://cvs.php.net/diff.php/pear/MDB2/tests/test.php?r1=1.7&r2=1.8&ty=u Index: pear/MDB2/tests/test.php diff -u pear/MDB2/tests/test.php:1.7 pear/MDB2/tests/test.php:1.8 --- pear/MDB2/tests/test.php:1.7 Fri Mar 4 05:59:46 2005 +++ pear/MDB2/tests/test.php Mon May 23 15:34:12 2005 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: test.php,v 1.7 2005/03/04 10:59:46 lsmith Exp $ +// $Id: test.php,v 1.8 2005/05/23 19:34:12 lsmith Exp $ /* This is a small test suite for MDB2 using PHPUnit @@ -65,7 +65,7 @@ function htmlErrorHandler($errno, $errstr, $errfile, $errline) { - if((!$GLOBALS['_show_silenced'] && !error_reporting()) || $errno == 2048) { + if ((!$GLOBALS['_show_silenced'] && !error_reporting()) || $errno == 2048) { return; } echo '<pre>'; http://cvs.php.net/diff.php/pear/MDB2/tests/testUtils.php?r1=1.7&r2=1.8&ty=u Index: pear/MDB2/tests/testUtils.php diff -u pear/MDB2/tests/testUtils.php:1.7 pear/MDB2/tests/testUtils.php:1.8 --- pear/MDB2/tests/testUtils.php:1.7 Wed Jan 12 07:34:09 2005 +++ pear/MDB2/tests/testUtils.php Mon May 23 15:34:12 2005 @@ -37,7 +37,7 @@ function getBacktrace() { $message = ''; - if(!function_exists('debug_backtrace')) { + if (!function_exists('debug_backtrace')) { $message.= 'function debug_backtrace does not exists'."\n"; } @@ -45,20 +45,20 @@ array_shift($debug_backtrace); $message.= 'Debug backtrace:'."\n"; - foreach($debug_backtrace as $trace_item) { + foreach ($debug_backtrace as $trace_item) { $message.= "\t" . ' @ '; - if(isset($trace_item['file'])) { + if (isset($trace_item['file'])) { $message.= basename($trace_item['file']) . ':' . $trace_item['line']; } else { $message.= '- PHP inner-code - '; } $message.= ' -- '; - if(isset($trace_item['class'])) { + if (isset($trace_item['class'])) { $message.= $trace_item['class'] . $trace_item['type']; } $message.= $trace_item['function']; - if(isset($trace_item['args']) && is_array($trace_item['args'])) { + if (isset($trace_item['args']) && is_array($trace_item['args'])) { $message.= '('.@implode(', ', $trace_item['args']).')'; } else { $message.= '()'; @@ -84,7 +84,7 @@ $GLOBALS['_show_silenced'] = false; function errorHandler($errno, $errstr, $errfile, $errline) { - if((!$GLOBALS['_show_silenced'] && !error_reporting()) || $errno == 2048) { + if ((!$GLOBALS['_show_silenced'] && !error_reporting()) || $errno == 2048) { return; } $message = "\n"; @@ -113,7 +113,7 @@ } set_error_handler('errorHandler'); -if(function_exists('xdebug_disable')) { +if (function_exists('xdebug_disable')) { xdebug_disable(); } ?> \ No newline at end of file