Documentation

API Documentation

Table of Contents

Namespaces

Wsc
Clue
Composer
PHPCSStandards
GuzzleHttp
Laravel
Monolog
Nyholm
Invoker
DI
Http
PHPCSExtra
PHPCSUtils
Psr
PHP_CodeSniffer
Fixtures
Symfony
Typesense
WordPressCS

Interfaces

Stringable

Classes

ComposerAutoloaderInitfe640e8810468f59133cc2f4f11fb78e
Attribute
PhpToken
UnhandledMatchError
ValueError

Constants

FILTER_VALIDATE_BOOL  = \FILTER_VALIDATE_BOOLEAN
PHP_CODESNIFFER_CBF  = false
PHP_CODESNIFFER_CBF  = \false
PHP_CODESNIFFER_IN_TESTS  = \true
PHP_CODESNIFFER_VERBOSITY  = $this->config->verbosity
PHP_CODESNIFFER_VERBOSITY  = 0
PHPCSUTILS_AUTOLOAD  = \true
PHPCSUTILS_PHPUNIT_ALIASES_SET  = \true
T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG  = 'PHPCS_T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG'
T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG  = 'PHPCS_T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG'
T_ANON_CLASS  = 'PHPCS_T_ANON_CLASS'
T_ARRAY_HINT  = 'PHPCS_T_ARRAY_HINT'
T_ASPERAND  = 'PHPCS_T_ASPERAND'
T_ATTRIBUTE  = 'PHPCS_T_ATTRIBUTE'
T_ATTRIBUTE_END  = 'PHPCS_T_ATTRIBUTE_END'
T_BACKTICK  = 'PHPCS_T_BACKTICK'
T_BAD_CHARACTER  = 'PHPCS_T_BAD_CHARACTER'
T_BINARY_CAST  = 'PHPCS_T_BINARY_CAST'
T_BITWISE_AND  = 'PHPCS_T_BITWISE_AND'
T_BITWISE_NOT  = 'PHPCS_T_BITWISE_NOT'
T_BITWISE_OR  = 'PHPCS_T_BITWISE_OR'
T_BITWISE_XOR  = 'PHPCS_T_BITWISE_XOR'
T_BOOLEAN_NOT  = 'PHPCS_T_BOOLEAN_NOT'
T_CLOSE_CURLY_BRACKET  = 'PHPCS_T_CLOSE_CURLY_BRACKET'
T_CLOSE_OBJECT  = 'PHPCS_T_CLOSE_OBJECT'
T_CLOSE_PARENTHESIS  = 'PHPCS_T_CLOSE_PARENTHESIS'
T_CLOSE_SHORT_ARRAY  = 'PHPCS_T_CLOSE_SHORT_ARRAY'
T_CLOSE_SQUARE_BRACKET  = 'PHPCS_T_CLOSE_SQUARE_BRACKET'
T_CLOSE_USE_GROUP  = 'PHPCS_T_CLOSE_USE_GROUP'
T_CLOSURE  = 'PHPCS_T_CLOSURE'
T_COALESCE  = 'PHPCS_T_COALESCE'
T_COALESCE_EQUAL  = 'PHPCS_T_COALESCE_EQUAL'
T_COLON  = 'PHPCS_T_COLON'
T_COLOUR  = 'PHPCS_T_COLOUR'
T_COMMA  = 'PHPCS_T_COMMA'
T_DIVIDE  = 'PHPCS_T_DIVIDE'
T_DOC_COMMENT_CLOSE_TAG  = 'PHPCS_T_DOC_COMMENT_CLOSE_TAG'
T_DOC_COMMENT_OPEN_TAG  = 'PHPCS_T_DOC_COMMENT_OPEN_TAG'
T_DOC_COMMENT_STAR  = 'PHPCS_T_DOC_COMMENT_STAR'
T_DOC_COMMENT_STRING  = 'PHPCS_T_DOC_COMMENT_STRING'
T_DOC_COMMENT_TAG  = 'PHPCS_T_DOC_COMMENT_TAG'
T_DOC_COMMENT_WHITESPACE  = 'PHPCS_T_DOC_COMMENT_WHITESPACE'
T_DOLLAR  = 'PHPCS_T_DOLLAR'
T_DOUBLE_QUOTED_STRING  = 'PHPCS_T_DOUBLE_QUOTED_STRING'
T_ELLIPSIS  = 'PHPCS_T_ELLIPSIS'
T_EMBEDDED_PHP  = 'PHPCS_T_EMBEDDED_PHP'
T_END_NOWDOC  = 'PHPCS_T_END_NOWDOC'
T_ENUM  = 'PHPCS_T_ENUM'
T_ENUM_CASE  = 'PHPCS_T_ENUM_CASE'
T_EQUAL  = 'PHPCS_T_EQUAL'
T_FALSE  = 'PHPCS_T_FALSE'
T_FINALLY  = 'PHPCS_T_FINALLY'
T_FN  = 'PHPCS_T_FN'
T_FN_ARROW  = 'PHPCS_T_FN_ARROW'
T_GOTO_LABEL  = 'PHPCS_T_GOTO_LABEL'
T_GREATER_THAN  = 'PHPCS_T_GREATER_THAN'
T_HASH  = 'PHPCS_T_HASH'
T_HEREDOC  = 'PHPCS_T_HEREDOC'
T_INLINE_ELSE  = 'PHPCS_T_INLINE_ELSE'
T_INLINE_THEN  = 'PHPCS_T_INLINE_THEN'
T_LABEL  = 'PHPCS_T_LABEL'
T_LESS_THAN  = 'PHPCS_T_LESS_THAN'
T_MATCH  = 'PHPCS_T_MATCH'
T_MATCH_ARROW  = 'PHPCS_T_MATCH_ARROW'
T_MATCH_DEFAULT  = 'PHPCS_T_MATCH_DEFAULT'
T_MINUS  = 'PHPCS_T_MINUS'
T_MODULUS  = 'PHPCS_T_MODULUS'
T_MULTIPLY  = 'PHPCS_T_MULTIPLY'
T_NAME_FULLY_QUALIFIED  = 'PHPCS_T_NAME_FULLY_QUALIFIED'
T_NAME_QUALIFIED  = 'PHPCS_T_NAME_QUALIFIED'
T_NAME_RELATIVE  = 'PHPCS_T_NAME_RELATIVE'
T_NONE  = 'PHPCS_T_NONE'
T_NOWDOC  = 'PHPCS_T_NOWDOC'
T_NULL  = 'PHPCS_T_NULL'
T_NULLABLE  = 'PHPCS_T_NULLABLE'
T_NULLSAFE_OBJECT_OPERATOR  = 'PHPCS_T_NULLSAFE_OBJECT_OPERATOR'
T_OBJECT  = 'PHPCS_T_OBJECT'
T_OPEN_CURLY_BRACKET  = 'PHPCS_T_OPEN_CURLY_BRACKET'
T_OPEN_PARENTHESIS  = 'PHPCS_T_OPEN_PARENTHESIS'
T_OPEN_SHORT_ARRAY  = 'PHPCS_T_OPEN_SHORT_ARRAY'
T_OPEN_SQUARE_BRACKET  = 'PHPCS_T_OPEN_SQUARE_BRACKET'
T_OPEN_USE_GROUP  = 'PHPCS_T_OPEN_USE_GROUP'
T_PARAM_NAME  = 'PHPCS_T_PARAM_NAME'
T_PARENT  = 'PHPCS_T_PARENT'
T_PHPCS_DISABLE  = 'PHPCS_T_PHPCS_DISABLE'
T_PHPCS_ENABLE  = 'PHPCS_T_PHPCS_ENABLE'
T_PHPCS_IGNORE  = 'PHPCS_T_PHPCS_IGNORE'
T_PHPCS_IGNORE_FILE  = 'PHPCS_T_PHPCS_IGNORE_FILE'
T_PHPCS_SET  = 'PHPCS_T_PHPCS_SET'
T_PLUS  = 'PHPCS_T_PLUS'
T_POW  = 'PHPCS_T_POW'
T_POW_EQUAL  = 'PHPCS_T_POW_EQUAL'
T_PROPERTY  = 'PHPCS_T_PROPERTY'
T_PROTOTYPE  = 'PHPCS_T_PROTOTYPE'
T_READONLY  = 'PHPCS_T_READONLY'
T_REGULAR_EXPRESSION  = 'PHPCS_T_REGULAR_EXPRESSION'
T_RETURN_TYPE  = 'PHPCS_T_RETURN_TYPE'
T_SELF  = 'PHPCS_T_SELF'
T_SEMICOLON  = 'PHPCS_T_SEMICOLON'
T_SPACESHIP  = 'PHPCS_T_SPACESHIP'
T_START_NOWDOC  = 'PHPCS_T_START_NOWDOC'
T_STRING_CONCAT  = 'PHPCS_T_STRING_CONCAT'
T_STYLE  = 'PHPCS_T_STYLE'
T_THIS  = 'PHPCS_T_THIS'
T_TRUE  = 'PHPCS_T_TRUE'
T_TYPE_CLOSE_PARENTHESIS  = 'PHPCS_T_TYPE_CLOSE_PARENTHESIS'
T_TYPE_INTERSECTION  = 'PHPCS_T_TYPE_INTERSECTION'
T_TYPE_OPEN_PARENTHESIS  = 'PHPCS_T_TYPE_OPEN_PARENTHESIS'
T_TYPE_UNION  = 'PHPCS_T_TYPE_UNION'
T_TYPEOF  = 'PHPCS_T_TYPEOF'
T_URL  = 'PHPCS_T_URL'
T_YIELD  = 'PHPCS_T_YIELD'
T_YIELD_FROM  = 'PHPCS_T_YIELD_FROM'
T_ZSR  = 'PHPCS_T_ZSR'
T_ZSR_EQUAL  = 'PHPCS_T_ZSR_EQUAL'
WSC_DEBUG  = \defined('WSC_DEV_DEBUGGING')
WSC_DIR  = \plugin_dir_path(__DIR__)
WSC_LOGS_DIR  = \WP_CONTENT_DIR . \DIRECTORY_SEPARATOR . 'cache' . \DIRECTORY_SEPARATOR . 'acorn' . \DIRECTORY_SEPARATOR . 'logs'
WSC_PHP_VERSION  = '8.2'
WSC_PIM_API_APPID  = \getenv('PIM_API_APPID')
WSC_PIM_API_HOST  = \getenv('PIM_API_HOST')
WSC_PIM_API_TOKEN  = \getenv('PIM_API_TOKEN')
WSC_PIM_API_VERSION  = \getenv('PIM_API_VERSION')
WSC_REST_API_SHARED_SECRET  = \getenv('WSC_REST_API_SHARED_SECRET')
WSC_TMP_DIR  = \WSC_DIR . 'tmp'
WSC_TS_API_KEY  = \getenv('TS_API_KEY')
WSC_TS_NODE_HOST  = \getenv('TS_NODE_HOST')
WSC_TS_NODE_PORT  = \getenv('TS_NODE_PORT')
WSC_TS_NODE_PROTOCOL  = \getenv('TS_NODE_PROTOCOL')
WSC_URL  = \plugin_dir_url(__DIR__)

