Completed
Push — master ( 1b7083...748172 )
by Jaap
02:57
created

Issue2421::issue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
class Issue2421 {
4
    /**
5
     * Regular expression to check if a given identifier name is valid for use in PHP.
6
     *
7
     * @var string
8
     */
9
    const PHP_LABEL_REGEX = '`^[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*$`';
10
11
    /**
12
     * Regular expression to check if a given identifier name is valid for use in PHP.
13
     *
14
     * @var string
15
     */
16
    private $PHP_LABEL_REGEX = '`^[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*$`';
17
18
    public function issue(string $regex = '`^[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*$`'): void{}
0 ignored issues
show
Unused Code introduced by
The parameter $regex is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
19
}
20