Skip to content

Commit b68e569

Browse files
committed
Strip generic phpdoc
1 parent 6624c39 commit b68e569

28 files changed

+31
-139
lines changed

.php_cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ $config = PhpCsFixer\Config::create()
2929
'explicit_string_variable' => true,
3030
'fully_qualified_strict_types' => true,
3131
'function_typehint_space' => true,
32+
'general_phpdoc_annotation_remove' => ['category', 'license'],
3233
'hash_to_slash_comment' => true,
3334
'heredoc_to_nowdoc' => true,
3435
'include' => true,

src/Query/Mysql/Cast.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
/**
1414
* "CAST" "(" "$fieldIdentifierExpression" "AS" "$castingTypeExpression" ")"
1515
*
16-
* @example
17-
* SELECT CAST(foo.bar AS SIGNED) FROM dual;
16+
* @example SELECT CAST(foo.bar AS SIGNED) FROM dual;
1817
*
19-
* @link https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/cookbook/dql-user-defined-functions.html#conclusion
20-
* @link https://dev.mysql.com/doc/refman/5.6/en/cast-functions.html#function_cast
18+
* @link https://dev.mysql.com/doc/refman/en/cast-functions.html#function_cast
2119
*/
2220
class Cast extends FunctionNode
2321
{

src/Query/Mysql/Collate.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@
66
use Doctrine\ORM\Query\Lexer;
77

88
/**
9-
* "COLLATE"
10-
* override the default collation
11-
* More info:
12-
* https://dev.mysql.com/doc/refman/5.7/en/charset-collate.html
13-
*
14-
* @category DoctrineExtensions
15-
* @author Peter Tanath <[email protected]>
16-
* @license MIT License
9+
* @link https://dev.mysql.com/doc/refman/en/charset-collate.html
10+
* @author Peter Tanath <[email protected]>
1711
*/
1812
class Collate extends FunctionNode
1913
{

src/Query/Mysql/ConvertTz.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
use Doctrine\ORM\Query\SqlWalker;
99

1010
/**
11-
* Converts timezones.
12-
*
13-
* Allows Doctrine 2 Query Language to execute a MySQL CONVERT_TZ function.
14-
*
15-
* @link http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_convert-tz
11+
* @link https://dev.mysql.com/doc/refman/en/date-and-time-functions.html#function_convert-tz
1612
*/
1713
class ConvertTz extends FunctionNode
1814
{
@@ -23,7 +19,7 @@ class ConvertTz extends FunctionNode
2319
protected $toTz;
2420

2521
/**
26-
* {@inheritdoc}
22+
* @inheritdoc
2723
*/
2824
public function getSql(SqlWalker $sqlWalker)
2925
{
@@ -36,7 +32,7 @@ public function getSql(SqlWalker $sqlWalker)
3632
}
3733

3834
/**
39-
* {@inheritdoc}
35+
* @inheritdoc
4036
*/
4137
public function parse(Parser $parser)
4238
{

src/Query/Mysql/Date.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Query\Lexer;
77

88
/**
9-
* @author Steve Lacey <steve@stevelacey.net>
9+
* @author Steve Lacey <steve@steve.ly>
1010
*/
1111
class Date extends FunctionNode
1212
{

src/Query/Mysql/DateFormat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Query\Lexer;
77

88
/**
9-
* @author Steve Lacey <steve@stevelacey.net>
9+
* @author Steve Lacey <steve@steve.ly>
1010
*/
1111
class DateFormat extends FunctionNode
1212
{

src/Query/Mysql/DateSub.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
use Doctrine\ORM\Query\QueryException;
66

77
/**
8-
* Class DateSub
9-
*
108
* @author Vas N <[email protected]>
119
*/
1210
class DateSub extends DateAdd

src/Query/Mysql/DayName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Query\Lexer;
77

88
/**
9-
* @author Steve Lacey <steve@stevelacey.net>
9+
* @author Steve Lacey <steve@steve.ly>
1010
*/
1111
class DayName extends FunctionNode
1212
{

src/Query/Mysql/Div.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
use Doctrine\ORM\Query\SqlWalker;
99

1010
/**
11-
* Performs an integer division. This is a MySQL operator, implemented as a Doctrine function.
12-
*
13-
* @see http://dev.mysql.com/doc/refman/en/arithmetic-functions.html#operator_div
11+
* @link https://dev.mysql.com/doc/refman/en/arithmetic-functions.html#operator_div
1412
*/
1513
class Div extends FunctionNode
1614
{

src/Query/Mysql/FromBase64.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
/**
1111
* "FROM_BASE64" "(" "$fieldIdentifierExpression" ")"
1212
*
13-
* @example
14-
* SELECT FROM_BASE64(foo) FROM dual;
13+
* @example SELECT FROM_BASE64(foo) FROM dual;
1514
*
16-
* @link https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_from-base64
15+
* @link https://dev.mysql.com/doc/refman/en/string-functions.html#function_from-base64
1716
*/
1817
class FromBase64 extends FunctionNode
1918
{

0 commit comments

Comments
 (0)