Skip to content

Commit 53b6ab8

Browse files
committed
Remove useless comments and annotations
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 53441d7 commit 53b6ab8

File tree

121 files changed

+124
-530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+124
-530
lines changed

src/Component.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
/**
1717
* A component (of a statement) is a part of a statement that is common to
1818
* multiple query types.
19-
*
20-
* @category Components
21-
*
22-
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
2319
*/
2420
abstract class Component
2521
{
@@ -31,9 +27,9 @@ abstract class Component
3127
* @param TokensList $list the list of tokens that are being parsed
3228
* @param array $options parameters for parsing
3329
*
34-
* @throws Exception not implemented yet
35-
*
3630
* @return mixed
31+
*
32+
* @throws Exception not implemented yet.
3733
*/
3834
public static function parse(
3935
Parser $parser,
@@ -54,9 +50,9 @@ public static function parse(
5450
* @param mixed $component the component to be built
5551
* @param array $options parameters for building
5652
*
57-
* @throws Exception not implemented yet
53+
* @return mixed
5854
*
59-
* @return string
55+
* @throws Exception not implemented yet.
6056
*/
6157
public static function build($component, array $options = [])
6258
{

src/Components/AlterOperation.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
/**
1515
* Parses an alter operation.
16-
*
17-
* @category Components
18-
*
19-
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
2016
*/
2117
class AlterOperation extends Component
2218
{
@@ -156,8 +152,6 @@ class AlterOperation extends Component
156152
public $unknown = [];
157153

158154
/**
159-
* Constructor.
160-
*
161155
* @param OptionsArray $options options of alter operation
162156
* @param Expression $field altered field
163157
* @param array $unknown unparsed tokens found at the end of operation
@@ -331,6 +325,7 @@ public static function build($component, array $options = [])
331325
* between column and table alteration
332326
*
333327
* @param string $tokenValue Value of current token
328+
*
334329
* @return bool
335330
*/
336331
private static function checkIfColumnDefinitionKeyword($tokenValue)

src/Components/Array2d.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414

1515
/**
1616
* `VALUES` keyword parser.
17-
*
18-
* @category Keywords
19-
*
20-
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
2117
*/
2218
class Array2d extends Component
2319
{

src/Components/ArrayObj.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
/**
1515
* Parses an array.
16-
*
17-
* @category Components
18-
*
19-
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
2016
*/
2117
class ArrayObj extends Component
2218
{
@@ -35,8 +31,6 @@ class ArrayObj extends Component
3531
public $values = [];
3632

3733
/**
38-
* Constructor.
39-
*
4034
* @param array $raw the unprocessed values
4135
* @param array $values the processed values
4236
*/
@@ -158,7 +152,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
158152
// () => array()
159153
// (a,) => array('a', '')
160154
// (a) => array('a')
161-
//
162155
$lastRaw = trim($lastRaw);
163156
if (empty($options['type'])
164157
&& ((strlen($lastRaw) > 0) || ($isCommaLast))

src/Components/CaseExpression.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414

1515
/**
1616
* Parses a reference to a CASE expression.
17-
*
18-
* @category Components
19-
*
20-
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
2117
*/
2218
class CaseExpression extends Component
2319
{
@@ -70,9 +66,6 @@ class CaseExpression extends Component
7066
*/
7167
public $expr = '';
7268

73-
/**
74-
* Constructor.
75-
*/
7669
public function __construct()
7770
{
7871
}

src/Components/Condition.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
/**
1515
* `WHERE` keyword parser.
16-
*
17-
* @category Keywords
18-
*
19-
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
2016
*/
2117
class Condition extends Component
2218
{
@@ -81,8 +77,6 @@ class Condition extends Component
8177
public $expr;
8278

8379
/**
84-
* Constructor.
85-
*
8680
* @param string $expr the condition or the operator
8781
*/
8882
public function __construct($expr = null)

src/Components/CreateDefinition.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
* Parses the create definition of a column or a key.
1919
*
2020
* Used for parsing `CREATE TABLE` statement.
21-
*
22-
* @category Components
23-
*
24-
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
2521
*/
2622
class CreateDefinition extends Component
2723
{
@@ -144,8 +140,6 @@ class CreateDefinition extends Component
144140
public $options;
145141

146142
/**
147-
* Constructor.
148-
*
149143
* @param string $name the name of the field
150144
* @param OptionsArray $options the options of this field
151145
* @param DataType|Key $type the data type of this field or the key

src/Components/DataType.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
/**
1515
* Parses a data type.
16-
*
17-
* @category Components
18-
*
19-
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
2016
*/
2117
class DataType extends Component
2218
{
@@ -73,8 +69,6 @@ class DataType extends Component
7369
public $options;
7470

7571
/**
76-
* Constructor.
77-
*
7872
* @param string $name the name of this data type
7973
* @param array $parameters the parameters (size or possible values)
8074
* @param OptionsArray $options the options of this data type

src/Components/Expression.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
/**
1717
* Parses a reference to an expression (column, table or database name, function
1818
* call, mathematical expression, etc.).
19-
*
20-
* @category Components
21-
*
22-
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
2319
*/
2420
class Expression extends Component
2521
{
@@ -92,8 +88,6 @@ class Expression extends Component
9288
public $subquery;
9389

9490
/**
95-
* Constructor.
96-
*
9791
* Syntax:
9892
* new Expression('expr')
9993
* new Expression('expr', 'alias')

src/Components/ExpressionArray.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
/**
1515
* Parses a list of expressions delimited by a comma.
16-
*
17-
* @category Keywords
18-
*
19-
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
2016
*/
2117
class ExpressionArray extends Component
2218
{

0 commit comments

Comments
 (0)