Functions

renderArray()  : string
Renders an array as a formatted output
renderArrayAccordion()  : string
Renders an array as an accordion with expand/collapse functionality
getallheaders()  : mixed
Get all HTTP header key/values as an associative array for the current request.
printPHPCodeSnifferTestOutput()  : void
A global util function to help print unit test fixing data.
trigger_deprecation()  : void
Triggers a silenced deprecation notice.
fdiv()  : float
preg_last_error_msg()  : string
str_contains()  : bool
str_starts_with()  : bool
str_ends_with()  : bool
get_debug_type()  : string
get_resource_id()  : int

Constants

FILTER_VALIDATE_BOOL

public mixed FILTER_VALIDATE_BOOL = \FILTER_VALIDATE_BOOLEAN

PHP_CODESNIFFER_CBF

public mixed PHP_CODESNIFFER_CBF = false

PHP_CODESNIFFER_CBF

public mixed PHP_CODESNIFFER_CBF = \false

PHP_CODESNIFFER_IN_TESTS

public mixed PHP_CODESNIFFER_IN_TESTS = \true

PHP_CODESNIFFER_VERBOSITY

public mixed PHP_CODESNIFFER_VERBOSITY = $this->config->verbosity

PHP_CODESNIFFER_VERBOSITY

public mixed PHP_CODESNIFFER_VERBOSITY = 0

