Make WordPress Core


Ignore:
Timestamp:
10/02/2023 11:25:35 AM (21 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove redundant ignore annotations, take 5.

The VariableAnalysis standard is not used by WP Core.

Follow-up to [50958], [51003], [52049], [52051], [52069], [53072], [54132], [55132], [56363], [56738], [56743], [56751], [56752].

Props jrf.
See #59161.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/html-api/class-wp-html-open-elements.php

    r56380 r56753  
    111111     * @return bool Whether the element was found in a specific scope.
    112112     */
    113     public function has_element_in_specific_scope( $tag_name, $termination_list ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
     113    public function has_element_in_specific_scope( $tag_name, $termination_list ) {
    114114        foreach ( $this->walk_up() as $node ) {
    115115            if ( $node->node_name === $tag_name ) {
     
    168168     * @return bool Whether given element is in scope.
    169169     */
    170     public function has_element_in_list_item_scope( $tag_name ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
     170    public function has_element_in_list_item_scope( $tag_name ) {
    171171        throw new WP_HTML_Unsupported_Exception( 'Cannot process elements depending on list item scope.' );
    172172
     
    200200     * @return bool Whether given element is in scope.
    201201     */
    202     public function has_element_in_table_scope( $tag_name ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
     202    public function has_element_in_table_scope( $tag_name ) {
    203203        throw new WP_HTML_Unsupported_Exception( 'Cannot process elements depending on table scope.' );
    204204
     
    218218     * @return bool Whether given element is in scope.
    219219     */
    220     public function has_element_in_select_scope( $tag_name ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
     220    public function has_element_in_select_scope( $tag_name ) {
    221221        throw new WP_HTML_Unsupported_Exception( 'Cannot process elements depending on select scope.' );
    222222
Note: See TracChangeset for help on using the changeset viewer.