summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Components/ArrayObj.php10
-rw-r--r--src/Components/CreateDefinition.php2
-rw-r--r--src/Statements/SelectStatement.php4
-rw-r--r--src/Utils/Error.php2
-rw-r--r--src/Utils/Formatter.php2
-rw-r--r--src/Utils/Query.php2
6 files changed, 11 insertions, 11 deletions
diff --git a/src/Components/ArrayObj.php b/src/Components/ArrayObj.php
index 1166a9b..ab1ad61 100644
--- a/src/Components/ArrayObj.php
+++ b/src/Components/ArrayObj.php
@@ -147,11 +147,11 @@ class ArrayObj extends Component
//
// This is treated differently to treat the following cases:
//
- // => array()
- // (,) => array('', '')
- // () => array()
- // (a,) => array('a', '')
- // (a) => array('a')
+ // => []
+ // [,] => ['', '']
+ // [] => []
+ // [a,] => ['a', '']
+ // [a] => ['a']
$lastRaw = trim($lastRaw);
if (empty($options['type'])
&& ((strlen($lastRaw) > 0) || ($isCommaLast))
diff --git a/src/Components/CreateDefinition.php b/src/Components/CreateDefinition.php
index 243729d..0cd29c9 100644
--- a/src/Components/CreateDefinition.php
+++ b/src/Components/CreateDefinition.php
@@ -90,7 +90,7 @@ class CreateDefinition extends Component
//
// 'UNIQUE' => 4,
// 'UNIQUE KEY' => 4,
- // 'COMMENT' => array(5, 'var'),
+ // 'COMMENT' => [5, 'var'],
// 'NOT NULL' => 1,
// 'NULL' => 1,
// 'PRIMARY' => 4,
diff --git a/src/Statements/SelectStatement.php b/src/Statements/SelectStatement.php
index 97e8fba..4fecd90 100644
--- a/src/Statements/SelectStatement.php
+++ b/src/Statements/SelectStatement.php
@@ -213,8 +213,8 @@ class SelectStatement extends Statement
1,
],
// These are available only when `UNION` is present.
- // 'ORDER BY' => array('ORDER BY', 3),
- // 'LIMIT' => array('LIMIT', 3),
+ // 'ORDER BY' => ['ORDER BY', 3],
+ // 'LIMIT' => ['LIMIT', 3],
];
/**
diff --git a/src/Utils/Error.php b/src/Utils/Error.php
index 484da5c..789da0e 100644
--- a/src/Utils/Error.php
+++ b/src/Utils/Error.php
@@ -26,7 +26,7 @@ class Error
* `$err[1]` holds the error code.
* `$err[2]` holds the string that caused the issue.
* `$err[3]` holds the position of the string.
- * (i.e. `array($msg, $code, $str, $pos)`)
+ * (i.e. `[$msg, $code, $str, $pos]`)
*/
public static function get($objs)
{
diff --git a/src/Utils/Formatter.php b/src/Utils/Formatter.php
index 6d340cc..017d5b1 100644
--- a/src/Utils/Formatter.php
+++ b/src/Utils/Formatter.php
@@ -170,7 +170,7 @@ class Formatter
/**
* The styles used for HTML formatting.
- * array($type, $flags, $span, $callback).
+ * [$type, $flags, $span, $callback].
*
* @return array
*/
diff --git a/src/Utils/Query.php b/src/Utils/Query.php
index 43da834..e16d172 100644
--- a/src/Utils/Query.php
+++ b/src/Utils/Query.php
@@ -694,7 +694,7 @@ class Query
* @param Statement $statement the parsed query that has to be modified
* @param TokensList $list the list of tokens
* @param array $ops Clauses to be replaced. Contains multiple
- * arrays having two values: array($old, $new).
+ * arrays having two values: [$old, $new].
* Clauses must be sorted.
*
* @return string