T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG

public mixed T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG = 'PHPCS_T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG'

T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG

public mixed T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG = 'PHPCS_T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG'

T_ANON_CLASS

public mixed T_ANON_CLASS = 'PHPCS_T_ANON_CLASS'

T_ARRAY_HINT

public mixed T_ARRAY_HINT = 'PHPCS_T_ARRAY_HINT'

T_ASPERAND

public mixed T_ASPERAND = 'PHPCS_T_ASPERAND'

T_ATTRIBUTE

public mixed T_ATTRIBUTE = 'PHPCS_T_ATTRIBUTE'

T_ATTRIBUTE_END

public mixed T_ATTRIBUTE_END = 'PHPCS_T_ATTRIBUTE_END'

T_BACKTICK

public mixed T_BACKTICK = 'PHPCS_T_BACKTICK'

T_BAD_CHARACTER

public mixed T_BAD_CHARACTER = 'PHPCS_T_BAD_CHARACTER'

T_BINARY_CAST

public mixed T_BINARY_CAST = 'PHPCS_T_BINARY_CAST'

T_BITWISE_AND

public mixed T_BITWISE_AND = 'PHPCS_T_BITWISE_AND'

T_BITWISE_NOT

public mixed T_BITWISE_NOT = 'PHPCS_T_BITWISE_NOT'

