Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PHP.php

PHP::$endScopeTokens

A list of tokens that end the scope.

This array is just a unique collection of the end tokens from the scopeOpeners array. The data is duplicated here to save time during parsing of the file.

Type: array

Overrides Tokenizer::$endScopeTokens

File

vendor/squizlabs/php_codesniffer/src/Tokenizers/PHP.php, line 294

Class

PHP

Namespace

PHP_CodeSniffer\Tokenizers

Code

public $endScopeTokens = [
    T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
    T_ENDIF => T_ENDIF,
    T_ENDFOR => T_ENDFOR,
    T_ENDFOREACH => T_ENDFOREACH,
    T_ENDWHILE => T_ENDWHILE,
    T_ENDSWITCH => T_ENDSWITCH,
    T_ENDDECLARE => T_ENDDECLARE,
    T_BREAK => T_BREAK,
    T_END_HEREDOC => T_END_HEREDOC,
    T_END_NOWDOC => T_END_NOWDOC,
];
RSS feed
Powered by Drupal