summaryrefslogtreecommitdiffstats
path: root/src/Statements/SetStatement.php
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2019-01-08 21:32:02 -0200
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2019-01-16 17:21:25 -0200
commit86c5baebda24c1721fb6881df8671a3c7df60e8b (patch)
tree0a76d58ea229d1008e169b1c5b25ce90dde91808 /src/Statements/SetStatement.php
parent28427543566b6dd32fe44db704ea41368ba55c0e (diff)
downloadsql-parser-86c5baebda24c1721fb6881df8671a3c7df60e8b.zip
sql-parser-86c5baebda24c1721fb6881df8671a3c7df60e8b.tar.gz
sql-parser-86c5baebda24c1721fb6881df8671a3c7df60e8b.tar.bz2
Apply phpmyadmin/coding-standard
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'src/Statements/SetStatement.php')
-rw-r--r--src/Statements/SetStatement.php49
1 files changed, 35 insertions, 14 deletions
diff --git a/src/Statements/SetStatement.php b/src/Statements/SetStatement.php
index ef3a0c1..129cc14 100644
--- a/src/Statements/SetStatement.php
+++ b/src/Statements/SetStatement.php
@@ -26,27 +26,48 @@ class SetStatement extends Statement
*
* @var array
*/
- public static $CLAUSES = array(
- 'SET' => array('SET', 3),
- '_END_OPTIONS' => array('_END_OPTIONS', 1),
- );
+ public static $CLAUSES = [
+ 'SET' => [
+ 'SET',
+ 3,
+ ],
+ '_END_OPTIONS' => [
+ '_END_OPTIONS',
+ 1,
+ ],
+ ];
/**
* Possible exceptions in SET statment.
*
* @var array
*/
- public static $OPTIONS = array(
- 'CHARSET' => array(3, 'var'),
- 'CHARACTER SET' => array(3, 'var'),
- 'NAMES' => array(3, 'var'),
- 'PASSWORD' => array(3, 'expr'),
- );
+ public static $OPTIONS = [
+ 'CHARSET' => [
+ 3,
+ 'var',
+ ],
+ 'CHARACTER SET' => [
+ 3,
+ 'var',
+ ],
+ 'NAMES' => [
+ 3,
+ 'var',
+ ],
+ 'PASSWORD' => [
+ 3,
+ 'expr',
+ ],
+ ];
- public static $END_OPTIONS = array(
- 'COLLATE' => array(1, 'var'),
- 'DEFAULT' => 1
- );
+ public static $END_OPTIONS = [
+ 'COLLATE' => [
+ 1,
+ 'var',
+ ],
+ 'DEFAULT' => 1,
+ ];
/**
* Options used in current statement.