Passed
Push — master ( 339072...c27d2d )
by Ondřej
03:18
created
src/Ivory/Connection/TypeControl.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@
 block discarded – undo
70 70
                 $dict->disableTypeUsageWatching();
71 71
             }
72 72
             return $dict;
73
-        }
74
-        else {
73
+        } else {
75 74
             return null;
76 75
         }
77 76
     }
Please login to merge, or discard this patch.
src/Ivory/Relation/IRelation.php 1 patch
Doc Comments   +2 added lines, -9 removed lines patch added patch discarded remove patch
@@ -162,13 +162,6 @@  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
166
-     *                                  Zero-based offset or (non-numeric) name of column to project from this relation,
167
-     *                                    or an evaluator which computes each value from the tuple.
168
-     *                                  As an evaluator, either {@link ITupleEvaluator} (the
169
-     *                                    {@link ITupleEvaluator::evaluate()} method of which is called) or
170
-     *                                    <tt>Closure</tt> may be used; the <tt>Closure</tt> is given one {@link ITuple}
171
-     *                                    argument and is expected to return the value to use for the resulting column.
172 165
      * @return IColumn
173 166
      * @throws UndefinedColumnException if no column matches the specification
174 167
      * @throws AmbiguousException if referring to the column by its name, which is used by multiple columns
@@ -318,12 +311,12 @@  discard block
 block discarded – undo
318 311
     function tuple(int $offset = 0): ITuple;
319 312
 
320 313
     /**
321
-     * @param int|string|ITupleEvaluator|\Closure $colOffsetOrNameOrEvaluator
314
+     * @param integer $colOffsetOrNameOrEvaluator
322 315
      *                                  Specification of column from which to get the value. See {@link col()} for more
323 316
      *                                    details on the column specification.
324 317
      * @param int $tupleOffset zero-based offset of the tuple to get;
325 318
      *                         if negative, the <tt>-$tupleOffset</tt>'th tuple from the end is returned
326
-     * @return mixed
319
+     * @return string
327 320
      * @throws \OutOfBoundsException when this relation has fewer than <tt>$tupleOffset+1</tt> tuples, or fewer than
328 321
      *                                 <tt>-$tupleOffset</tt> tuples if <tt>$tupleOffset</tt> is negative
329 322
      * @throws UndefinedColumnException if no column matches the specification
Please login to merge, or discard this patch.
src/Ivory/Relation/ProjectedRelationBase.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
             $colName = $col->getName();
19 19
             if (strlen($colName) > 0) {
20 20
                 $this->projectedColNameMap[$colName] = (isset($this->projectedColNameMap[$colName]) ?
21
-                    Tuple::AMBIGUOUS_COL :
22
-                    $colOffset
21
+                    Tuple::AMBIGUOUS_COL : $colOffset
23 22
                 );
24 23
             }
25 24
         }
@@ -33,7 +32,7 @@  discard block
 block discarded – undo
33 32
      * @param int $starCnt number of star wildcards is stored here
34 33
      * @return string PCRE equivalent to <tt>$macroPattern</tt>
35 34
      */
36
-    protected static function simpleMacroPatternToPcre(string $macroPattern, int &$starCnt = null): string
35
+    protected static function simpleMacroPatternToPcre(string $macroPattern, int & $starCnt = null): string
37 36
     {
38 37
         $starCnt = 0;
39 38
         $pcre = '/^';
Please login to merge, or discard this patch.