diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2019-12-14 12:43:05 -0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2019-12-14 12:43:05 -0300 |
commit | 53b6ab87749357700f7129d0400fee3afc9ec50d (patch) | |
tree | 6325a11c1513e6099d1bc07eabf0c2f1e9d49aa1 /src | |
parent | 53441d712bc5e8d0f5f08144fd0ec4dfd5f8b04c (diff) | |
download | sql-parser-53b6ab87749357700f7129d0400fee3afc9ec50d.zip sql-parser-53b6ab87749357700f7129d0400fee3afc9ec50d.tar.gz sql-parser-53b6ab87749357700f7129d0400fee3afc9ec50d.tar.bz2 |
Remove useless comments and annotations
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'src')
83 files changed, 35 insertions, 427 deletions
diff --git a/src/Component.php b/src/Component.php index c461c78..656d318 100644 --- a/src/Component.php +++ b/src/Component.php @@ -16,10 +16,6 @@ use Exception; /** * A component (of a statement) is a part of a statement that is common to * multiple query types. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ abstract class Component { @@ -31,9 +27,9 @@ abstract class Component * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * - * @throws Exception not implemented yet - * * @return mixed + * + * @throws Exception not implemented yet. */ public static function parse( Parser $parser, @@ -54,9 +50,9 @@ abstract class Component * @param mixed $component the component to be built * @param array $options parameters for building * - * @throws Exception not implemented yet + * @return mixed * - * @return string + * @throws Exception not implemented yet. */ public static function build($component, array $options = []) { diff --git a/src/Components/AlterOperation.php b/src/Components/AlterOperation.php index e0c0e0b..09f928f 100644 --- a/src/Components/AlterOperation.php +++ b/src/Components/AlterOperation.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Parses an alter operation. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class AlterOperation extends Component { @@ -156,8 +152,6 @@ class AlterOperation extends Component public $unknown = []; /** - * Constructor. - * * @param OptionsArray $options options of alter operation * @param Expression $field altered field * @param array $unknown unparsed tokens found at the end of operation @@ -331,6 +325,7 @@ class AlterOperation extends Component * between column and table alteration * * @param string $tokenValue Value of current token + * * @return bool */ private static function checkIfColumnDefinitionKeyword($tokenValue) diff --git a/src/Components/Array2d.php b/src/Components/Array2d.php index 7c99952..1ae5c30 100644 --- a/src/Components/Array2d.php +++ b/src/Components/Array2d.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\Translator; /** * `VALUES` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Array2d extends Component { diff --git a/src/Components/ArrayObj.php b/src/Components/ArrayObj.php index 2d10ff1..1166a9b 100644 --- a/src/Components/ArrayObj.php +++ b/src/Components/ArrayObj.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Parses an array. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ArrayObj extends Component { @@ -35,8 +31,6 @@ class ArrayObj extends Component public $values = []; /** - * Constructor. - * * @param array $raw the unprocessed values * @param array $values the processed values */ @@ -158,7 +152,6 @@ class ArrayObj extends Component // () => array() // (a,) => array('a', '') // (a) => array('a') - // $lastRaw = trim($lastRaw); if (empty($options['type']) && ((strlen($lastRaw) > 0) || ($isCommaLast)) diff --git a/src/Components/CaseExpression.php b/src/Components/CaseExpression.php index f9f2f76..26c044f 100644 --- a/src/Components/CaseExpression.php +++ b/src/Components/CaseExpression.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Parses a reference to a CASE expression. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class CaseExpression extends Component { @@ -70,9 +66,6 @@ class CaseExpression extends Component */ public $expr = ''; - /** - * Constructor. - */ public function __construct() { } diff --git a/src/Components/Condition.php b/src/Components/Condition.php index 4ad9864..b719b28 100644 --- a/src/Components/Condition.php +++ b/src/Components/Condition.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `WHERE` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Condition extends Component { @@ -81,8 +77,6 @@ class Condition extends Component public $expr; /** - * Constructor. - * * @param string $expr the condition or the operator */ public function __construct($expr = null) diff --git a/src/Components/CreateDefinition.php b/src/Components/CreateDefinition.php index 310038e..243729d 100644 --- a/src/Components/CreateDefinition.php +++ b/src/Components/CreateDefinition.php @@ -18,10 +18,6 @@ use PhpMyAdmin\SqlParser\TokensList; * Parses the create definition of a column or a key. * * Used for parsing `CREATE TABLE` statement. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class CreateDefinition extends Component { @@ -144,8 +140,6 @@ class CreateDefinition extends Component public $options; /** - * Constructor. - * * @param string $name the name of the field * @param OptionsArray $options the options of this field * @param DataType|Key $type the data type of this field or the key diff --git a/src/Components/DataType.php b/src/Components/DataType.php index 242947f..6ebfc94 100644 --- a/src/Components/DataType.php +++ b/src/Components/DataType.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Parses a data type. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class DataType extends Component { @@ -73,8 +69,6 @@ class DataType extends Component public $options; /** - * Constructor. - * * @param string $name the name of this data type * @param array $parameters the parameters (size or possible values) * @param OptionsArray $options the options of this data type diff --git a/src/Components/Expression.php b/src/Components/Expression.php index 2c22241..38de90a 100644 --- a/src/Components/Expression.php +++ b/src/Components/Expression.php @@ -16,10 +16,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Parses a reference to an expression (column, table or database name, function * call, mathematical expression, etc.). - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Expression extends Component { @@ -92,8 +88,6 @@ class Expression extends Component public $subquery; /** - * Constructor. - * * Syntax: * new Expression('expr') * new Expression('expr', 'alias') diff --git a/src/Components/ExpressionArray.php b/src/Components/ExpressionArray.php index eb05aac..186693d 100644 --- a/src/Components/ExpressionArray.php +++ b/src/Components/ExpressionArray.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Parses a list of expressions delimited by a comma. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ExpressionArray extends Component { diff --git a/src/Components/FunctionCall.php b/src/Components/FunctionCall.php index 073b0e3..b41e6b2 100644 --- a/src/Components/FunctionCall.php +++ b/src/Components/FunctionCall.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Parses a function call. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class FunctionCall extends Component { @@ -35,8 +31,6 @@ class FunctionCall extends Component public $parameters; /** - * Constructor. - * * @param string $name the name of the function to be called * @param array|ArrayObj $parameters the parameters of this function */ diff --git a/src/Components/GroupKeyword.php b/src/Components/GroupKeyword.php index bef1ebe..7d95fb2 100644 --- a/src/Components/GroupKeyword.php +++ b/src/Components/GroupKeyword.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `GROUP BY` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class GroupKeyword extends Component { @@ -28,8 +24,6 @@ class GroupKeyword extends Component public $expr; /** - * Constructor. - * * @param Expression $expr the expression that we are sorting by */ public function __construct($expr = null) diff --git a/src/Components/IndexHint.php b/src/Components/IndexHint.php index 7484172..36218df 100644 --- a/src/Components/IndexHint.php +++ b/src/Components/IndexHint.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Parses an Index hint. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class IndexHint extends Component { @@ -49,8 +45,6 @@ class IndexHint extends Component public $indexes = []; /** - * Constructor. - * * @param string $type the type of hint (USE/FORCE/IGNORE) * @param string $indexOrKey What the hint is for (INDEX/KEY) * @param string $for the clause for which this hint is (JOIN/ORDER BY/GROUP BY) @@ -86,6 +80,7 @@ class IndexHint extends Component * 2 -------------------- [ expr_list ] --------------------> 0 * 3 -------------- [ JOIN/GROUP BY/ORDER BY ] -------------> 4 * 4 -------------------- [ expr_list ] --------------------> 0 + * * @var int */ $state = 0; diff --git a/src/Components/IntoKeyword.php b/src/Components/IntoKeyword.php index cebfa7a..81cddb8 100644 --- a/src/Components/IntoKeyword.php +++ b/src/Components/IntoKeyword.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `INTO` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class IntoKeyword extends Component { @@ -88,9 +84,9 @@ class IntoKeyword extends Component /** * Options for FIELDS/COLUMNS keyword. * - * @var OptionsArray - * * @see static::$FIELDS_OPTIONS + * + * @var OptionsArray */ public $fields_options; @@ -104,15 +100,13 @@ class IntoKeyword extends Component /** * Options for OPTIONS keyword. * - * @var OptionsArray - * * @see static::$LINES_OPTIONS + * + * @var OptionsArray */ public $lines_options; /** - * Constructor. - * * @param string $type type of destination (may be OUTFILE) * @param string|Expression $dest actual destination * @param array $columns column list of destination diff --git a/src/Components/JoinKeyword.php b/src/Components/JoinKeyword.php index 0c9dd70..91bab01 100644 --- a/src/Components/JoinKeyword.php +++ b/src/Components/JoinKeyword.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `JOIN` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class JoinKeyword extends Component { @@ -74,14 +70,12 @@ class JoinKeyword extends Component public $using; /** - * Constructor. + * @see JoinKeyword::$JOINS * * @param string $type Join type * @param Expression $expr join expression * @param Condition[] $on join conditions * @param ArrayObj $using columns joined - * - * @see JoinKeyword::$JOINS */ public function __construct($type = null, $expr = null, $on = null, $using = null) { diff --git a/src/Components/Key.php b/src/Components/Key.php index 92c25ee..669a7c0 100644 --- a/src/Components/Key.php +++ b/src/Components/Key.php @@ -16,10 +16,6 @@ use PhpMyAdmin\SqlParser\TokensList; * Parses the definition of a key. * * Used for parsing `CREATE TABLE` statement. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Key extends Component { @@ -76,8 +72,6 @@ class Key extends Component public $options; /** - * Constructor. - * * @param string $name the name of the key * @param array $columns the columns covered by this key * @param string $type the type of this key diff --git a/src/Components/Limit.php b/src/Components/Limit.php index e18219d..e0c7199 100644 --- a/src/Components/Limit.php +++ b/src/Components/Limit.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `LIMIT` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Limit extends Component { @@ -35,8 +31,6 @@ class Limit extends Component public $rowCount; /** - * Constructor. - * * @param int $rowCount the row count * @param int $offset the offset */ diff --git a/src/Components/LockExpression.php b/src/Components/LockExpression.php index 039d011..755825d 100644 --- a/src/Components/LockExpression.php +++ b/src/Components/LockExpression.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Parses a reference to a LOCK expression. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class LockExpression extends Component { diff --git a/src/Components/OptionsArray.php b/src/Components/OptionsArray.php index 3e8196b..da73dc6 100644 --- a/src/Components/OptionsArray.php +++ b/src/Components/OptionsArray.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\Translator; /** * Parses a list of options. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class OptionsArray extends Component { @@ -29,8 +25,6 @@ class OptionsArray extends Component public $options = []; /** - * Constructor. - * * @param array $options The array of options. Options that have a value * must be an array with at least two keys `name` and * `expr` or `value`. diff --git a/src/Components/OrderKeyword.php b/src/Components/OrderKeyword.php index 7d80683..966758e 100644 --- a/src/Components/OrderKeyword.php +++ b/src/Components/OrderKeyword.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `ORDER BY` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class OrderKeyword extends Component { @@ -35,8 +31,6 @@ class OrderKeyword extends Component public $type; /** - * Constructor. - * * @param Expression $expr the expression that we are sorting by * @param string $type the sorting type */ diff --git a/src/Components/ParameterDefinition.php b/src/Components/ParameterDefinition.php index 9294273..d7aa293 100644 --- a/src/Components/ParameterDefinition.php +++ b/src/Components/ParameterDefinition.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * The definition of a parameter of a function or procedure. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ParameterDefinition extends Component { @@ -43,8 +39,6 @@ class ParameterDefinition extends Component public $type; /** - * Constructor. - * * @param string $name parameter's name * @param string $inOut parameter's directional type (IN / OUT or None) * @param DataType $type parameter's type diff --git a/src/Components/PartitionDefinition.php b/src/Components/PartitionDefinition.php index 487fffd..e67e92f 100644 --- a/src/Components/PartitionDefinition.php +++ b/src/Components/PartitionDefinition.php @@ -17,10 +17,6 @@ use PhpMyAdmin\SqlParser\TokensList; * Parses the create definition of a partition. * * Used for parsing `CREATE TABLE` statement. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class PartitionDefinition extends Component { diff --git a/src/Components/Reference.php b/src/Components/Reference.php index aac73ac..759f3ad 100644 --- a/src/Components/Reference.php +++ b/src/Components/Reference.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `REFERENCES` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Reference extends Component { @@ -63,8 +59,6 @@ class Reference extends Component public $options; /** - * Constructor. - * * @param Expression $table the name of the table referenced * @param array $columns the columns referenced * @param OptionsArray $options the options diff --git a/src/Components/RenameOperation.php b/src/Components/RenameOperation.php index 0008a41..a2a8d1f 100644 --- a/src/Components/RenameOperation.php +++ b/src/Components/RenameOperation.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `RENAME TABLE` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class RenameOperation extends Component { @@ -35,8 +31,6 @@ class RenameOperation extends Component public $new; /** - * Constructor. - * * @param Expression $old old expression * @param Expression $new new expression containing new name */ diff --git a/src/Components/SetOperation.php b/src/Components/SetOperation.php index eef0f80..1e44650 100644 --- a/src/Components/SetOperation.php +++ b/src/Components/SetOperation.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `SET` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class SetOperation extends Component { @@ -35,8 +31,6 @@ class SetOperation extends Component public $value; /** - * Constructor. - * * @param string $column Field's name.. * @param string $value new value */ diff --git a/src/Components/UnionKeyword.php b/src/Components/UnionKeyword.php index dc06831..3acc66b 100644 --- a/src/Components/UnionKeyword.php +++ b/src/Components/UnionKeyword.php @@ -10,10 +10,6 @@ use PhpMyAdmin\SqlParser\Component; /** * `UNION` keyword builder. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class UnionKeyword extends Component { diff --git a/src/Context.php b/src/Context.php index 98e5177..6e699c5 100644 --- a/src/Context.php +++ b/src/Context.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\Exceptions\LoaderException; /** * Holds the configuration of the context that is currently used. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ abstract class Context { @@ -468,7 +464,7 @@ abstract class Context * @param string $context name of the context or full class name that * defines the context * - * @throws LoaderException if the specified context doesn't exist + * @throws LoaderException if the specified context doesn't exist. */ public static function load($context = '') { diff --git a/src/Contexts/ContextMariaDb100000.php b/src/Contexts/ContextMariaDb100000.php index cb0ac6e..b6646bb 100644 --- a/src/Contexts/ContextMariaDb100000.php +++ b/src/Contexts/ContextMariaDb100000.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Context for MariaDB 10.0. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ContextMariaDb100000 extends Context { diff --git a/src/Contexts/ContextMariaDb100100.php b/src/Contexts/ContextMariaDb100100.php index 7a419ab..9eca83a 100644 --- a/src/Contexts/ContextMariaDb100100.php +++ b/src/Contexts/ContextMariaDb100100.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Context for MariaDB 10.1. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ContextMariaDb100100 extends Context { diff --git a/src/Contexts/ContextMariaDb100200.php b/src/Contexts/ContextMariaDb100200.php index e0923ad..8f088aa 100644 --- a/src/Contexts/ContextMariaDb100200.php +++ b/src/Contexts/ContextMariaDb100200.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Context for MariaDB 10.2. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ContextMariaDb100200 extends Context { diff --git a/src/Contexts/ContextMariaDb100300.php b/src/Contexts/ContextMariaDb100300.php index b162600..c631731 100644 --- a/src/Contexts/ContextMariaDb100300.php +++ b/src/Contexts/ContextMariaDb100300.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Context for MariaDB 10.3. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ContextMariaDb100300 extends Context { diff --git a/src/Contexts/ContextMySql50000.php b/src/Contexts/ContextMySql50000.php index 5a8322b..7621623 100644 --- a/src/Contexts/ContextMySql50000.php +++ b/src/Contexts/ContextMySql50000.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Context for MySQL 5.0. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ContextMySql50000 extends Context { diff --git a/src/Contexts/ContextMySql50100.php b/src/Contexts/ContextMySql50100.php index e4d353e..dbf8f86 100644 --- a/src/Contexts/ContextMySql50100.php +++ b/src/Contexts/ContextMySql50100.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Context for MySQL 5.1. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ContextMySql50100 extends Context { diff --git a/src/Contexts/ContextMySql50500.php b/src/Contexts/ContextMySql50500.php index 2ef9b81..b5b0f26 100644 --- a/src/Contexts/ContextMySql50500.php +++ b/src/Contexts/ContextMySql50500.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Context for MySQL 5.5. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ContextMySql50500 extends Context { diff --git a/src/Contexts/ContextMySql50600.php b/src/Contexts/ContextMySql50600.php index 5fa8786..f60ae05 100644 --- a/src/Contexts/ContextMySql50600.php +++ b/src/Contexts/ContextMySql50600.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Context for MySQL 5.6. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ContextMySql50600 extends Context { diff --git a/src/Contexts/ContextMySql50700.php b/src/Contexts/ContextMySql50700.php index 6f24dc1..412c25b 100644 --- a/src/Contexts/ContextMySql50700.php +++ b/src/Contexts/ContextMySql50700.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Context for MySQL 5.7. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ContextMySql50700 extends Context { diff --git a/src/Contexts/ContextMySql80000.php b/src/Contexts/ContextMySql80000.php index df581f5..bfc265f 100644 --- a/src/Contexts/ContextMySql80000.php +++ b/src/Contexts/ContextMySql80000.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Context for MySQL 8.0. - * - * @category Contexts - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ContextMySql80000 extends Context { diff --git a/src/Core.php b/src/Core.php index 8783ea8..1d3eeea 100644 --- a/src/Core.php +++ b/src/Core.php @@ -13,9 +13,9 @@ class Core /** * Whether errors should throw exceptions or just be stored. * - * @var bool - * * @see static::$errors + * + * @var bool */ public $strict = false; @@ -26,9 +26,9 @@ class Core * error might be false positive or a partial result (even a bad one) * might be needed. * - * @var Exception[] - * * @see Core::error() + * + * @var Exception[] */ public $errors = []; @@ -37,7 +37,7 @@ class Core * * @param Exception $error the error exception * - * @throws Exception throws the exception, if strict mode is enabled + * @throws Exception throws the exception, if strict mode is enabled. */ public function error($error) { diff --git a/src/Exceptions/LexerException.php b/src/Exceptions/LexerException.php index 857d09b..9731575 100644 --- a/src/Exceptions/LexerException.php +++ b/src/Exceptions/LexerException.php @@ -10,10 +10,6 @@ use Exception; /** * Exception thrown by the lexer. - * - * @category Exceptions - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class LexerException extends Exception { @@ -32,8 +28,6 @@ class LexerException extends Exception public $pos; /** - * Constructor. - * * @param string $msg the message of this exception * @param string $ch the character that produced this exception * @param int $pos the position of the character diff --git a/src/Exceptions/LoaderException.php b/src/Exceptions/LoaderException.php index 41d04ff..54b9234 100644 --- a/src/Exceptions/LoaderException.php +++ b/src/Exceptions/LoaderException.php @@ -10,10 +10,6 @@ use Exception; /** * Exception thrown by the lexer. - * - * @category Exceptions - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class LoaderException extends Exception { @@ -25,8 +21,6 @@ class LoaderException extends Exception public $name; /** - * Constructor. - * * @param string $msg the message of this exception * @param string $name the character that produced this exception * @param int $code the code of this error diff --git a/src/Exceptions/ParserException.php b/src/Exceptions/ParserException.php index 4cf6977..ae63f07 100644 --- a/src/Exceptions/ParserException.php +++ b/src/Exceptions/ParserException.php @@ -11,10 +11,6 @@ use PhpMyAdmin\SqlParser\Token; /** * Exception thrown by the parser. - * - * @category Exceptions - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ParserException extends Exception { @@ -26,8 +22,6 @@ class ParserException extends Exception public $token; /** - * Constructor. - * * @param string $msg the message of this exception * @param Token $token the token that produced this exception * @param int $code the code of this error diff --git a/src/Lexer.php b/src/Lexer.php index 7fc1a75..2479410 100644 --- a/src/Lexer.php +++ b/src/Lexer.php @@ -33,10 +33,6 @@ if (! defined('USE_UTF_STRINGS')) { * * The output of the lexer is affected by the context of the SQL statement. * - * @category Lexer - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ - * * @see Context */ class Lexer extends Core @@ -158,8 +154,6 @@ class Lexer extends Core } /** - * Constructor. - * * @param string|UtfString $str the query to be lexed * @param bool $strict whether strict mode should be * enabled or not @@ -353,7 +347,7 @@ class Lexer extends Core * @param int $pos the position of the character * @param int $code the code of the error * - * @throws LexerException throws the exception, if strict mode is enabled + * @throws LexerException throws the exception, if strict mode is enabled. */ public function error($msg, $str = '', $pos = 0, $code = 0) { diff --git a/src/Parser.php b/src/Parser.php index 91524fd..902fa49 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\Statements\TransactionStatement; /** * Takes multiple tokens (contained in a Lexer instance) as input and builds a * parse tree. - * - * @category Parser - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Parser extends Core { @@ -356,8 +352,6 @@ class Parser extends Core public $brackets = 0; /** - * Constructor. - * * @param string|UtfString|TokensList $list the list of tokens to be parsed * @param bool $strict whether strict mode should be enabled or not */ @@ -597,7 +591,7 @@ class Parser extends Core * @param Token $token the token that produced the error * @param int $code the code of the error * - * @throws ParserException throws the exception, if strict mode is enabled + * @throws ParserException throws the exception, if strict mode is enabled. */ public function error($msg, Token $token = null, $code = 0) { diff --git a/src/Statement.php b/src/Statement.php index a199219..6617da7 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\Components\OptionsArray; /** * Abstract statement definition. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ abstract class Statement { @@ -61,9 +57,9 @@ abstract class Statement /** * The options of this query. * - * @var OptionsArray - * * @see static::$OPTIONS + * + * @var OptionsArray */ public $options; @@ -82,8 +78,6 @@ abstract class Statement public $last; /** - * Constructor. - * * @param Parser $parser the instance that requests parsing * @param TokensList $list the list of tokens to be parsed */ diff --git a/src/Statements/AlterStatement.php b/src/Statements/AlterStatement.php index 0620936..a03b2fc 100644 --- a/src/Statements/AlterStatement.php +++ b/src/Statements/AlterStatement.php @@ -16,10 +16,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `ALTER` statement. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class AlterStatement extends Statement { diff --git a/src/Statements/AnalyzeStatement.php b/src/Statements/AnalyzeStatement.php index ebc7f70..b14b891 100644 --- a/src/Statements/AnalyzeStatement.php +++ b/src/Statements/AnalyzeStatement.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\Statement; * * ANALYZE [NO_WRITE_TO_BINLOG | LOCAL] TABLE * tbl_name [, tbl_name] ... - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class AnalyzeStatement extends Statement { diff --git a/src/Statements/BackupStatement.php b/src/Statements/BackupStatement.php index 574dc9a..3fab2de 100644 --- a/src/Statements/BackupStatement.php +++ b/src/Statements/BackupStatement.php @@ -10,10 +10,6 @@ namespace PhpMyAdmin\SqlParser\Statements; * `BACKUP` statement. * * BACKUP TABLE tbl_name [, tbl_name] ... TO '/path/to/backup/directory' - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class BackupStatement extends MaintenanceStatement { diff --git a/src/Statements/CallStatement.php b/src/Statements/CallStatement.php index 7b4fc75..6a3de69 100644 --- a/src/Statements/CallStatement.php +++ b/src/Statements/CallStatement.php @@ -17,10 +17,6 @@ use PhpMyAdmin\SqlParser\Statement; * or * * CALL sp_name[()] - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class CallStatement extends Statement { diff --git a/src/Statements/CheckStatement.php b/src/Statements/CheckStatement.php index 789679f..c112f0a 100644 --- a/src/Statements/CheckStatement.php +++ b/src/Statements/CheckStatement.php @@ -10,10 +10,6 @@ namespace PhpMyAdmin\SqlParser\Statements; * `CHECK` statement. * * CHECK TABLE tbl_name [, tbl_name] ... [option] ... - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class CheckStatement extends MaintenanceStatement { diff --git a/src/Statements/ChecksumStatement.php b/src/Statements/ChecksumStatement.php index 3214748..259f287 100644 --- a/src/Statements/ChecksumStatement.php +++ b/src/Statements/ChecksumStatement.php @@ -10,10 +10,6 @@ namespace PhpMyAdmin\SqlParser\Statements; * `CHECKSUM` statement. * * CHECKSUM TABLE tbl_name [, tbl_name] ... [ QUICK | EXTENDED ] - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ChecksumStatement extends MaintenanceStatement { diff --git a/src/Statements/CreateStatement.php b/src/Statements/CreateStatement.php index 300e779..48773bd 100644 --- a/src/Statements/CreateStatement.php +++ b/src/Statements/CreateStatement.php @@ -20,10 +20,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `CREATE` statement. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class CreateStatement extends Statement { @@ -261,11 +257,11 @@ class CreateStatement extends Statement * * Used by `CREATE TABLE`, `CREATE FUNCTION` and `CREATE PROCEDURE`. * - * @var OptionsArray - * * @see static::$TABLE_OPTIONS * @see static::$FUNC_OPTIONS * @see static::$TRIGGER_OPTIONS + * + * @var OptionsArray */ public $entityOptions; diff --git a/src/Statements/DeleteStatement.php b/src/Statements/DeleteStatement.php index 4657411..57e100b 100644 --- a/src/Statements/DeleteStatement.php +++ b/src/Statements/DeleteStatement.php @@ -41,11 +41,6 @@ use PhpMyAdmin\SqlParser\TokensList; * FROM tbl_name[.*] [, tbl_name[.*]] ... * USING table_references * [WHERE where_condition] - * - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class DeleteStatement extends Statement { diff --git a/src/Statements/DropStatement.php b/src/Statements/DropStatement.php index 453bed1..2713c9b 100644 --- a/src/Statements/DropStatement.php +++ b/src/Statements/DropStatement.php @@ -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 { diff --git a/src/Statements/ExplainStatement.php b/src/Statements/ExplainStatement.php index 65ea597..15e6add 100644 --- a/src/Statements/ExplainStatement.php +++ b/src/Statements/ExplainStatement.php @@ -8,10 +8,6 @@ namespace PhpMyAdmin\SqlParser\Statements; /** * `EXPLAIN` statement. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ExplainStatement extends NotImplementedStatement { diff --git a/src/Statements/InsertStatement.php b/src/Statements/InsertStatement.php index ab2149c..6f63235 100644 --- a/src/Statements/InsertStatement.php +++ b/src/Statements/InsertStatement.php @@ -48,10 +48,6 @@ use PhpMyAdmin\SqlParser\TokensList; * [ ON DUPLICATE KEY UPDATE * col_name=expr * [, col_name=expr] ... ] - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class InsertStatement extends Statement { diff --git a/src/Statements/LoadStatement.php b/src/Statements/LoadStatement.php index c5186cf..62ef50f 100644 --- a/src/Statements/LoadStatement.php +++ b/src/Statements/LoadStatement.php @@ -36,11 +36,6 @@ use PhpMyAdmin\SqlParser\TokensList; * [IGNORE number {LINES | ROWS}] * [(col_name_or_user_var,...)] * [SET col_name = expr,...] - * - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class LoadStatement extends Statement { @@ -123,9 +118,9 @@ class LoadStatement extends Statement /** * Options for FIELDS/COLUMNS keyword. * - * @var OptionsArray - * * @see static::$FIELDS_OPTIONS + * + * @var OptionsArray */ public $fields_options; @@ -139,9 +134,9 @@ class LoadStatement extends Statement /** * Options for OPTIONS keyword. * - * @var OptionsArray - * * @see static::$LINES_OPTIONS + * + * @var OptionsArray */ public $lines_options; diff --git a/src/Statements/LockStatement.php b/src/Statements/LockStatement.php index 0166dca..6444586 100644 --- a/src/Statements/LockStatement.php +++ b/src/Statements/LockStatement.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `LOCK` statement. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class LockStatement extends Statement { diff --git a/src/Statements/MaintenanceStatement.php b/src/Statements/MaintenanceStatement.php index c59bb77..273188f 100644 --- a/src/Statements/MaintenanceStatement.php +++ b/src/Statements/MaintenanceStatement.php @@ -18,10 +18,6 @@ use PhpMyAdmin\SqlParser\TokensList; * * They follow the syntax: * STMT [some options] tbl_name [, tbl_name] ... [some more options] - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class MaintenanceStatement extends Statement { diff --git a/src/Statements/NotImplementedStatement.php b/src/Statements/NotImplementedStatement.php index 254ca15..dae6f85 100644 --- a/src/Statements/NotImplementedStatement.php +++ b/src/Statements/NotImplementedStatement.php @@ -15,10 +15,6 @@ use PhpMyAdmin\SqlParser\TokensList; * Not implemented (yet) statements. * * The `after` function makes the parser jump straight to the first delimiter. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class NotImplementedStatement extends Statement { diff --git a/src/Statements/OptimizeStatement.php b/src/Statements/OptimizeStatement.php index cd9be0c..c9c4979 100644 --- a/src/Statements/OptimizeStatement.php +++ b/src/Statements/OptimizeStatement.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\Statement; * * OPTIMIZE [NO_WRITE_TO_BINLOG | LOCAL] TABLE * tbl_name [, tbl_name] ... - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class OptimizeStatement extends Statement { diff --git a/src/Statements/PurgeStatement.php b/src/Statements/PurgeStatement.php index 4d16cec..1f74f42 100644 --- a/src/Statements/PurgeStatement.php +++ b/src/Statements/PurgeStatement.php @@ -17,10 +17,6 @@ use PhpMyAdmin\SqlParser\TokensList; * * PURGE { BINARY | MASTER } LOGS * { TO 'log_name' | BEFORE datetime_expr } - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class PurgeStatement extends Statement { diff --git a/src/Statements/RenameStatement.php b/src/Statements/RenameStatement.php index 17662d3..6e3d0ec 100644 --- a/src/Statements/RenameStatement.php +++ b/src/Statements/RenameStatement.php @@ -17,10 +17,6 @@ use PhpMyAdmin\SqlParser\TokensList; * * RENAME TABLE tbl_name TO new_tbl_name * [, tbl_name2 TO new_tbl_name2] ... - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class RenameStatement extends Statement { diff --git a/src/Statements/RepairStatement.php b/src/Statements/RepairStatement.php index e17cdee..ee96e3b 100644 --- a/src/Statements/RepairStatement.php +++ b/src/Statements/RepairStatement.php @@ -12,10 +12,6 @@ namespace PhpMyAdmin\SqlParser\Statements; * REPAIR [NO_WRITE_TO_BINLOG | LOCAL] TABLE * tbl_name [, tbl_name] ... * [QUICK] [EXTENDED] [USE_FRM] - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class RepairStatement extends MaintenanceStatement { diff --git a/src/Statements/ReplaceStatement.php b/src/Statements/ReplaceStatement.php index 0bbe117..132eef8 100644 --- a/src/Statements/ReplaceStatement.php +++ b/src/Statements/ReplaceStatement.php @@ -35,10 +35,6 @@ use PhpMyAdmin\SqlParser\TokensList; * [PARTITION (partition_name,...)] * [(col_name,...)] * SELECT ... - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ReplaceStatement extends Statement { diff --git a/src/Statements/RestoreStatement.php b/src/Statements/RestoreStatement.php index 6d2a72e..72b2ea2 100644 --- a/src/Statements/RestoreStatement.php +++ b/src/Statements/RestoreStatement.php @@ -10,10 +10,6 @@ namespace PhpMyAdmin\SqlParser\Statements; * `RESTORE` statement. * * RESTORE TABLE tbl_name [, tbl_name] ... FROM '/path/to/backup/directory' - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class RestoreStatement extends MaintenanceStatement { diff --git a/src/Statements/SelectStatement.php b/src/Statements/SelectStatement.php index a770227..97e8fba 100644 --- a/src/Statements/SelectStatement.php +++ b/src/Statements/SelectStatement.php @@ -45,10 +45,6 @@ use PhpMyAdmin\SqlParser\Statement; * | INTO DUMPFILE 'file_name' * | INTO var_name [, var_name]] * [FOR UPDATE | LOCK IN SHARE MODE]] - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class SelectStatement extends Statement { @@ -315,9 +311,9 @@ class SelectStatement extends Statement /** * The end options of this query. * - * @var OptionsArray - * * @see static::$END_OPTIONS + * + * @var OptionsArray */ public $end_options; diff --git a/src/Statements/SetStatement.php b/src/Statements/SetStatement.php index cc1e487..08e986c 100644 --- a/src/Statements/SetStatement.php +++ b/src/Statements/SetStatement.php @@ -12,10 +12,6 @@ use PhpMyAdmin\SqlParser\Statement; /** * `SET` statement. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class SetStatement extends Statement { @@ -79,9 +75,9 @@ class SetStatement extends Statement /** * The end options of this query. * - * @var OptionsArray - * * @see static::$END_OPTIONS + * + * @var OptionsArray */ public $end_options; diff --git a/src/Statements/ShowStatement.php b/src/Statements/ShowStatement.php index d332968..266b74e 100644 --- a/src/Statements/ShowStatement.php +++ b/src/Statements/ShowStatement.php @@ -8,10 +8,6 @@ namespace PhpMyAdmin\SqlParser\Statements; /** * `SHOW` statement. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ShowStatement extends NotImplementedStatement { diff --git a/src/Statements/TransactionStatement.php b/src/Statements/TransactionStatement.php index 7c07b5f..f47f86f 100644 --- a/src/Statements/TransactionStatement.php +++ b/src/Statements/TransactionStatement.php @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Transaction statement. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class TransactionStatement extends Statement { diff --git a/src/Statements/TruncateStatement.php b/src/Statements/TruncateStatement.php index 519ffaf..9397573 100644 --- a/src/Statements/TruncateStatement.php +++ b/src/Statements/TruncateStatement.php @@ -11,10 +11,6 @@ use PhpMyAdmin\SqlParser\Statement; /** * `TRUNCATE` statement. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class TruncateStatement extends Statement { diff --git a/src/Statements/UpdateStatement.php b/src/Statements/UpdateStatement.php index 8e6708f..82adeb1 100644 --- a/src/Statements/UpdateStatement.php +++ b/src/Statements/UpdateStatement.php @@ -27,10 +27,6 @@ use PhpMyAdmin\SqlParser\Statement; * UPDATE [LOW_PRIORITY] [IGNORE] table_references * SET col_name1={expr1|DEFAULT} [, col_name2={expr2|DEFAULT}] ... * [WHERE where_condition] - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class UpdateStatement extends Statement { diff --git a/src/Token.php b/src/Token.php index f752736..23d1645 100644 --- a/src/Token.php +++ b/src/Token.php @@ -11,10 +11,6 @@ namespace PhpMyAdmin\SqlParser; /** * A structure representing a lexeme that explicitly indicates its * categorization for the purpose of parsing. - * - * @category Tokens - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Token { @@ -215,8 +211,6 @@ class Token public $position; /** - * Constructor. - * * @param string $token the value of the token * @param int $type the type of the token * @param int $flags the flags of the token diff --git a/src/TokensList.php b/src/TokensList.php index d56fb98..3f08fe6 100644 --- a/src/TokensList.php +++ b/src/TokensList.php @@ -10,10 +10,6 @@ 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 { @@ -39,8 +35,6 @@ 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 */ diff --git a/src/UtfString.php b/src/UtfString.php index 1a88a6b..06eb773 100644 --- a/src/UtfString.php +++ b/src/UtfString.php @@ -20,10 +20,6 @@ use Exception; * Implements array-like access for UTF-8 strings. * * In this library, this class should be used to parse UTF-8 queries. - * - * @category Misc - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class UtfString implements ArrayAccess { @@ -68,8 +64,6 @@ class UtfString implements ArrayAccess public $charLen = 0; /** - * Constructor. - * * @param string $str the string */ public function __construct($str) @@ -144,7 +138,7 @@ class UtfString implements ArrayAccess * @param int $offset the offset to be set * @param string $value the value to be set * - * @throws Exception not implemented + * @throws Exception not implemented. */ public function offsetSet($offset, $value) { @@ -156,7 +150,7 @@ class UtfString implements ArrayAccess * * @param int $offset the value to be unset * - * @throws Exception not implemented + * @throws Exception not implemented. */ public function offsetUnset($offset) { @@ -170,10 +164,10 @@ class UtfString implements ArrayAccess * However, this implementation supports UTF-8 characters containing up to 6 * bytes. * - * @param string $byte the byte to be analyzed - * * @see https://tools.ietf.org/html/rfc3629 * + * @param string $byte the byte to be analyzed + * * @return int */ public static function getCharLength($byte) diff --git a/src/Utils/BufferedQuery.php b/src/Utils/BufferedQuery.php index c2dd074..e2f269a 100644 --- a/src/Utils/BufferedQuery.php +++ b/src/Utils/BufferedQuery.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\Context; * Implements a specialized lexer used to extract statements from large inputs * that are being buffered. After each statement has been extracted, a lexer or * a parser may be used. - * - * @category Lexer - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class BufferedQuery { @@ -80,8 +76,6 @@ class BufferedQuery public $current = ''; /** - * Constructor. - * * @param string $query the query to be parsed * @param array $options the options of this parser */ diff --git a/src/Utils/CLI.php b/src/Utils/CLI.php index cd27908..240c9dd 100644 --- a/src/Utils/CLI.php +++ b/src/Utils/CLI.php @@ -12,10 +12,6 @@ use PhpMyAdmin\SqlParser\Parser; /** * CLI interface. - * - * @category Exceptions - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class CLI { diff --git a/src/Utils/Error.php b/src/Utils/Error.php index d0f82ed..0f17dc8 100644 --- a/src/Utils/Error.php +++ b/src/Utils/Error.php @@ -11,10 +11,6 @@ use PhpMyAdmin\SqlParser\Parser; /** * Error related utilities. - * - * @category Exceptions - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Error { diff --git a/src/Utils/Formatter.php b/src/Utils/Formatter.php index f4d9576..a357f00 100644 --- a/src/Utils/Formatter.php +++ b/src/Utils/Formatter.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Utilities that are used for formatting queries. - * - * @category Misc - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Formatter { @@ -70,8 +66,6 @@ class Formatter ]; /** - * Constructor. - * * @param array $options the formatting options */ public function __construct(array $options = []) diff --git a/src/Utils/Misc.php b/src/Utils/Misc.php index 1d12368..6fcc831 100644 --- a/src/Utils/Misc.php +++ b/src/Utils/Misc.php @@ -11,10 +11,6 @@ use PhpMyAdmin\SqlParser\Statements\SelectStatement; /** * Miscellaneous utilities. - * - * @category Misc - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Misc { diff --git a/src/Utils/Query.php b/src/Utils/Query.php index e22e7f8..837e8f7 100644 --- a/src/Utils/Query.php +++ b/src/Utils/Query.php @@ -35,10 +35,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Statement utilities. - * - * @category Statement - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Query { diff --git a/src/Utils/Routine.php b/src/Utils/Routine.php index 9842ff1..7c024c5 100644 --- a/src/Utils/Routine.php +++ b/src/Utils/Routine.php @@ -14,10 +14,6 @@ use PhpMyAdmin\SqlParser\Statements\CreateStatement; /** * Routine utilities. - * - * @category Routines - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Routine { diff --git a/src/Utils/Table.php b/src/Utils/Table.php index 140ed2a..168061d 100644 --- a/src/Utils/Table.php +++ b/src/Utils/Table.php @@ -10,10 +10,6 @@ use PhpMyAdmin\SqlParser\Statements\CreateStatement; /** * Table utilities. - * - * @category Statement - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Table { diff --git a/src/Utils/Tokens.php b/src/Utils/Tokens.php index b7f5935..e823114 100644 --- a/src/Utils/Tokens.php +++ b/src/Utils/Tokens.php @@ -12,10 +12,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * Token utilities. - * - * @category Token - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Tokens { |