Skip to content

Commit 8657e58

Browse files
committed
minor code style fixes
1 parent 648b757 commit 8657e58

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Loader/StrictPoLoader.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,13 @@ private function isHeader(): bool
475475
private function getErrorPosition(): string
476476
{
477477
if ($this->displayErrorLine) {
478-
$pieces = preg_split("/\\r\\n|\\n\\r|\\n|\\r/", substr($this->data, 0, $this->position));
478+
$pieces = preg_split('/\\r\\n|\\n\\r|\\n|\\r/', substr($this->data, 0, $this->position));
479479
$line = count($pieces);
480480
$column = strlen(end($pieces));
481+
481482
return " at line {$line} column {$column}";
482483
}
484+
483485
return " at byte {$this->position}";
484486
}
485487
}

tests/StrictPoLoaderTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ public function testBadFormattedPo(
294294
string $po,
295295
bool $throwOnWarning = false,
296296
bool $displayErrorLine = false
297-
): void
298-
{
297+
): void {
299298
$this->expectExceptionMessageMatches($exceptionPattern);
300299
$loader = $this->createPoLoader();
301300
$loader->throwOnWarning = $throwOnWarning;

0 commit comments

Comments
 (0)