summaryrefslogtreecommitdiff
path: root/app/Statement.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2016-12-23 21:15:42 +0000
committerGreg Roach <fisharebest@gmail.com>2016-12-23 21:15:42 +0000
commit13abd6f3a37322f885d85df150e105d27ad81f8d (patch)
treef023015b458c95273afe5876246adf141de169ca /app/Statement.php
parent2c55bacfbfed3c49d3f2ac181fb519d24ffe2803 (diff)
downloadwebtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.gz
webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.bz2
webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.zip
Code style - short array syntax
Diffstat (limited to 'app/Statement.php')
-rw-r--r--app/Statement.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Statement.php b/app/Statement.php
index 85acb94c0a..50e6fb02f1 100644
--- a/app/Statement.php
+++ b/app/Statement.php
@@ -46,7 +46,7 @@ class Statement {
*
* @return Statement
*/
- public function execute($bind_variables = array()) {
+ public function execute($bind_variables = []) {
if ($this->executed) {
throw new \Exception('Statement::execute() called twice.');
}
@@ -185,7 +185,7 @@ class Statement {
$this->execute();
}
- $rows = array();
+ $rows = [];
while ($row = $this->pdo_statement->fetch(PDO::FETCH_NUM)) {
$rows[$row[0]] = $row[1];
}
@@ -206,7 +206,7 @@ class Statement {
$this->execute();
}
- $list = array();
+ $list = [];
while ($row = $this->pdo_statement->fetch(PDO::FETCH_NUM)) {
$list[] = $row[0];
}