File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 412
412
<!-- Covered by the Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterReference error code. -->
413
413
414
414
415
+ <!--
416
+ #############################################################################
417
+ Handbook: Declare Statements, Namespace, and Import Statements - Namespace declarations.
418
+ Ref: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#namespace-declarations
419
+ #############################################################################
420
+ -->
421
+ <!-- Rule: Each part of a namespace name should consist of capitalized words separated by underscores. -->
422
+
423
+ <!-- Rule: Namespace declarations should have exactly one blank line before the declaration and at least one blank line after. -->
424
+
425
+ <!-- Covers rule: There should be only one namespace declaration per file... -->
426
+ <rule ref =" Universal.Namespaces.OneDeclarationPerFile" />
427
+
428
+ <!-- Rule: ... and it should be at the top of the file.
429
+ Note: with only one namespace declaration, it not being at the top of the file would be a parse error. -->
430
+
431
+ <!-- Covers rule: Namespace declarations using curly brace syntax are not allowed. -->
432
+ <rule ref =" Universal.Namespaces.DisallowCurlyBraceSyntax" />
433
+
434
+ <!-- Covers rule: Explicit global namespace declaration (namespace declaration without name) are also not allowed. -->
435
+ <rule ref =" Universal.Namespaces.DisallowDeclarationWithoutName" />
436
+
437
+
415
438
<!--
416
439
#############################################################################
417
440
Handbook: Object-Oriented Programming - Only One Object Structure (Class/Interface/Trait) per File.
You can’t perform that action at this time.
0 commit comments