From 99306f63be08f04b25d54de4eed8a7022b428805 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sat, 22 Jun 2024 09:51:37 +0700 Subject: [PATCH] Revert "Apply fixes from StyleCI" This reverts commit 3aa83cf15ba2a94261e923daa56ac7b50bb5ae38. --- src/Cache/SchemaCache.php | 2 ++ src/Expression/ArrayExpression.php | 3 +++ src/Query/Query.php | 1 + src/QueryBuilder/AbstractDQLQueryBuilder.php | 2 ++ src/Schema/QuoterInterface.php | 1 + src/Schema/SchemaInterface.php | 1 + 6 files changed, 10 insertions(+) diff --git a/src/Cache/SchemaCache.php b/src/Cache/SchemaCache.php index ef6ba79eb..438245d88 100644 --- a/src/Cache/SchemaCache.php +++ b/src/Cache/SchemaCache.php @@ -48,6 +48,7 @@ public function __construct(private CacheInterface $psrCache) /** * Remove a value with the specified key from cache. * + * * @throws InvalidArgumentException */ public function remove(mixed $key): void @@ -184,6 +185,7 @@ public function setExclude(array $value): void * * @link https://www.php-fig.org/psr/psr-16/#12-definitions * + * * @throws InvalidArgumentException For invalid key. * @return string The normalized cache key. */ diff --git a/src/Expression/ArrayExpression.php b/src/Expression/ArrayExpression.php index 75d9d2fcc..c7ed6e7f4 100644 --- a/src/Expression/ArrayExpression.php +++ b/src/Expression/ArrayExpression.php @@ -70,6 +70,7 @@ public function getDimension(): int * * @link https://php.net/manual/en/arrayaccess.offsetexists.php * + * * @throws InvalidConfigException If offset isn't an integer. * @return bool Its `true` on success or `false` on failure. The return value will be cast to boolean if non-boolean * was returned. @@ -85,6 +86,7 @@ public function offsetExists(mixed $offset): bool * * @link https://php.net/manual/en/arrayaccess.offsetget.php * + * * @throws InvalidConfigException If offset isn't an integer. * @return mixed Can return all value types. */ @@ -100,6 +102,7 @@ public function offsetGet(mixed $offset): mixed * * @link https://php.net/manual/en/arrayaccess.offsetset.php * + * * @throws InvalidConfigException If offset isn't an integer. */ public function offsetSet(mixed $offset, mixed $value): void diff --git a/src/Query/Query.php b/src/Query/Query.php index c7dd861bf..2ba0c899e 100644 --- a/src/Query/Query.php +++ b/src/Query/Query.php @@ -821,6 +821,7 @@ private function filterCondition(array|string $condition): array|string * - a string containing only space characters, * - or an empty array. * + * * @return bool If the value is empty. */ private function isEmpty(mixed $value): bool diff --git a/src/QueryBuilder/AbstractDQLQueryBuilder.php b/src/QueryBuilder/AbstractDQLQueryBuilder.php index fc9be152c..35fb544b5 100644 --- a/src/QueryBuilder/AbstractDQLQueryBuilder.php +++ b/src/QueryBuilder/AbstractDQLQueryBuilder.php @@ -544,6 +544,7 @@ protected function extractAlias(string $table): array|bool /** * Checks to see if the given limit is effective. * + * * @return bool Whether the limit is effective. */ protected function hasLimit(mixed $limit): bool @@ -554,6 +555,7 @@ protected function hasLimit(mixed $limit): bool /** * Checks to see if the given offset is effective. * + * * @return bool Whether the offset is effective. */ protected function hasOffset(mixed $offset): bool diff --git a/src/Schema/QuoterInterface.php b/src/Schema/QuoterInterface.php index 13137a848..31ac28a96 100644 --- a/src/Schema/QuoterInterface.php +++ b/src/Schema/QuoterInterface.php @@ -140,6 +140,7 @@ public function quoteTableName(string $name): string; * Attention: The usage of this method isn't safe. * Use prepared statements. * + * * @return mixed The quoted value. */ public function quoteValue(mixed $value): mixed; diff --git a/src/Schema/SchemaInterface.php b/src/Schema/SchemaInterface.php index d01872c0e..446cb83b4 100644 --- a/src/Schema/SchemaInterface.php +++ b/src/Schema/SchemaInterface.php @@ -261,6 +261,7 @@ public function getDefaultSchema(): string|null; /** * Determines the SQL data type for the given PHP data value. * + * * @return int The type. * @see DataType */