Skip to content

Commit 778b646

Browse files
committed
Use PHP_EOL instead of "\n" in documentation
1 parent d1f4507 commit 778b646

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/en/reference/schema-manager.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Now you can loop over the array inspecting each sequence object:
5959
6060
<?php
6161
foreach ($sequences as $sequence) {
62-
echo $sequence->getObjectName()->toString() . "\n";
62+
echo $sequence->getObjectName()->toString() . PHP_EOL;
6363
}
6464
6565
listTableColumns()
@@ -79,7 +79,7 @@ Now you can loop over the array inspecting each column object:
7979
8080
<?php
8181
foreach ($columns as $column) {
82-
echo $column->getObjectName()->toString() . ': ' . $column->getType() . "\n";
82+
echo $column->getObjectName()->toString() . ': ' . $column->getType() . PHP_EOL;
8383
}
8484
8585
introspectTable()
@@ -119,7 +119,7 @@ object:
119119
120120
<?php
121121
foreach ($foreignKeys as $foreignKey) {
122-
echo $foreignKey->getObjectName()->toString() . "\n";
122+
echo $foreignKey->getObjectName()->toString() . PHP_EOL;
123123
}
124124
125125
listTableIndexes()
@@ -139,7 +139,7 @@ Now you can loop over the array inspecting each index object:
139139
140140
<?php
141141
foreach ($indexes as $index) {
142-
echo $index->getObjectName()->toString() . ': ' . ($index->isUnique() ? 'unique' : 'not unique') . "\n";
142+
echo $index->getObjectName()->toString() . ': ' . ($index->isUnique() ? 'unique' : 'not unique') . PHP_EOL;
143143
}
144144
145145
listTables()
@@ -162,9 +162,9 @@ retrieved with the ``getColumns()`` method:
162162
163163
<?php
164164
foreach ($tables as $table) {
165-
echo $table->getObjectName()->toString() . " columns:\n\n";
165+
echo $table->getObjectName()->toString() . " columns:" . PHP_EOL;
166166
foreach ($table->getColumns() as $column) {
167-
echo ' - ' . $column->getObjectName()->toString() . "\n";
167+
echo ' - ' . $column->getObjectName()->toString() . PHP_EOL;
168168
}
169169
}
170170
@@ -185,7 +185,7 @@ Now you can loop over the array inspecting each view object:
185185
186186
<?php
187187
foreach ($views as $view) {
188-
echo $view->getObjectName()->toString() . ': ' . $view->getSql() . "\n";
188+
echo $view->getObjectName()->toString() . ': ' . $view->getSql() . PHP_EOL;
189189
}
190190
191191
introspectSchema()

0 commit comments

Comments
 (0)