summaryrefslogtreecommitdiffstats
path: root/src/Statements/DropStatement.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Statements/DropStatement.php')
-rw-r--r--src/Statements/DropStatement.php32
1 files changed, 14 insertions, 18 deletions
diff --git a/src/Statements/DropStatement.php b/src/Statements/DropStatement.php
index 7b9da2c..202d5e0 100644
--- a/src/Statements/DropStatement.php
+++ b/src/Statements/DropStatement.php
@@ -1,8 +1,8 @@
<?php
-
/**
* `DROP` statement.
*/
+declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Statements;
@@ -11,10 +11,6 @@ use PhpMyAdmin\SqlParser\Statement;
/**
* `DROP` statement.
- *
- * @category Statements
- *
- * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
*/
class DropStatement extends Statement
{
@@ -23,7 +19,7 @@ class DropStatement extends Statement
*
* @var array
*/
- public static $OPTIONS = array(
+ public static $OPTIONS = [
'DATABASE' => 1,
'EVENT' => 1,
'FUNCTION' => 1,
@@ -39,8 +35,8 @@ class DropStatement extends Statement
'USER' => 1,
'TEMPORARY' => 2,
- 'IF EXISTS' => 3
- );
+ 'IF EXISTS' => 3,
+ ];
/**
* The clauses of this statement, in order.
@@ -49,26 +45,26 @@ class DropStatement extends Statement
*
* @var array
*/
- public static $CLAUSES = array(
- 'DROP' => array(
+ public static $CLAUSES = [
+ 'DROP' => [
'DROP',
2,
- ),
+ ],
// Used for options.
- '_OPTIONS' => array(
+ '_OPTIONS' => [
'_OPTIONS',
1,
- ),
+ ],
// Used for select expressions.
- 'DROP_' => array(
+ 'DROP_' => [
'DROP',
1,
- ),
- 'ON' => array(
+ ],
+ 'ON' => [
'ON',
3,
- )
- );
+ ],
+ ];
/**
* Dropped elements.