T_BITWISE_OR

public mixed T_BITWISE_OR = 'PHPCS_T_BITWISE_OR'

T_BITWISE_XOR

public mixed T_BITWISE_XOR = 'PHPCS_T_BITWISE_XOR'

T_BOOLEAN_NOT

public mixed T_BOOLEAN_NOT = 'PHPCS_T_BOOLEAN_NOT'

T_CLOSE_CURLY_BRACKET

public mixed T_CLOSE_CURLY_BRACKET = 'PHPCS_T_CLOSE_CURLY_BRACKET'

T_CLOSE_OBJECT

public mixed T_CLOSE_OBJECT = 'PHPCS_T_CLOSE_OBJECT'

T_CLOSE_PARENTHESIS

public mixed T_CLOSE_PARENTHESIS = 'PHPCS_T_CLOSE_PARENTHESIS'

T_CLOSE_SHORT_ARRAY

public mixed T_CLOSE_SHORT_ARRAY = 'PHPCS_T_CLOSE_SHORT_ARRAY'

T_CLOSE_SQUARE_BRACKET

public mixed T_CLOSE_SQUARE_BRACKET = 'PHPCS_T_CLOSE_SQUARE_BRACKET'

T_CLOSE_USE_GROUP

public mixed T_CLOSE_USE_GROUP = 'PHPCS_T_CLOSE_USE_GROUP'

T_CLOSURE

public mixed T_CLOSURE = 'PHPCS_T_CLOSURE'

T_COALESCE

public mixed T_COALESCE = 'PHPCS_T_COALESCE'

T_COALESCE_EQUAL

public mixed T_COALESCE_EQUAL = 'PHPCS_T_COALESCE_EQUAL'

T_COLON

public mixed T_COLON = 'PHPCS_T_COLON'

T_COLOUR

public mixed T_COLOUR = 'PHPCS_T_COLOUR'

T_COMMA

public mixed T_COMMA = 'PHPCS_T_COMMA'

T_DIVIDE

public mixed T_DIVIDE = 'PHPCS_T_DIVIDE'

T_DOC_COMMENT_CLOSE_TAG

public mixed T_DOC_COMMENT_CLOSE_TAG = 'PHPCS_T_DOC_COMMENT_CLOSE_TAG'

T_DOC_COMMENT_OPEN_TAG

public mixed T_DOC_COMMENT_OPEN_TAG = 'PHPCS_T_DOC_COMMENT_OPEN_TAG'

T_DOC_COMMENT_STAR

public mixed T_DOC_COMMENT_STAR = 'PHPCS_T_DOC_COMMENT_STAR'

T_DOC_COMMENT_STRING

public mixed T_DOC_COMMENT_STRING = 'PHPCS_T_DOC_COMMENT_STRING'

T_DOC_COMMENT_TAG

public mixed T_DOC_COMMENT_TAG = 'PHPCS_T_DOC_COMMENT_TAG'

T_DOC_COMMENT_WHITESPACE

