@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace frictionlessdata\datapackage\Validators; |
| 4 | 4 | |
| 5 | -use frictionlessdata\datapackage\Registry; |
|
| 6 | 5 | use frictionlessdata\datapackage\Utils; |
| 7 | 6 | use frictionlessdata\tableschema\SchemaValidator; |
| 8 | 7 | use frictionlessdata\tableschema\SchemaValidationError; |
@@ -48,7 +48,9 @@ discard block |
||
| 48 | 48 | $rows[] = $row; |
| 49 | 49 | if ($limit !== null) { |
| 50 | 50 | $limit--; |
| 51 | - if ($limit < 0) break; |
|
| 51 | + if ($limit < 0) { |
|
| 52 | + break; |
|
| 53 | + } |
|
| 52 | 54 | } |
| 53 | 55 | }; |
| 54 | 56 | } else { |
@@ -56,11 +58,15 @@ discard block |
||
| 56 | 58 | $rows[] = $row; |
| 57 | 59 | if ($limit !== null) { |
| 58 | 60 | $limit--; |
| 59 | - if ($limit < 0) break; |
|
| 61 | + if ($limit < 0) { |
|
| 62 | + break; |
|
| 63 | + } |
|
| 60 | 64 | } |
| 61 | 65 | } |
| 62 | 66 | } |
| 63 | - if ($limit !== null && $limit < 0) break; |
|
| 67 | + if ($limit !== null && $limit < 0) { |
|
| 68 | + break; |
|
| 69 | + } |
|
| 64 | 70 | } |
| 65 | 71 | return $rows; |
| 66 | 72 | } |