Replace Heredoc strings with Nowdoc strings

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-02-20 16:46:21 -03:00
parent 4b71da0566
commit 5cbb878dda
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
3 changed files with 3 additions and 6 deletions

View File

@ -16,7 +16,7 @@ use const DATE_W3C;
*/
class OpenDocument
{
public const NS = <<<EOT
public const NS = <<<'EOT'
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"

View File

@ -84,9 +84,6 @@
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat.DisallowedShortNullable">
<severity>4</severity>
</rule>
<rule ref="SlevomatCodingStandard.PHP.RequireNowdoc.RequiredNowdoc">
<severity>4</severity>
</rule>
<rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps">
<severity>4</severity>
</rule>

View File

@ -173,7 +173,7 @@ class ExportTest extends AbstractTestCase
''
);
$expected = <<<SQL
$expected = <<<'SQL'
INSERT INTO test_table (id, name, datetimefield) VALUES
('1', 'abcd', '2011-01-20 02:00:02'),
@ -253,7 +253,7 @@ SQL;
''
);
$expected = <<<SQL
$expected = <<<'SQL'
CREATE DATABASE IF NOT EXISTS test_db DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE test_db;