summaryrefslogtreecommitdiffstats
path: root/src/TokensList.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/TokensList.php')
-rw-r--r--src/TokensList.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/TokensList.php b/src/TokensList.php
index 5c04ad4..3f08fe6 100644
--- a/src/TokensList.php
+++ b/src/TokensList.php
@@ -1,26 +1,24 @@
<?php
-
/**
* Defines an array of tokens and utility functions to iterate through it.
*/
+declare(strict_types=1);
namespace PhpMyAdmin\SqlParser;
+use ArrayAccess;
+
/**
* A structure representing a list of tokens.
- *
- * @category Tokens
- *
- * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
*/
-class TokensList implements \ArrayAccess
+class TokensList implements ArrayAccess
{
/**
* The array of tokens.
*
* @var array
*/
- public $tokens = array();
+ public $tokens = [];
/**
* The count of tokens.
@@ -37,12 +35,10 @@ class TokensList implements \ArrayAccess
public $idx = 0;
/**
- * Constructor.
- *
* @param array $tokens the initial array of tokens
* @param int $count the count of tokens in the initial array
*/
- public function __construct(array $tokens = array(), $count = -1)
+ public function __construct(array $tokens = [], $count = -1)
{
if (! empty($tokens)) {
$this->tokens = $tokens;