@@ -442,7 +442,7 @@ |
||
| 442 | 442 | /** |
| 443 | 443 | * Multiplies this time interval with a scalar and returns the result as a new time interval object. |
| 444 | 444 | * |
| 445 | - * @param number $multiplier |
|
| 445 | + * @param integer $multiplier |
|
| 446 | 446 | * @return TimeInterval |
| 447 | 447 | */ |
| 448 | 448 | public function multiply($multiplier): TimeInterval |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Ivory\Value; |
| 4 | 4 | |
| 5 | 5 | use Ivory\Utils\EqualableWithPhpOperators; |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | trait RelationMacros |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @param string[] $columns |
|
| 23 | + */ |
|
| 21 | 24 | abstract public function project($columns): IRelation; |
| 22 | 25 | |
| 23 | 26 | abstract public function tuple(int $offset = 0): ITuple; |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Ivory\Relation; |
| 4 | 4 | |
| 5 | 5 | use Ivory\Data\Map\ArrayRelationMap; |
@@ -301,6 +301,9 @@ |
||
| 301 | 301 | { |
| 302 | 302 | private $refresher; |
| 303 | 303 | |
| 304 | + /** |
|
| 305 | + * @param \Closure $refresher |
|
| 306 | + */ |
|
| 304 | 307 | public function __construct($refresher) |
| 305 | 308 | { |
| 306 | 309 | $this->refresher = $refresher; |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Ivory\Connection\Config; |
| 4 | 4 | |
| 5 | 5 | use Ivory\Connection\ConnectionControl; |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * @param string $pattern |
| 12 | 12 | * @param callable $callback |
| 13 | - * @param string|string[] $subject |
|
| 13 | + * @param string $subject |
|
| 14 | 14 | * @param int $limit |
| 15 | 15 | * @param int|null $count |
| 16 | 16 | * @return string|string[] depending on whether <tt>$subject</tt> is <tt>string</tt> or <tt>array</tt>, |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Ivory\Utils; |
| 4 | 4 | |
| 5 | 5 | class StringUtils |
@@ -35,6 +35,7 @@ discard block |
||
| 35 | 35 | * |
| 36 | 36 | * @param string|string[] one or more names of parameters the cached values of which to invalidate; |
| 37 | 37 | * <tt>null</tt> invalidates everything |
| 38 | + * @return void |
|
| 38 | 39 | */ |
| 39 | 40 | function invalidateCache($paramName = null): void; |
| 40 | 41 | |
@@ -47,6 +48,7 @@ discard block |
||
| 47 | 48 | * |
| 48 | 49 | * @param string|string[] $paramName one or more names of parameters to disabled caching values of; |
| 49 | 50 | * <tt>null</tt> disables the caching altogether |
| 51 | + * @return void |
|
| 50 | 52 | */ |
| 51 | 53 | function disableCaching($paramName = null): void; |
| 52 | 54 | |
@@ -58,6 +60,7 @@ discard block |
||
| 58 | 60 | * argument (which is the default). |
| 59 | 61 | * |
| 60 | 62 | * @param string|string[] $paramName |
| 63 | + * @return void |
|
| 61 | 64 | */ |
| 62 | 65 | function enableCaching($paramName = null): void; |
| 63 | 66 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Ivory\Connection\Config; |
| 4 | 4 | |
| 5 | 5 | /** |
@@ -116,6 +116,10 @@ |
||
| 116 | 116 | return new $exClass($resultHandler, $query); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | + /** |
|
| 120 | + * @param resource $resultHandler |
|
| 121 | + * @param StatementExceptionFactory $fallbackFactory |
|
| 122 | + */ |
|
| 119 | 123 | private function inferExceptionClass($resultHandler, ?StatementExceptionFactory $fallbackFactory = null): string |
| 120 | 124 | { |
| 121 | 125 | if ($this->bySqlStateCodeAndMessage || $this->bySqlStateCode || $this->bySqlStateClass) { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Ivory\Exception; |
| 4 | 4 | |
| 5 | 5 | use Ivory\Lang\Sql\SqlState; |
@@ -204,7 +204,7 @@ |
||
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |
| 207 | - * @param IConnection|string $conn (name of) connection to use as the default connection |
|
| 207 | + * @param IConnection $conn (name of) connection to use as the default connection |
|
| 208 | 208 | * @throws \RuntimeException if the requested connection is not defined |
| 209 | 209 | */ |
| 210 | 210 | public static function useConnectionAsDefault($conn): void |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Ivory; |
| 4 | 4 | |
| 5 | 5 | use Ivory\Connection\ConnectionParameters; |
@@ -51,10 +51,16 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | function getValueSerializer(string $name): ?IValueSerializer; |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param \Ivory\Connection\anonymous//src/Ivory/Connection/TypeControl.php$0 $undefinedTypeHandler |
|
| 56 | + * |
|
| 57 | + * @return void |
|
| 58 | + */ |
|
| 54 | 59 | function setUndefinedTypeHandler(?ITypeDictionaryUndefinedHandler $undefinedTypeHandler); |
| 55 | 60 | |
| 56 | 61 | /** |
| 57 | 62 | * @param string[] $schemaList |
| 63 | + * @return void |
|
| 58 | 64 | */ |
| 59 | 65 | function setTypeSearchPath(array $schemaList): void; |
| 60 | 66 | |
@@ -62,6 +68,7 @@ discard block |
||
| 62 | 68 | * Attach connection-dependent objects in this dictionary to a connection. |
| 63 | 69 | * |
| 64 | 70 | * @param IConnection $connection connection to attach the dictionary to |
| 71 | + * @return void |
|
| 65 | 72 | */ |
| 66 | 73 | function attachToConnection(IConnection $connection): void; |
| 67 | 74 | |
@@ -69,6 +76,7 @@ discard block |
||
| 69 | 76 | * Detach any objects in this dictionary from the database connection. |
| 70 | 77 | * |
| 71 | 78 | * After this operation, the dictionary must be safe for serialization. |
| 79 | + * @return void |
|
| 72 | 80 | */ |
| 73 | 81 | function detachFromConnection(): void; |
| 74 | 82 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Ivory\Type; |
| 4 | 4 | |
| 5 | 5 | use Ivory\Connection\IConnection; |
@@ -151,6 +151,10 @@ |
||
| 151 | 151 | } |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | + /** |
|
| 155 | + * @param boolean|null $aIsInc |
|
| 156 | + * @param boolean|null $bIsInc |
|
| 157 | + */ |
|
| 154 | 158 | private function compareBounds(int $sgn, $aVal, ?bool $aIsInc, $bVal, ?bool $bIsInc): int |
| 155 | 159 | { |
| 156 | 160 | if ($aVal === null && $bVal === null) { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Ivory\Type\Postgresql; |
| 4 | 4 | |
| 5 | 5 | use Ivory\Exception\IncomparableException; |