Completed
Push — master ( 5f3c84...0c19f1 )
by Ondřej
03:04
created
src/Ivory/Value/VarBitString.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ivory\Value;
5 5
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @return VarBitString
32 32
      * @throws \InvalidArgumentException if <tt>$length</tt> is a non-positive number (PostgreSQL forbids it)
33 33
      */
34
-    public static function fromString(string $bits, ?int $maxLength = null): VarBitString
34
+    public static function fromString(string $bits, ?int $maxLength = null) : VarBitString
35 35
     {
36 36
         $bits = (string)$bits;
37 37
 
Please login to merge, or discard this patch.
src/Ivory/Value/Timestamp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ivory\Value;
5 5
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      *                         fractional part;
173 173
      *                       <tt>null</tt> iff the date/time is not finite
174 174
      */
175
-    public function toParts(): ?array
175
+    public function toParts(): ? array
176 176
     {
177 177
         if ($this->inf) {
178 178
             return null;
Please login to merge, or discard this patch.
src/Ivory/Relation/FilteredColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ivory\Relation;
5 5
 
Please login to merge, or discard this patch.
src/Ivory/Relation/IRelation.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
      * @throws UndefinedColumnException if no column matches the specification
265 265
      * @throws AmbiguousException if referring to the column by its name, which is used by multiple columns
266 266
      */
267
-    function toSet($colOffsetOrNameOrEvaluator, ?ISet $set = null): ISet;
267
+    function toSet($colOffsetOrNameOrEvaluator, ?ISet $set = null) : ISet;
268 268
 
269 269
     /**
270 270
      * Reduces the relation only to unique tuples.
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * Projects a single column from this relation.
164 164
      *
165
-     * @param int|string|ITupleEvaluator|\Closure $offsetOrNameOrEvaluator
165
+     * @param integer $offsetOrNameOrEvaluator
166 166
      *                                  Zero-based offset or (non-numeric) name of column to project from this relation,
167 167
      *                                    or an evaluator which computes each value from the tuple.
168 168
      *                                  As an evaluator, either {@link ITupleEvaluator} (the
@@ -318,12 +318,12 @@  discard block
 block discarded – undo
318 318
     function tuple(int $offset = 0): ITuple;
319 319
 
320 320
     /**
321
-     * @param int|string|ITupleEvaluator|\Closure $colOffsetOrNameOrEvaluator
321
+     * @param integer $colOffsetOrNameOrEvaluator
322 322
      *                                  Specification of column from which to get the value. See {@link col()} for more
323 323
      *                                    details on the column specification.
324 324
      * @param int $tupleOffset zero-based offset of the tuple to get;
325 325
      *                         if negative, the <tt>-$tupleOffset</tt>'th tuple from the end is returned
326
-     * @return mixed
326
+     * @return string
327 327
      * @throws \OutOfBoundsException when this relation has fewer than <tt>$tupleOffset+1</tt> tuples, or fewer than
328 328
      *                                 <tt>-$tupleOffset</tt> tuples if <tt>$tupleOffset</tt> is negative
329 329
      * @throws UndefinedColumnException if no column matches the specification
Please login to merge, or discard this patch.
src/Ivory/Relation/ProjectedRelationBase.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ivory\Relation;
5 5
 
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
             $colName = $col->getName();
21 21
             if ($colName !== null && $colName !== '') {
22 22
                 $this->projectedColNameMap[$colName] = (isset($this->projectedColNameMap[$colName]) ?
23
-                    Tuple::AMBIGUOUS_COL :
24
-                    $colOffset
23
+                    Tuple::AMBIGUOUS_COL : $colOffset
25 24
                 );
26 25
             }
27 26
         }
@@ -35,7 +34,7 @@  discard block
 block discarded – undo
35 34
      * @param int $starCnt number of star wildcards is stored here
36 35
      * @return string PCRE equivalent to <tt>$macroPattern</tt>
37 36
      */
38
-    protected static function simpleMacroPatternToPcre(string $macroPattern, int &$starCnt = null): string
37
+    protected static function simpleMacroPatternToPcre(string $macroPattern, int & $starCnt = null): string
39 38
     {
40 39
         $starCnt = 0;
41 40
         $pcre = '/^';
Please login to merge, or discard this patch.
src/Ivory/Relation/Alg/TupleFilterIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ivory\Relation\Alg;
5 5
 
Please login to merge, or discard this patch.
src/Ivory/Type/TypeRegister.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ivory\Type;
5 5
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      *                                provided in the first argument
80 80
      * @return bool whether the type has actually been unregistered (<tt>false</tt> if it was not registered)
81 81
      */
82
-    public function unregisterType($schemaNameOrType, ?string $typeName = null): bool
82
+    public function unregisterType($schemaNameOrType, ?string $typeName = null) : bool
83 83
     {
84 84
         if ($schemaNameOrType instanceof IType) {
85 85
             if ($typeName !== null) {
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         $schemaNameOrFunc,
191 191
         ?string $funcName = null,
192 192
         ?ITotallyOrderedType $subtype = null
193
-    ): bool {
193
+    ) : bool {
194 194
         if ($schemaNameOrFunc instanceof IRangeCanonicalFunc) {
195 195
             if ($funcName !== null) {
196 196
                 $msg = sprintf(
Please login to merge, or discard this patch.
src/Ivory/Type/ConnectionDependentBaseType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ivory\Type;
5 5
 
Please login to merge, or discard this patch.
src/Ivory/Type/Std/PointType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ivory\Type\Std;
5 5
 
Please login to merge, or discard this patch.