Completed
Push — master ( fba866...b10a48 )
by Ori
03:03
created
src/Table.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,9 @@
 block discarded – undo
39 39
             $i = 0;
40 40
             try {
41 41
                 foreach ($table as $row) {
42
-                    if (++$i > $numPeekRows) break;
42
+                    if (++$i > $numPeekRows) {
43
+                        break;
44
+                    }
43 45
                 }
44 46
             } catch (Exceptions\DataSourceException $e) {
45 47
                 return [new TableValidationError(TableValidationError::ROW_VALIDATION_FAILED, [
Please login to merge, or discard this patch.
src/Exceptions/DataSourceException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,9 @@
 block discarded – undo
10 10
 {
11 11
     public function __construct($message, $rowNum=0)
12 12
     {
13
-        if (!empty($rowNum)) $message = "row {$rowNum}: {$message}";
13
+        if (!empty($rowNum)) {
14
+            $message = "row {$rowNum}: {$message}";
15
+        }
14 16
         parent::__construct($message);
15 17
     }
16 18
 }
Please login to merge, or discard this patch.