Skip to content

Commit 5cbb878

Browse files
committed
Replace Heredoc strings with Nowdoc strings
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 4b71da0 commit 5cbb878

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

libraries/classes/OpenDocument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class OpenDocument
1818
{
19-
public const NS = <<<EOT
19+
public const NS = <<<'EOT'
2020
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
2121
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
2222
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"

phpcs.xml.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@
8484
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat.DisallowedShortNullable">
8585
<severity>4</severity>
8686
</rule>
87-
<rule ref="SlevomatCodingStandard.PHP.RequireNowdoc.RequiredNowdoc">
88-
<severity>4</severity>
89-
</rule>
9087
<rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps">
9188
<severity>4</severity>
9289
</rule>

test/classes/ExportTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function testExportDatabase(): void
173173
''
174174
);
175175

176-
$expected = <<<SQL
176+
$expected = <<<'SQL'
177177
178178
INSERT INTO test_table (id, name, datetimefield) VALUES
179179
('1', 'abcd', '2011-01-20 02:00:02'),
@@ -253,7 +253,7 @@ public function testExportServer(): void
253253
''
254254
);
255255

256-
$expected = <<<SQL
256+
$expected = <<<'SQL'
257257
CREATE DATABASE IF NOT EXISTS test_db DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
258258
USE test_db;
259259

0 commit comments

Comments
 (0)