Completed
Branch master (0f9901)
by Ondřej
03:24
created
src/Ivory/Type/RangeType.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -151,6 +151,10 @@
 block discarded – undo
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, $aIsInc, $bVal, $bIsInc): int
155 159
     {
156 160
         if ($aVal === null && $bVal === null) {
Please login to merge, or discard this patch.
src/Ivory/Type/ArrayType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
      * @param int $maxDim the maximal dimension discovered so far
201 201
      * @return string the PostgreSQL external representation of <tt>$val</tt>
202 202
      */
203
-    private function serializeValueImpl($val, &$bounds = [], int $curDim = 0, int &$maxDim = -1): string
203
+    private function serializeValueImpl($val, &$bounds = [], int $curDim = 0, int & $maxDim = -1): string
204 204
     {
205 205
         if ($val === null) {
206 206
             return 'NULL';
Please login to merge, or discard this patch.
src/Ivory/Connection/ICachingConnConfig.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@  discard block
 block discarded – undo
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);
40 41
 
@@ -47,6 +48,7 @@  discard block
 block discarded – undo
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);
52 54
 
@@ -58,6 +60,7 @@  discard block
 block discarded – undo
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);
63 66
 }
Please login to merge, or discard this patch.
src/Ivory/Exception/ConnectionException.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 class ConnectionException extends \RuntimeException
14 14
 {
15 15
     /**
16
-     * @param string|resource $message alternatively to the message, a connection handler may be given - the last error
16
+     * @param string $message alternatively to the message, a connection handler may be given - the last error
17 17
      *                                   message on this connection is considered then
18 18
      * @param int $code
19 19
      * @param Exception $previous
Please login to merge, or discard this patch.
src/Ivory/Relation/IRelation.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -311,12 +311,12 @@
 block discarded – undo
311 311
     function tuple(int $offset = 0): ITuple;
312 312
 
313 313
     /**
314
-     * @param int|string|ITupleEvaluator|\Closure $colOffsetOrNameOrEvaluator
314
+     * @param integer $colOffsetOrNameOrEvaluator
315 315
      *                                  Specification of column from which to get the value. See {@link col()} for more
316 316
      *                                    details on the column specification.
317 317
      * @param int $tupleOffset zero-based offset of the tuple to get;
318 318
      *                         if negative, the <tt>-$tupleOffset</tt>'th tuple from the end is returned
319
-     * @return mixed
319
+     * @return string
320 320
      * @throws \OutOfBoundsException when this relation has fewer than <tt>$tupleOffset+1</tt> tuples, or fewer than
321 321
      *                                 <tt>-$tupleOffset</tt> tuples if <tt>$tupleOffset</tt> is negative
322 322
      * @throws UndefinedColumnException if no column matches the specification
Please login to merge, or discard this patch.
src/Ivory/Result/SqlState.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -254,6 +254,9 @@
 block discarded – undo
254 254
         return new SqlState($code);
255 255
     }
256 256
 
257
+    /**
258
+     * @param string $code
259
+     */
257 260
     private function __construct($code)
258 261
     {
259 262
         $this->code = $code;
Please login to merge, or discard this patch.
src/Ivory/Type/IntrospectingTypeDictionaryCompiler.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@  discard block
 block discarded – undo
9 9
     private $connection;
10 10
     private $connHandler;
11 11
 
12
+    /**
13
+     * @param resource $connHandler
14
+     */
12 15
     public function __construct(IConnection $connection, $connHandler)
13 16
     {
14 17
         $this->connection = $connection;
@@ -195,6 +198,10 @@  discard block
 block discarded – undo
195 198
         }
196 199
     }
197 200
 
201
+    /**
202
+     * @param string $query
203
+     * @param string $errorDesc
204
+     */
198 205
     private function query($query, $errorDesc)
199 206
     {
200 207
         $result = pg_query($this->connHandler, $query);
Please login to merge, or discard this patch.
src/Ivory/Utils/System.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     }
23 23
 
24 24
     /**
25
-     * @return bool whether the GMP extension is available
25
+     * @return boolean|null whether the GMP extension is available
26 26
      */
27 27
     public static function hasGMP()
28 28
     {
Please login to merge, or discard this patch.
src/Ivory/Value/BitString.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
     /**
83 83
      * @param BitString $other
84
-     * @return bool whether this and the other bit string are of the same type, have the same bits and same length
84
+     * @return null|boolean whether this and the other bit string are of the same type, have the same bits and same length
85 85
      */
86 86
     public function equals($other)
87 87
     {
Please login to merge, or discard this patch.