public mixed T_DOC_COMMENT_WHITESPACE = 'PHPCS_T_DOC_COMMENT_WHITESPACE'

T_DOLLAR

public mixed T_DOLLAR = 'PHPCS_T_DOLLAR'

T_DOUBLE_QUOTED_STRING

public mixed T_DOUBLE_QUOTED_STRING = 'PHPCS_T_DOUBLE_QUOTED_STRING'

T_ELLIPSIS

public mixed T_ELLIPSIS = 'PHPCS_T_ELLIPSIS'

T_EMBEDDED_PHP

public mixed T_EMBEDDED_PHP = 'PHPCS_T_EMBEDDED_PHP'

T_END_NOWDOC

public mixed T_END_NOWDOC = 'PHPCS_T_END_NOWDOC'

T_ENUM

public mixed T_ENUM = 'PHPCS_T_ENUM'

T_ENUM_CASE

public mixed T_ENUM_CASE = 'PHPCS_T_ENUM_CASE'

T_EQUAL

public mixed T_EQUAL = 'PHPCS_T_EQUAL'

T_FALSE

public mixed T_FALSE = 'PHPCS_T_FALSE'

T_FINALLY

public mixed T_FINALLY = 'PHPCS_T_FINALLY'

T_FN

public mixed T_FN = 'PHPCS_T_FN'

T_FN_ARROW

public mixed T_FN_ARROW = 'PHPCS_T_FN_ARROW'

T_GOTO_LABEL

public mixed T_GOTO_LABEL = 'PHPCS_T_GOTO_LABEL'

T_GREATER_THAN

public mixed T_GREATER_THAN = 'PHPCS_T_GREATER_THAN'

T_HASH

public mixed T_HASH = 'PHPCS_T_HASH'

T_HEREDOC

public mixed T_HEREDOC = 'PHPCS_T_HEREDOC'

T_INLINE_ELSE

public mixed T_INLINE_ELSE = 'PHPCS_T_INLINE_ELSE'

T_INLINE_THEN

public mixed T_INLINE_THEN = 'PHPCS_T_INLINE_THEN'

T_LABEL

public mixed T_LABEL = 'PHPCS_T_LABEL'

T_LESS_THAN

public mixed T_LESS_THAN = 'PHPCS_T_LESS_THAN'

T_MATCH

public mixed T_MATCH = 'PHPCS_T_MATCH'

T_MATCH_ARROW

public mixed T_MATCH_ARROW = 'PHPCS_T_MATCH_ARROW'

T_MATCH_DEFAULT

public mixed T_MATCH_DEFAULT = 'PHPCS_T_MATCH_DEFAULT'

T_MINUS

public mixed T_MINUS = 'PHPCS_T_MINUS'

T_MODULUS

public mixed T_MODULUS = 'PHPCS_T_MODULUS'

T_MULTIPLY

public mixed T_MULTIPLY = 'PHPCS_T_MULTIPLY'

T_NAME_FULLY_QUALIFIED

public mixed T_NAME_FULLY_QUALIFIED = 'PHPCS_T_NAME_FULLY_QUALIFIED'

T_NAME_QUALIFIED

public mixed T_NAME_QUALIFIED = 'PHPCS_T_NAME_QUALIFIED'

T_NAME_RELATIVE

public mixed T_NAME_RELATIVE = 'PHPCS_T_NAME_RELATIVE'

T_NONE

public mixed T_NONE = 'PHPCS_T_NONE'

T_NOWDOC

public mixed T_NOWDOC = 'PHPCS_T_NOWDOC'

T_NULL

public mixed T_NULL = 'PHPCS_T_NULL'

T_NULLABLE

public mixed T_NULLABLE = 'PHPCS_T_NULLABLE'

T_NULLSAFE_OBJECT_OPERATOR

public mixed T_NULLSAFE_OBJECT_OPERATOR = 'PHPCS_T_NULLSAFE_OBJECT_OPERATOR'

T_OBJECT

public mixed T_OBJECT = 'PHPCS_T_OBJECT'

T_OPEN_CURLY_BRACKET

public mixed T_OPEN_CURLY_BRACKET = 'PHPCS_T_OPEN_CURLY_BRACKET'

T_OPEN_PARENTHESIS

