packages/coding-standards/Jetpack/Sniffs/Commenting/HooksInlineDocsSniff.php 1 location
|
@@ 147-151 (lines=5) @@
|
144 |
|
} |
145 |
|
} |
146 |
|
|
147 |
|
foreach ( $has as $name => $present ) { |
148 |
|
if ( ! $present ) { |
149 |
|
$this->phpcsFile->addError( 'Hook documentation is missing a tag: ' . $name, $comment_start, 'No' . ucfirst( $name ) ); |
150 |
|
} |
151 |
|
} |
152 |
|
} |
153 |
|
} |
154 |
|
|
packages/coding-standards/Jetpack/Sniffs/Commenting/HooksRequireTagsSniff.php 1 location
|
@@ 82-86 (lines=5) @@
|
79 |
|
} |
80 |
|
} |
81 |
|
|
82 |
|
foreach ( $has as $name => $present ) { |
83 |
|
if ( ! $present ) { |
84 |
|
$this->phpcsFile->addError( 'Hook documentation is missing a tag: ' . $name, $comment_start, 'No' . ucfirst( $name ) ); |
85 |
|
} |
86 |
|
} |
87 |
|
} |
88 |
|
} |
89 |
|
|