Upgrade to 3.3.0

This commit is contained in:
Bastian Allgeier
2019-11-05 09:35:58 +01:00
parent 447a9dd266
commit a431716732
186 changed files with 3068 additions and 1458 deletions

View File

@@ -64,7 +64,7 @@ class Database
/**
* Set to true to throw exceptions on failed queries
*
* @var boolean
* @var bool
*/
protected $fail = false;
@@ -232,7 +232,7 @@ class Database
/**
* Sets the exception mode for the next query
*
* @param boolean $fail
* @param bool $fail
* @return \Kirby\Database\Database
*/
public function fail(bool $fail = true)
@@ -358,7 +358,7 @@ class Database
*
* @param string $query
* @param array $bindings
* @return boolean
* @return bool
*/
protected function hit(string $query, array $bindings = []): bool
{
@@ -455,7 +455,7 @@ class Database
*
* @param string $query
* @param array $bindings
* @return boolean
* @return bool
*/
public function execute(string $query, array $bindings = []): bool
{
@@ -491,7 +491,7 @@ class Database
* Checks if a table exists in the current database
*
* @param string $table
* @return boolean
* @return bool
*/
public function validateTable(string $table): bool
{
@@ -515,7 +515,7 @@ class Database
*
* @param string $table
* @param string $column
* @return boolean
* @return bool
*/
public function validateColumn(string $table, string $column): bool
{
@@ -544,7 +544,7 @@ class Database
*
* @param string $table
* @param array $columns
* @return boolean
* @return bool
*/
public function createTable($table, $columns = []): bool
{
@@ -566,7 +566,7 @@ class Database
* Drops a table
*
* @param string $table
* @return boolean
* @return bool
*/
public function dropTable($table): bool
{

View File

@@ -87,7 +87,7 @@ class Query
/**
* Boolean for if exceptions should be thrown on failing queries
*
* @var boolean
* @var bool
*/
protected $fail = false;
@@ -129,21 +129,21 @@ class Query
/**
* The offset, which should be applied to the select query
*
* @var integer
* @var int
*/
protected $offset = 0;
/**
* The limit, which should be applied to the select query
*
* @var integer
* @var int
*/
protected $limit;
/**
* Boolean to enable query debugging
*
* @var boolean
* @var bool
*/
protected $debug = false;
@@ -184,7 +184,7 @@ class Query
* If enabled, the query will return an array with all important info about
* the query instead of actually executing the query and returning results
*
* @param boolean $debug
* @param bool $debug
* @return \Kirby\Database\Query
*/
public function debug(bool $debug = true)
@@ -196,7 +196,7 @@ class Query
/**
* Enables distinct select clauses.
*
* @param boolean $distinct
* @param bool $distinct
* @return \Kirby\Database\Query
*/
public function distinct(bool $distinct = true)
@@ -209,7 +209,7 @@ class Query
* Enables failing queries.
* If enabled queries will no longer fail silently but throw an exception
*
* @param boolean $fail
* @param bool $fail
* @return \Kirby\Database\Query
*/
public function fail(bool $fail = true)
@@ -880,7 +880,7 @@ class Query
*
* @param array $values You can pass values here or set them with ->values() before
* @param mixed $where You can pass a where clause here or set it with ->where() before
* @return boolean
* @return bool
*/
public function update($values = null, $where = null)
{
@@ -891,7 +891,7 @@ class Query
* Fires a delete query
*
* @param mixed $where You can pass a where clause here or set it with ->where() before
* @return boolean
* @return bool
*/
public function delete($where = null)
{

View File

@@ -112,7 +112,7 @@ class Sql
*
* @param string $table
* @param string $column
* @param boolean $enforceQualified
* @param bool $enforceQualified
* @return string|null
*/
public function columnName(string $table, string $column, bool $enforceQualified = false): ?string
@@ -483,8 +483,8 @@ class Sql
/**
* Creates a limit and offset query instruction
*
* @param integer $offset
* @param integer|null $limit
* @param int $offset
* @param int|null $limit
* @return array
*/
public function limit(int $offset = 0, int $limit = null): array
@@ -780,7 +780,7 @@ class Sql
*
* @param string $table
* @param string $column
* @return boolean
* @return bool
*/
public function validateColumn(string $table, string $column): bool
{
@@ -797,8 +797,8 @@ class Sql
* @param string $table Table name
* @param mixed $values A value string or array of values
* @param string $separator A separator which should be used to join values
* @param boolean $set If true builds a set list of values for update clauses
* @param boolean $enforceQualified Always use fully qualified column names
* @param bool $set If true builds a set list of values for update clauses
* @param bool $enforceQualified Always use fully qualified column names
*/
public function values(string $table, $values, string $separator = ', ', bool $set = true, bool $enforceQualified = false): array
{