public mixed T_OPEN_PARENTHESIS = 'PHPCS_T_OPEN_PARENTHESIS'

T_OPEN_SHORT_ARRAY

public mixed T_OPEN_SHORT_ARRAY = 'PHPCS_T_OPEN_SHORT_ARRAY'

T_OPEN_SQUARE_BRACKET

public mixed T_OPEN_SQUARE_BRACKET = 'PHPCS_T_OPEN_SQUARE_BRACKET'

T_OPEN_USE_GROUP

public mixed T_OPEN_USE_GROUP = 'PHPCS_T_OPEN_USE_GROUP'

T_PARAM_NAME

public mixed T_PARAM_NAME = 'PHPCS_T_PARAM_NAME'

T_PARENT

public mixed T_PARENT = 'PHPCS_T_PARENT'

T_PHPCS_DISABLE

public mixed T_PHPCS_DISABLE = 'PHPCS_T_PHPCS_DISABLE'

T_PHPCS_ENABLE

public mixed T_PHPCS_ENABLE = 'PHPCS_T_PHPCS_ENABLE'

T_PHPCS_IGNORE

public mixed T_PHPCS_IGNORE = 'PHPCS_T_PHPCS_IGNORE'

T_PHPCS_IGNORE_FILE

public mixed T_PHPCS_IGNORE_FILE = 'PHPCS_T_PHPCS_IGNORE_FILE'

T_PHPCS_SET

public mixed T_PHPCS_SET = 'PHPCS_T_PHPCS_SET'

T_PLUS

public mixed T_PLUS = 'PHPCS_T_PLUS'

T_POW

public mixed T_POW = 'PHPCS_T_POW'

T_POW_EQUAL

public mixed T_POW_EQUAL = 'PHPCS_T_POW_EQUAL'

T_PROPERTY

public mixed T_PROPERTY = 'PHPCS_T_PROPERTY'

T_PROTOTYPE

public mixed T_PROTOTYPE = 'PHPCS_T_PROTOTYPE'

T_READONLY

public mixed T_READONLY = 'PHPCS_T_READONLY'

T_REGULAR_EXPRESSION

public mixed T_REGULAR_EXPRESSION = 'PHPCS_T_REGULAR_EXPRESSION'

T_RETURN_TYPE

public mixed T_RETURN_TYPE = 'PHPCS_T_RETURN_TYPE'

T_SELF

public mixed T_SELF = 'PHPCS_T_SELF'

T_SEMICOLON

public mixed T_SEMICOLON = 'PHPCS_T_SEMICOLON'

T_SPACESHIP

public mixed T_SPACESHIP = 'PHPCS_T_SPACESHIP'

T_START_NOWDOC

public mixed T_START_NOWDOC = 'PHPCS_T_START_NOWDOC'

T_STRING_CONCAT

public mixed T_STRING_CONCAT = 'PHPCS_T_STRING_CONCAT'

T_STYLE

public mixed T_STYLE = 'PHPCS_T_STYLE'

T_THIS

public mixed T_THIS = 'PHPCS_T_THIS'

T_TRUE

public mixed T_TRUE = 'PHPCS_T_TRUE'

T_TYPE_CLOSE_PARENTHESIS

public mixed T_TYPE_CLOSE_PARENTHESIS = 'PHPCS_T_TYPE_CLOSE_PARENTHESIS'

T_TYPE_INTERSECTION

public mixed T_TYPE_INTERSECTION = 'PHPCS_T_TYPE_INTERSECTION'

T_TYPE_OPEN_PARENTHESIS

public mixed T_TYPE_OPEN_PARENTHESIS = 'PHPCS_T_TYPE_OPEN_PARENTHESIS'

T_TYPE_UNION

public mixed T_TYPE_UNION = 'PHPCS_T_TYPE_UNION'

T_TYPEOF

public mixed T_TYPEOF = 'PHPCS_T_TYPEOF'

T_URL

public mixed T_URL = 'PHPCS_T_URL'

T_YIELD

public mixed T_YIELD = 'PHPCS_T_YIELD'

T_YIELD_FROM

public mixed T_YIELD_FROM = 'PHPCS_T_YIELD_FROM'

T_ZSR

public mixed T_ZSR = 'PHPCS_T_ZSR'

T_ZSR_EQUAL

