Mercurial > hg > isophonics-drupal-site
annotate vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/NamespaceDeclarationStandard.xml @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Docs/Namespaces/NamespaceDeclarationStandard.xml@4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <documentation title="Namespace Declarations"> |
Chris@0 | 2 <standard> |
Chris@0 | 3 <![CDATA[ |
Chris@0 | 4 There must be one blank line after the namespace declaration. |
Chris@0 | 5 ]]> |
Chris@0 | 6 </standard> |
Chris@0 | 7 <code_comparison> |
Chris@0 | 8 <code title="Valid: One blank line after the namespace declaration."> |
Chris@0 | 9 <![CDATA[ |
Chris@0 | 10 namespace \Foo\Bar; |
Chris@0 | 11 <em></em> |
Chris@0 | 12 use \Baz; |
Chris@0 | 13 ]]> |
Chris@0 | 14 </code> |
Chris@0 | 15 <code title="Invalid: No blank line after the namespace declaration."> |
Chris@0 | 16 <![CDATA[ |
Chris@0 | 17 namespace \Foo\Bar; |
Chris@0 | 18 use \Baz; |
Chris@0 | 19 ]]> |
Chris@0 | 20 </code> |
Chris@0 | 21 </code_comparison> |
Chris@0 | 22 </documentation> |