mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
Format code.
This commit is contained in:
parent
4449f555ac
commit
ed54519db1
@ -9,11 +9,13 @@
|
||||
- [#441](https://github.com/hyperf-cloud/hyperf/pull/441) Automatically close the spare redis client when it is used in low frequency.
|
||||
- [#455](https://github.com/hyperf-cloud/hyperf/pull/455) Added `download()` method of `Hyperf\HttpServer\Contract\ResponseInterface`.
|
||||
- [#500](https://github.com/hyperf-cloud/hyperf/pull/499) Added fluent method calls of `Hyperf\HttpServer\Contract\ResponseInterface`.
|
||||
- [#523](https://github.com/hyperf-cloud/hyperf/pull/523) Added option `table-mapping` for command `db:model`.
|
||||
|
||||
## Changed
|
||||
|
||||
- [#437](https://github.com/hyperf-cloud/hyperf/pull/437) Changed `Hyperf\Testing\Client` handle exception handlers instead of throw an exception directly.
|
||||
- [#463](https://github.com/hyperf-cloud/hyperf/pull/463) Simplify `container.php` and improve annotation caching mechanism.
|
||||
- [#523](https://github.com/hyperf-cloud/hyperf/pull/523) Generate the singular class of an plural table.
|
||||
|
||||
config/container.php
|
||||
|
||||
|
@ -197,7 +197,7 @@ abstract class Grammar
|
||||
$segments[0]
|
||||
) . ' as ' . $this->wrapValue(
|
||||
$segments[1]
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -74,7 +74,7 @@ class Grammar extends BaseGrammar
|
||||
$sql = trim(
|
||||
$this->concatenate(
|
||||
$this->compileComponents($query)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$query->columns = $original;
|
||||
@ -770,7 +770,7 @@ class Grammar extends BaseGrammar
|
||||
return $not . $this->compileJsonContains(
|
||||
$where['column'],
|
||||
$this->parameter($where['value'])
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -81,7 +81,7 @@ class Builder
|
||||
return count($this->connection->selectFromWriteConnection(
|
||||
$this->grammar->compileTableExists(),
|
||||
[$table]
|
||||
)) > 0;
|
||||
)) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user