@@ -39,7 +39,9 @@ |
||
| 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, [ |
@@ -10,7 +10,9 @@ |
||
| 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 | } |