public mixed T_ZSR_EQUAL = 'PHPCS_T_ZSR_EQUAL'

WSC_DEBUG

public mixed WSC_DEBUG = \defined('WSC_DEV_DEBUGGING')

WSC_DIR

public mixed WSC_DIR = \plugin_dir_path(__DIR__)

WSC_LOGS_DIR

public mixed WSC_LOGS_DIR = \WP_CONTENT_DIR . \DIRECTORY_SEPARATOR . 'cache' . \DIRECTORY_SEPARATOR . 'acorn' . \DIRECTORY_SEPARATOR . 'logs'

WSC_PHP_VERSION

public mixed WSC_PHP_VERSION = '8.2'

WSC_PIM_API_APPID

public mixed WSC_PIM_API_APPID = \getenv('PIM_API_APPID')

WSC_PIM_API_HOST

public mixed WSC_PIM_API_HOST = \getenv('PIM_API_HOST')

WSC_PIM_API_TOKEN

public mixed WSC_PIM_API_TOKEN = \getenv('PIM_API_TOKEN')

WSC_PIM_API_VERSION

public mixed WSC_PIM_API_VERSION = \getenv('PIM_API_VERSION')

WSC_REST_API_SHARED_SECRET

public mixed WSC_REST_API_SHARED_SECRET = \getenv('WSC_REST_API_SHARED_SECRET')

WSC_TMP_DIR

public mixed WSC_TMP_DIR = \WSC_DIR . 'tmp'

WSC_TS_API_KEY

public mixed WSC_TS_API_KEY = \getenv('TS_API_KEY')

WSC_TS_NODE_HOST

public mixed WSC_TS_NODE_HOST = \getenv('TS_NODE_HOST')

WSC_TS_NODE_PORT

public mixed WSC_TS_NODE_PORT = \getenv('TS_NODE_PORT')

WSC_TS_NODE_PROTOCOL

public mixed WSC_TS_NODE_PROTOCOL = \getenv('TS_NODE_PROTOCOL')

WSC_URL

public mixed WSC_URL = \plugin_dir_url(__DIR__)

Functions

renderArray()

Renders an array as a formatted output

renderArray(array<string|int, mixed> $array[, int $depth = 0 ]) : string
Parameters
$array : array<string|int, mixed>

The array to render

$depth : int = 0

Current nesting depth

Return values
string

renderArrayAccordion()

Renders an array as an accordion with expand/collapse functionality

renderArrayAccordion(string $key, array<string|int, mixed> $array[, int $depth = 0 ]) : string
Parameters
$key : string

The array key

$array : array<string|int, mixed>

The array to render

$depth : int = 0

Current nesting depth

Return values
string

getallheaders()

Get all HTTP header key/values as an associative array for the current request.

getallheaders() : mixed
Return values
mixed

The HTTP header key/value pairs.

printPHPCodeSnifferTestOutput()

A global util function to help print unit test fixing data.

printPHPCodeSnifferTestOutput() : void

trigger_deprecation()

Triggers a silenced deprecation notice.

trigger_deprecation(string $package, string $version, string $message, mixed ...$args) : void
Parameters
$package : string

The name of the Composer package that is triggering the deprecation

$version : string

The version of the package that introduced the deprecation

$message : string

The message of the deprecation

$args : mixed

Values to insert in the message using printf() formatting

Tags
author

Nicolas Grekas p@tchwork.com

fdiv()

fdiv(float $num1, float $num2) : float
Parameters
$num1 : float
$num2 : float
Return values
float

preg_last_error_msg()

preg_last_error_msg() : string
Return values
string

str_contains()

str_contains(string|null $haystack, string|null $needle) : bool
Parameters
$haystack : string|null
$needle : string|null
Return values
bool

str_starts_with()

str_starts_with(string|null $haystack, string|null $needle) : bool
Parameters
$haystack : string|null
$needle : string|null
Return values
bool

str_ends_with()

str_ends_with(string|null $haystack, string|null $needle) : bool
Parameters
$haystack : string|null
$needle : string|null
Return values
bool

get_debug_type()

get_debug_type(mixed $value) : string
Parameters
$value : mixed
Return values
string

get_resource_id()

get_resource_id(mixed $resource) : int
Parameters
$resource : mixed
Return values
int

        
On this page

Search results