Skip to content

Commit 2ab51be

Browse files
committed
typos
1 parent 66983b4 commit 2ab51be

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Database/IConventions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ function getPrimary(string $table);
2424
/**
2525
* Returns referenced table & referenced column.
2626
* Example:
27-
* (author, book) returns array(book, author_id)
27+
* (author, book) returns [book, author_id]
2828
*
29-
* @return array|null array(referenced table, referenced column)
29+
* @return array|null [referenced table, referenced column]
3030
* @throws AmbiguousReferenceKeyException
3131
*/
3232
function getHasManyReference(string $table, string $key): ?array;
3333

3434
/**
3535
* Returns referenced table & referencing column.
3636
* Example
37-
* (book, author) returns array(author, author_id)
38-
* (book, translator) returns array(author, translator_id)
37+
* (book, author) returns [author, author_id]
38+
* (book, translator) returns [author, translator_id]
3939
*
40-
* @return array|null array(referenced table, referencing column)
40+
* @return array|null [referenced table, referencing column]
4141
*/
4242
function getBelongsToReference(string $table, string $key): ?array;
4343
}

src/Database/Table/Selection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public function joinWhere(string $tableChain, string $condition, ...$params)
325325
protected function condition($condition, array $params, $tableChain = null): void
326326
{
327327
$this->emptyResultSet();
328-
if (is_array($condition) && $params === []) { // where(array('column1' => 1, 'column2 > ?' => 2))
328+
if (is_array($condition) && $params === []) { // where(['column1' => 1, 'column2 > ?' => 2])
329329
foreach ($condition as $key => $val) {
330330
if (is_int($key)) {
331331
$this->condition($val, [], $tableChain); // where('full condition')
@@ -733,7 +733,7 @@ protected function refreshData(): void
733733

734734
/**
735735
* Inserts row in a table.
736-
* @param array|\Traversable|Selection $data array($column => $value)|\Traversable|Selection for INSERT ... SELECT
736+
* @param array|\Traversable|Selection $data [$column => $value]|\Traversable|Selection for INSERT ... SELECT
737737
* @return ActiveRow|int|bool Returns IRow or number of affected rows for Selection or table without primary key
738738
*/
739739
public function insert(iterable $data)

0 commit comments

Comments
 (0)