Skip to content

Commit

Permalink
examples: added declare strict types
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jul 21, 2017
1 parent 1330035 commit d65e109
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 2 deletions.
3 changes: 3 additions & 0 deletions examples/connecting-to-databases.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Connecting to Databases | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/database-reflection.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Database Reflection | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/dumping-sql-and-result-set.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Dumping SQL and Result Set | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/importing-dump-from-file.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Importing SQL Dump from File | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/query-language-and-conditions.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Query Language & Conditions | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/query-language-basic-examples.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Query Language Basic Examples | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/using-datetime.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Using DateTime | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/using-fluent-syntax.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Using Fluent Syntax | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/using-limit-and-offset.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Using Limit & Offset | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/using-logger.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Using Logger | dibi</h1>
Expand Down
6 changes: 4 additions & 2 deletions examples/using-profiler.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php ob_start() // needed by FirePHP ?>

<?php
declare(strict_types=1);
ob_start(); // needed by FirePHP
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Using Profiler | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/using-substitutions.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Using Substitutions | dibi</h1>
Expand Down
3 changes: 3 additions & 0 deletions examples/using-transactions.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<?php
declare(strict_types=1);
?>
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Using Transactions | dibi</h1>
Expand Down

0 comments on commit d65e109

Please sign in to comment.