Completed
Branch master (0f9901)
by Ondřej
03:24
created
src/Ivory/Connection/ConnConfig.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -301,6 +301,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Ivory/Exception/StatementExceptionFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -108,6 +108,9 @@
 block discarded – undo
108 108
         return new $exClass($resultHandler, $query);
109 109
     }
110 110
 
111
+    /**
112
+     * @param resource $resultHandler
113
+     */
111 114
     private function inferExceptionClass($resultHandler, StatementExceptionFactory $fallbackFactory = null)
112 115
     {
113 116
         if ($this->bySqlStateCodeAndMessage || $this->bySqlStateCode || $this->bySqlStateClass) {
Please login to merge, or discard this patch.
src/Ivory/Type/Std/MoneyType.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -29,6 +29,10 @@
 block discarded – undo
29 29
 {
30 30
     private $decSepRetriever;
31 31
 
32
+    /**
33
+     * @param string $schemaName
34
+     * @param string $name
35
+     */
32 36
     public function __construct($schemaName, $name, IConnection $connection)
33 37
     {
34 38
         parent::__construct($schemaName, $name, $connection);
Please login to merge, or discard this patch.
src/Ivory/Type/Std/TimestampType.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -45,6 +45,10 @@
 block discarded – undo
45 45
 
46 46
     private $dateStyleRetriever;
47 47
 
48
+    /**
49
+     * @param string $schemaName
50
+     * @param string $name
51
+     */
48 52
     public function __construct($schemaName, $name, IConnection $connection)
49 53
     {
50 54
         parent::__construct($schemaName, $name, $connection);
Please login to merge, or discard this patch.
src/Ivory/Type/Std/TimestampTzType.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -28,6 +28,10 @@  discard block
 block discarded – undo
28 28
     private $dateStyleRetriever;
29 29
     private $localMeanTimeZoneRetriever;
30 30
 
31
+    /**
32
+     * @param string $schemaName
33
+     * @param string $name
34
+     */
31 35
     public function __construct($schemaName, $name, IConnection $connection)
32 36
     {
33 37
         parent::__construct($schemaName, $name, $connection);
@@ -38,6 +42,10 @@  discard block
 block discarded – undo
38 42
         $this->localMeanTimeZoneRetriever = new ConnConfigValueRetriever(
39 43
             $connection->getConfig(),
40 44
             ConfigParam::TIME_ZONE,
45
+
46
+            /**
47
+             * @param string $timeZone
48
+             */
41 49
             function ($timeZone) use ($connection) {
42 50
                 try {
43 51
                     $tz = new \DateTimeZone($timeZone);
Please login to merge, or discard this patch.
src/Ivory/Value/DateBase.php 1 patch
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,6 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     /**
58 58
      * @internal Only for the purpose of Ivory itself.
59
+     * @param integer $inf
59 60
      */
60 61
     final protected function __construct($inf, \DateTimeImmutable $dt = null)
61 62
     {
@@ -178,7 +179,7 @@  discard block
 block discarded – undo
178 179
 
179 180
     /**
180 181
      * @param \DateTimeZone $timezone timezone to create the {@link \DateTime} object with
181
-     * @return \DateTime|null the date/time represented as a {@link \DateTimeImmutable} object;
182
+     * @return null|\DateTimeImmutable the date/time represented as a {@link \DateTimeImmutable} object;
182 183
      *                        <tt>null</tt> iff the date/time is not finite
183 184
      */
184 185
     public function toDateTimeImmutable(\DateTimeZone $timezone = null)
@@ -233,6 +234,13 @@  discard block
 block discarded – undo
233 234
     }
234 235
 
235 236
 
237
+    /**
238
+     * @param integer $years
239
+     * @param integer $months
240
+     * @param integer $days
241
+     * @param integer $hours
242
+     * @param integer $minutes
243
+     */
236 244
     final protected function addPartsImpl($years, $months, $days, $hours, $minutes, $seconds)
237 245
     {
238 246
         if ($this->inf) {
Please login to merge, or discard this patch.
src/Ivory/Value/Line.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
     /**
39 39
      * Creates a new line defined by two different points.
40 40
      *
41
-     * @param Point|float $p1
42
-     * @param Point|float $p2
41
+     * @param Point $p1
42
+     * @param Point $p2
43 43
      * @return Line
44 44
      */
45 45
     public static function fromPoints($p1, $p2)
Please login to merge, or discard this patch.
src/Ivory/Value/NetAddress.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
 
116 116
     /**
117
-     * @return bool whether the PHP was built with IPv6 support enabled
117
+     * @return boolean|null whether the PHP was built with IPv6 support enabled
118 118
      */
119 119
     private static function ipv6Support()
120 120
     {
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
      *
349 349
      * @param NetAddress|string $address a {@link NetAddress} or anything {@link NetAddress::fromString()} accepts as
350 350
      *                                     its first argument
351
-     * @return bool
351
+     * @return null|boolean
352 352
      */
353 353
     public function equals($address)
354 354
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
                 $i += $lzsLen - 1;
288 288
                 continue;
289 289
             }
290
-            $result .= (ltrim($fields[$i], '0') ? : '0');
290
+            $result .= (ltrim($fields[$i], '0') ?: '0');
291 291
         }
292 292
         if ($lzsStart + $lzsLen == 8) {
293 293
             $result .= ':';
Please login to merge, or discard this patch.
src/Ivory/Value/TextSearchQuery.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -38,11 +38,17 @@
 block discarded – undo
38 38
         return new TextSearchQuery($queryString);
39 39
     }
40 40
 
41
+    /**
42
+     * @param string $queryString
43
+     */
41 44
     private function __construct($queryString)
42 45
     {
43 46
         $this->queryString = $queryString;
44 47
     }
45 48
 
49
+    /**
50
+     * @return string
51
+     */
46 52
     public function toString()
47 53
     {
48 54
         return $this->queryString;
Please login to merge, or discard this patch.