PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Strings/UnnecessaryHeredocStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Nolimitbuzz WP Theme   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Strings/UnnecessaryHeredocStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Strings/UnnecessaryHeredocStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Nolimitbuzz WP Theme
WordPress theme to used as start of new themes
Author: By
Last change:
Date: 27 days ago
Size: 1,120 bytes
 

Contents

Class file image Download
<documentation title="Unnecessary Heredoc"> <standard> <![CDATA[ If no interpolation or expressions are used in the body of a heredoc, nowdoc syntax should be used instead. ]]> </standard> <code_comparison> <code title="Valid: Using nowdoc syntax for a text string without any interpolation or expressions."> <![CDATA[ $nowdoc = <em><<<'EOD'</em> some text EOD; ]]> </code> <code title="Invalid: Using heredoc syntax for a text string without any interpolation or expressions."> <![CDATA[ $heredoc = <em><<<EOD</em> some text EOD; ]]> </code> </code_comparison> <code_comparison> <code title="Valid: Using heredoc syntax for a text string containing interpolation or expressions."> <![CDATA[ $heredoc = <em><<<"EOD"</em> some $text EOD; ]]> </code> <code title="Invalid: Using heredoc syntax for a text string without any interpolation or expressions."> <![CDATA[ $heredoc = <em><<<"EOD"</em> some text EOD; ]]> </code> </code_comparison> </documentation>