Skip to content

Commit 56f78ac

Browse files
committed
Update PHPDocs
1 parent c07666d commit 56f78ac

9 files changed

Lines changed: 95 additions & 94 deletions

File tree

src/Database.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public function warnings() : int
300300
}
301301

302302
/**
303-
* Get a list of latest errors.
303+
* Get a list of the latest errors.
304304
*
305305
* @return array<int,array<string,mixed>>
306306
*/
@@ -647,7 +647,8 @@ public function transaction(callable $statements) : void
647647
/**
648648
* Gets the LAST_INSERT_ID().
649649
*
650-
* Note: When a insert has many rows, this function returns the id of the first row inserted!
650+
* Note: When an insert has many rows, this function returns the id of the
651+
* first row inserted!
651652
* That is default on MySQL.
652653
*
653654
* @return int|string

src/Manipulation/Insert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ protected function renderOnDuplicateKeyUpdate() : ?string
182182
/**
183183
* Check for conflicts in the INSERT statement.
184184
*
185-
* @throws LogicException if has conflicts
185+
* @throws LogicException if it has conflicts
186186
*/
187187
protected function checkRowStatementsConflict() : void
188188
{

src/Manipulation/Select.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Select extends Statement
3636
*/
3737
public const OPT_ALL = 'ALL';
3838
/**
39-
* Option to not retrieve identical rows. Remove duplicates from the resultset.
39+
* Option to not retrieve identical rows. Remove duplicates from the result set.
4040
*
4141
* @see Select::renderOptions()
4242
* @see https://mariadb.com/kb/en/select/#distinct
@@ -324,7 +324,7 @@ protected function renderProcedure() : ?string
324324
* @param string $filename
325325
* @param string|null $charset
326326
* @param array<string,string> $fieldsOptions Each key must be one of the EXP_FIELDS_* constants
327-
* @param array<string,string> $linesOptions Each key must be one of the EXP_LINESS_* constants
327+
* @param array<string,string> $linesOptions Each key must be one of the EXP_LINES_* constants
328328
*
329329
* @see https://mariadb.com/kb/en/select-into-outfile/
330330
*

src/Manipulation/Statement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function hasOptions() : bool
5151
abstract protected function renderOptions() : ?string;
5252

5353
/**
54-
* Returns a SQL part between parentheses.
54+
* Returns an SQL part between parentheses.
5555
*
5656
* @param Closure $subquery A {@see Closure} having the current Manipulation
5757
* instance as first argument. The returned value must be scalar

src/Manipulation/Traits/Having.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ trait Having
2121
use Where;
2222

2323
/**
24-
* Appends a "AND $column $operator ...$values" condition in the HAVING clause.
24+
* Appends an "AND $column $operator ...$values" condition in the HAVING clause.
2525
*
2626
* @param Closure|string $column Closure for a subquery or a string with the column name
2727
* @param string $operator
@@ -55,7 +55,7 @@ public function orHaving(
5555
}
5656

5757
/**
58-
* Appends a "AND $column = $value" condition in the HAVING clause.
58+
* Appends an "AND $column = $value" condition in the HAVING clause.
5959
*
6060
* @param Closure|string $column Closure for a subquery or a string with the column name
6161
* @param Closure|float|int|string|null $value
@@ -89,7 +89,7 @@ public function orHavingEqual(
8989
}
9090

9191
/**
92-
* Appends a "AND $column != $value" condition in the HAVING clause.
92+
* Appends an "AND $column != $value" condition in the HAVING clause.
9393
*
9494
* @param Closure|string $column Closure for a subquery or a string with the column name
9595
* @param Closure|float|int|string|null $value
@@ -123,7 +123,7 @@ public function orHavingNotEqual(
123123
}
124124

125125
/**
126-
* Appends a "AND $column <=> $value" condition in the HAVING clause.
126+
* Appends an "AND $column <=> $value" condition in the HAVING clause.
127127
*
128128
* @param Closure|string $column Closure for a subquery or a string with the column name
129129
* @param Closure|float|int|string|null $value
@@ -157,7 +157,7 @@ public function orHavingNullSafeEqual(
157157
}
158158

159159
/**
160-
* Appends a "AND $column < $value" condition in the HAVING clause.
160+
* Appends an "AND $column < $value" condition in the HAVING clause.
161161
*
162162
* @param Closure|string $column Closure for a subquery or a string with the column name
163163
* @param Closure|float|int|string|null $value
@@ -191,7 +191,7 @@ public function orHavingLessThan(
191191
}
192192

193193
/**
194-
* Appends a "AND $column <= $value" condition in the HAVING clause.
194+
* Appends an "AND $column <= $value" condition in the HAVING clause.
195195
*
196196
* @param Closure|string $column Closure for a subquery or a string with the column name
197197
* @param Closure|float|int|string|null $value
@@ -225,7 +225,7 @@ public function orHavingLessThanOrEqual(
225225
}
226226

227227
/**
228-
* Appends a "AND $column > $value" condition in the HAVING clause.
228+
* Appends an "AND $column > $value" condition in the HAVING clause.
229229
*
230230
* @param Closure|string $column Closure for a subquery or a string with the column name
231231
* @param Closure|float|int|string|null $value
@@ -259,7 +259,7 @@ public function orHavingGreaterThan(
259259
}
260260

261261
/**
262-
* Appends a "AND $column >= $value" condition in the HAVING clause.
262+
* Appends an "AND $column >= $value" condition in the HAVING clause.
263263
*
264264
* @param Closure|string $column Closure for a subquery or a string with the column name
265265
* @param Closure|float|int|string|null $value
@@ -293,7 +293,7 @@ public function orHavingGreaterThanOrEqual(
293293
}
294294

295295
/**
296-
* Appends a "AND $column LIKE $value" condition in the HAVING clause.
296+
* Appends an "AND $column LIKE $value" condition in the HAVING clause.
297297
*
298298
* @param Closure|string $column Closure for a subquery or a string with the column name
299299
* @param Closure|float|int|string|null $value
@@ -327,7 +327,7 @@ public function orHavingLike(
327327
}
328328

329329
/**
330-
* Appends a "AND $column NOT LIKE" $value condition.
330+
* Appends an "AND $column NOT LIKE" $value condition.
331331
*
332332
* @param Closure|string $column Closure for a subquery or a string with the column name
333333
* @param Closure|float|int|string|null $value
@@ -361,7 +361,7 @@ public function orHavingNotLike(
361361
}
362362

363363
/**
364-
* Appends a "AND $column IN (...$values)" condition in the HAVING clause.
364+
* Appends an "AND $column IN (...$values)" condition in the HAVING clause.
365365
*
366366
* @param Closure|string $column Closure for a subquery or a string with the column name
367367
* @param Closure|float|int|string|null $value
@@ -399,7 +399,7 @@ public function orHavingIn(
399399
}
400400

401401
/**
402-
* Appends a "AND $column NOT IN (...$values)" condition in the HAVING clause.
402+
* Appends an "AND $column NOT IN (...$values)" condition in the HAVING clause.
403403
*
404404
* @param Closure|string $column Closure for a subquery or a string with the column name
405405
* @param Closure|float|int|string|null $value
@@ -437,7 +437,7 @@ public function orHavingNotIn(
437437
}
438438

439439
/**
440-
* Appends a "AND $column BETWEEN $min AND $max" condition in the HAVING clause.
440+
* Appends an "AND $column BETWEEN $min AND $max" condition in the HAVING clause.
441441
*
442442
* @param Closure|string $column Closure for a subquery or a string with the column name
443443
* @param Closure|float|int|string|null $min
@@ -475,7 +475,7 @@ public function orHavingBetween(
475475
}
476476

477477
/**
478-
* Appends a "AND $column NOT BETWEEN $min AND $max" condition in the HAVING clause.
478+
* Appends an "AND $column NOT BETWEEN $min AND $max" condition in the HAVING clause.
479479
*
480480
* @param Closure|string $column Closure for a subquery or a string with the column name
481481
* @param Closure|float|int|string|null $min
@@ -513,7 +513,7 @@ public function orHavingNotBetween(
513513
}
514514

515515
/**
516-
* Appends a "AND $column IS NULL" condition in the HAVING clause.
516+
* Appends an "AND $column IS NULL" condition in the HAVING clause.
517517
*
518518
* @param Closure|string $column Closure for a subquery or a string with the column name
519519
*
@@ -541,7 +541,7 @@ public function orHavingIsNull(Closure | string $column) : static
541541
}
542542

543543
/**
544-
* Appends a "AND $column IS NOT NULL" condition in the HAVING clause.
544+
* Appends an "AND $column IS NOT NULL" condition in the HAVING clause.
545545
*
546546
* @param Closure|string $column Closure for a subquery or a string with the column name
547547
*

src/Manipulation/Traits/Join.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function renderFrom() : ?string
6969
*
7070
* @throws LogicException if FROM is not set, but is required for some other clause
7171
*
72-
* @return bool True if has FROM, otherwise false
72+
* @return bool True if it has FROM, otherwise false
7373
*/
7474
protected function hasFrom(string $clause = null) : bool
7575
{
@@ -89,7 +89,7 @@ protected function hasFrom(string $clause = null) : bool
8989
* @param string $type JOIN type. One of: `CROSS`, `INNER`, `LEFT`, `LEFT OUTER`,
9090
* `RIGHT`, `RIGHT OUTER`, `NATURAL`, `NATURAL LEFT`, `NATURAL LEFT OUTER`,
9191
* `NATURAL RIGHT`, `NATURAL RIGHT OUTER` or empty (same as `INNER`)
92-
* @param string|null $clause Condition clause. Null if has a NATURAL type,
92+
* @param string|null $clause Condition clause. Null if it has a NATURAL type,
9393
* otherwise `ON` or `USING`
9494
* @param array<int,Closure|string>|Closure|null $conditional A conditional
9595
* expression as Closure or the columns list as array
@@ -355,7 +355,7 @@ public function naturalRightOuterJoin(Closure | string $table) : static
355355
* `RIGHT OUTER`, `NATURAL`, `NATURAL LEFT`, `NATURAL LEFT OUTER`, `NATURAL RIGHT`
356356
* or `NATURAL RIGHT OUTER`
357357
* @param string|null $clause `ON`, `USING` or null for none
358-
* @param array<int,Closure|string>|Closure|null $expression Column(s) or subquery(ies)
358+
* @param array<Closure|string>|Closure|null $expression Column(s) or subquery(ies)
359359
*
360360
* @return static
361361
*/
@@ -405,7 +405,7 @@ protected function renderJoin() : ?string
405405
* or `NATURAL RIGHT OUTER`
406406
* @param string $table The table name
407407
* @param string|null $clause `ON`, `USING` or null for none
408-
* @param array<int,Closure|string>|Closure|null $expression Column(s) or subquery(ies)
408+
* @param array<Closure|string>|Closure|null $expression Column(s) or subquery(ies)
409409
*
410410
* @return string The JOIN conditional part
411411
*/
@@ -471,7 +471,7 @@ private function renderJoinType(string $type) : string
471471
* @param string $type `NATURAL`, `NATURAL LEFT`, `NATURAL LEFT OUTER`,
472472
* `NATURAL RIGHT`, `NATURAL RIGHT OUTER` or any other non-natural
473473
* @param string|null $clause Must be null if type is natural
474-
* @param array<int,Closure|string>|Closure|null $expression Must be null if type is natural
474+
* @param array<Closure|string>|Closure|null $expression Must be null if type is natural
475475
*
476476
* @throws InvalidArgumentException if $type is natural and has clause or expression
477477
*
@@ -527,7 +527,7 @@ private function renderJoinConditionClause(?string $clause) : ?string
527527
* Renders the JOIN condition expression.
528528
*
529529
* @param string|null $clause `ON`or null
530-
* @param array<int,Closure|string>|Closure|null $expression Column(s) or subquery(ies)
530+
* @param array<Closure|string>|Closure|null $expression Column(s) or subquery(ies)
531531
*
532532
* @return string|null The condition or null if $clause is null
533533
*/

0 commit comments

Comments
 (0)