$',htmlspecialchars($k),' | ',NDebugHelpers::clicka
'?>
-
@@ -288,7 +280,6 @@ htmlSpecialChars($panel['tab'])?> ►
-
@@ -336,7 +327,6 @@ as$k=>$v)echo' ',htmlspecialchars($k),' | ',NDebugHelpers::clickabl
-
@@ -371,7 +361,6 @@ foreach($GLOBALS[$name]as$k=>$v)echo' ',htmlspecialchars($k),' | ',
-
@@ -388,7 +377,6 @@ htmlspecialchars($s),' ';?>
-
@@ -401,7 +389,6 @@ htmlSpecialChars($panel['tab'])?> ▼
-
- Report generated at
diff --git a/examples/Nette/license.txt b/examples/Nette/license.txt
index 26020d87..bd7d86ba 100644
--- a/examples/Nette/license.txt
+++ b/examples/Nette/license.txt
@@ -18,7 +18,6 @@ project or top-level domain, and choose a name that stands on its own merits.
If your stuff is good, it will not take long to establish a reputation for yourselves.
-
New BSD License
---------------
@@ -51,7 +50,6 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
GNU General Public License
--------------------------
diff --git a/examples/connecting-to-databases.php b/examples/connecting-to-databases.php
index 5ff08b8e..4ddf152b 100644
--- a/examples/connecting-to-databases.php
+++ b/examples/connecting-to-databases.php
@@ -23,8 +23,6 @@ try {
echo "\n";
-
-
// connects to SQlite using DibiConnection object
echo 'Connecting to Sqlite: ';
try {
@@ -40,8 +38,6 @@ try {
echo " \n";
-
-
// connects to MySQL using DSN
echo 'Connecting to MySQL: ';
try {
@@ -54,8 +50,6 @@ try {
echo " \n";
-
-
// connects to MySQLi using array
echo 'Connecting to MySQLi: ';
try {
@@ -78,8 +72,6 @@ try {
echo " \n";
-
-
// connects to ODBC
echo 'Connecting to ODBC: ';
try {
@@ -97,8 +89,6 @@ try {
echo " \n";
-
-
// connects to PostgreSql
echo 'Connecting to PostgreSql: ';
try {
@@ -115,8 +105,6 @@ try {
echo " \n";
-
-
// connects to PDO
echo 'Connecting to Sqlite via PDO: ';
try {
@@ -132,7 +120,6 @@ try {
echo " \n";
-
// connects to MS SQL
echo 'Connecting to MS SQL: ';
try {
@@ -150,7 +137,6 @@ try {
echo " \n";
-
// connects to MS SQL 2005
echo 'Connecting to MS SQL 2005: ';
try {
@@ -169,7 +155,6 @@ try {
echo " \n";
-
// connects to Oracle
echo 'Connecting to Oracle: ';
try {
diff --git a/examples/database-reflection.php b/examples/database-reflection.php
index 5d0b29e8..bd5d6b2b 100644
--- a/examples/database-reflection.php
+++ b/examples/database-reflection.php
@@ -14,7 +14,6 @@ dibi::connect(array(
));
-
// retrieve database reflection
$database = dibi::getDatabaseInfo();
@@ -26,7 +25,6 @@ foreach ($database->getTables() as $table) {
echo " \n";
-
// table reflection
$table = $database->getTable('products');
@@ -40,7 +38,6 @@ foreach ($table->getColumns() as $column) {
echo "\n";
-
echo "Indexes";
echo " \n";
foreach ($table->getIndexes() as $index) {
diff --git a/examples/dumping-sql-and-result-set.php b/examples/dumping-sql-and-result-set.php
index 7732dd66..e2200b31 100644
--- a/examples/dumping-sql-and-result-set.php
+++ b/examples/dumping-sql-and-result-set.php
@@ -14,7 +14,6 @@ dibi::connect(array(
));
-
$res = dibi::query('
SELECT * FROM products
INNER JOIN orders USING (product_id)
diff --git a/examples/nette-debug-and-exceptions.php b/examples/nette-debug-and-exceptions.php
index d4b55547..308265af 100644
--- a/examples/nette-debug-and-exceptions.php
+++ b/examples/nette-debug-and-exceptions.php
@@ -31,7 +31,6 @@ dibi::connect(array(
dibi::query('SELECT * FROM customers WHERE customer_id < ?', 38);
-
dibi::connect(array(
'driver' => 'sqlite',
'database' => 'data/sample.sdb',
diff --git a/examples/query-language-and-conditions.php b/examples/query-language-and-conditions.php
index 660c4301..1477ad08 100644
--- a/examples/query-language-and-conditions.php
+++ b/examples/query-language-and-conditions.php
@@ -32,8 +32,6 @@ dibi::test('
// -> SELECT * FROM customers WHERE name LIKE 'K%'
-
-
// if & else & (optional) end
dibi::test("
SELECT *
@@ -45,7 +43,6 @@ dibi::test("
// -> SELECT * FROM people WHERE id > 0 AND bar=2
-
// nested condition
dibi::test('
SELECT *
diff --git a/examples/query-language-basic-examples.php b/examples/query-language-basic-examples.php
index 790a9d1c..8be84025 100644
--- a/examples/query-language-basic-examples.php
+++ b/examples/query-language-basic-examples.php
@@ -29,7 +29,6 @@ dibi::test('
// -> SELECT COUNT(*) as [count] FROM [comments] WHERE [ip] LIKE '192.168.%' AND [date] > 876693600
-
// dibi detects INSERT or REPLACE command
dibi::test('
REPLACE INTO products', array(
@@ -40,7 +39,6 @@ dibi::test('
// -> REPLACE INTO products ([title], [price], [active]) VALUES ('Super product', 318, 1)
-
// multiple INSERT command
$array = array(
'title' => 'Super Product',
@@ -52,7 +50,6 @@ dibi::test("INSERT INTO products", $array, $array, $array);
// -> INSERT INTO products ([title], [price], [brand], [created]) VALUES ('Super Product', ...) , (...) , (...)
-
// dibi detects UPDATE command
dibi::test("
UPDATE colors SET", array(
@@ -63,7 +60,6 @@ dibi::test("
// -> UPDATE colors SET [color]='blue', [order]=12 WHERE id=123
-
// modifier applied to array
$array = array(1, 2, 3);
dibi::test("
@@ -74,7 +70,6 @@ dibi::test("
// -> SELECT * FROM people WHERE id IN ( 1, 2, 3 )
-
// modifier %by for ORDER BY
$order = array(
'field1' => 'asc',
@@ -88,7 +83,6 @@ dibi::test("
// -> SELECT * FROM people ORDER BY [field1] ASC, [field2] DESC
-
// indentifiers and strings syntax mix
dibi::test('UPDATE [table] SET `item` = "5 1/4"" diskette"');
// -> UPDATE [table] SET [item] = '5 1/4" diskette'
diff --git a/examples/result-set-data-types.php b/examples/result-set-data-types.php
index 116922a3..f490b924 100644
--- a/examples/result-set-data-types.php
+++ b/examples/result-set-data-types.php
@@ -34,7 +34,6 @@ dump( $res->fetch() );
// }
-
// using auto-detection (works well with MySQL or other strictly typed databases)
$res = dibi::query('SELECT * FROM [customers]');
diff --git a/examples/using-datetime.php b/examples/using-datetime.php
index 2c02223e..1857e581 100644
--- a/examples/using-datetime.php
+++ b/examples/using-datetime.php
@@ -10,7 +10,6 @@ require_once '../dibi/dibi.php';
date_default_timezone_set('Europe/Prague');
-
// CHANGE TO REAL PARAMETERS!
dibi::connect(array(
'driver' => 'sqlite',
@@ -20,7 +19,6 @@ dibi::connect(array(
));
-
// generate and dump SQL
dibi::test("
INSERT INTO [mytable]", array(
diff --git a/examples/using-extension-methods.php b/examples/using-extension-methods.php
index b91a040a..e35ae475 100644
--- a/examples/using-extension-methods.php
+++ b/examples/using-extension-methods.php
@@ -15,7 +15,6 @@ dibi::connect(array(
));
-
// using the "prototype" to add custom method to class DibiResult
function DibiResult_prototype_fetchShuffle(DibiResult $obj)
{
diff --git a/examples/using-fluent-syntax.php b/examples/using-fluent-syntax.php
index 592dbcf2..950ccfa1 100644
--- a/examples/using-fluent-syntax.php
+++ b/examples/using-fluent-syntax.php
@@ -35,7 +35,6 @@ dibi::select('product_id')->as('id')
// USING (product_id) INNER JOIN customers USING (customer_id) ORDER BY [title]
-
// SELECT ...
echo dibi::select('title')->as('id')
->from('products')
@@ -43,7 +42,6 @@ echo dibi::select('title')->as('id')
// -> Chair (as result of query: SELECT [title] AS [id] FROM [products])
-
// INSERT ...
dibi::insert('products', $record)
->setFlag('IGNORE')
@@ -51,7 +49,6 @@ dibi::insert('products', $record)
// -> INSERT IGNORE INTO [products] ([title], [price], [active]) VALUES ('Super product', 318, 1)
-
// UPDATE ...
dibi::update('products', $record)
->where('product_id = ?', $id)
@@ -59,7 +56,6 @@ dibi::update('products', $record)
// -> UPDATE [products] SET [title]='Super product', [price]=318, [active]=1 WHERE product_id = 10
-
// DELETE ...
dibi::delete('products')
->where('product_id = ?', $id)
@@ -67,7 +63,6 @@ dibi::delete('products')
// -> DELETE FROM [products] WHERE product_id = 10
-
// custom commands
dibi::command()
->update('products')
@@ -77,7 +72,6 @@ dibi::command()
// -> UPDATE [products] SET [title]='Super product', [price]=318, [active]=1 WHERE product_id = 10
-
dibi::command()
->truncate('products')
->test();
diff --git a/examples/using-limit-and-offset.php b/examples/using-limit-and-offset.php
index e29054c8..ab82a304 100644
--- a/examples/using-limit-and-offset.php
+++ b/examples/using-limit-and-offset.php
@@ -19,13 +19,11 @@ dibi::test('SELECT * FROM [products]');
// -> SELECT * FROM [products]
-
// with limit = 2
dibi::test('SELECT * FROM [products] %lmt', 2);
// -> SELECT * FROM [products] LIMIT 2
-
// with limit = 2, offset = 1
dibi::test('SELECT * FROM [products] %lmt %ofs', 2, 1);
// -> SELECT * FROM [products] LIMIT 2 OFFSET 1
diff --git a/examples/using-logger.php b/examples/using-logger.php
index ed6df206..10307e96 100644
--- a/examples/using-logger.php
+++ b/examples/using-logger.php
@@ -21,7 +21,6 @@ dibi::connect(array(
));
-
try {
$res = dibi::query('SELECT * FROM [customers] WHERE [customer_id] = ?', 1);
diff --git a/examples/using-substitutions.php b/examples/using-substitutions.php
index 6a9e51d0..352197a1 100644
--- a/examples/using-substitutions.php
+++ b/examples/using-substitutions.php
@@ -14,8 +14,6 @@ dibi::connect(array(
));
-
-
// create new substitution :blog: ==> wp_
dibi::getSubstitutes()->blog = 'wp_';
@@ -23,9 +21,6 @@ dibi::test("SELECT * FROM [:blog:items]");
// -> SELECT * FROM [wp_items]
-
-
-
// create new substitution :: (empty) ==> my_
dibi::getSubstitutes()->{''} = 'my_';
@@ -33,9 +28,6 @@ dibi::test("UPDATE ::table SET [text]='Hello World'");
// -> UPDATE my_table SET [text]='Hello World'
-
-
-
// create substitutions using fallback callback
function substFallBack($expr)
{
diff --git a/tests/DibiFluent.cloning.phpt b/tests/DibiFluent.cloning.phpt
index 95dcb4bf..eef003ff 100644
--- a/tests/DibiFluent.cloning.phpt
+++ b/tests/DibiFluent.cloning.phpt
@@ -9,7 +9,6 @@
*/
-
require dirname(__FILE__) . '/initialize.php';
@@ -27,7 +26,6 @@ $fluent->test();
$dolly->test();
-
$fluent = dibi::select('id')->from('table')->where('id = %i',1);
$dolly = clone $fluent;
$dolly->where('cd = %i',5);
@@ -36,7 +34,6 @@ $fluent->test();
$dolly->test();
-
$fluent = dibi::select("*")->from("table");
$dolly = clone $fluent;
$dolly->removeClause("select")->select("count(*)");
|
---|
|
---|
|
---|