packages/coding-standards/Jetpack/Sniffs/InlineDocs/HooksMustHaveDocblockSniff.php 1 location
|
@@ 128-132 (lines=5) @@
|
| 125 |
|
} |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
foreach ( $has as $name => $present ) { |
| 129 |
|
if ( ! $present ) { |
| 130 |
|
$this->phpcsFile->addError( 'Hook documentation is missing a tag: ' . $name, $comment_start, 'No' . ucfirst( $name ) ); |
| 131 |
|
} |
| 132 |
|
} |
| 133 |
|
} |
| 134 |
|
} |
| 135 |
|
|
packages/coding-standards/Jetpack/Sniffs/InlineDocs/JetpackHooksRequirementsSniff.php 1 location
|
@@ 72-76 (lines=5) @@
|
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
foreach ( $has as $name => $present ) { |
| 73 |
|
if ( ! $present ) { |
| 74 |
|
$this->phpcsFile->addError( 'Hook documentation is missing a tag: ' . $name, $comment_start, 'No' . ucfirst( $name ) ); |
| 75 |
|
} |
| 76 |
|
} |
| 77 |
|
} |
| 78 |
|
} |
| 79 |
|
|