Skip to content

Commit f8e0fdb

Browse files
committed
refactor(Document.php): use PHP_EOL constant instead of "\n\n" string literal in paragraphs method
1 parent ca51df9 commit f8e0fdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Docstore/Document.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use function strpos;
1010
use function count;
1111

12+
use const PHP_EOL;
13+
1214
/**
1315
* Interface for interacting with a document.
1416
*/
@@ -44,7 +46,7 @@ public function __construct(
4446
*/
4547
public function paragraphs(): array
4648
{
47-
return explode("\n\n", $this->pageContent);
49+
return explode(PHP_EOL . PHP_EOL, $this->pageContent);
4850
}
4951

5052
/**

0 commit comments

Comments
 (0)