Menu

[r312]: / trunk / src / PHPCheckstyle / _Constants.php  Maximize  Restore  History

Download this file

70 lines (63 with data), 2.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
if (!defined("PHPCHECKSTYLE_HOME_DIR")) {
define("PHPCHECKSTYLE_HOME_DIR", dirname(__FILE__) . "/..");
}
if (!defined("T_ML_COMMENT")) {
define("T_ML_COMMENT", T_COMMENT);
}
define("SAME_LINE", "sl");
define("NEW_LINE", "nl");
define("ERROR", "error");
define("IGNORE", "ignore");
define("INFO", "info");
define("WARNING", "warning");
define("SINGLE_QUOTE", 'single');
define("DOUBLE_QUOTE", 'double');
define('T_NEW_LINE', 10000);
define('T_TAB', 10001);
define('T_SEMICOLON', 10002); // ;
define('T_BRACES_OPEN', 10003); // { To avoid confusion with T_CURLY_OPEN
define('T_BRACES_CLOSE', 10004); // }
define('T_PARENTHESIS_OPEN', 10005); // (
define('T_PARENTHESIS_CLOSE', 10006); // )
define('T_COMMA', 10007); // ,
define('T_EQUAL', 10008); // =
define('T_CONCAT', 10009); // .
define('T_COLON', 10010); // :
define('T_MINUS', 10011); // -
define('T_PLUS', 10012); // +
define('T_IS_GREATER', 10013); // >
define('T_IS_SMALLER', 10014); // <
define('T_MULTIPLY', 10015); // *
define('T_DIVIDE', 10016); // /
define('T_QUESTION_MARK', 10017); // ?
define('T_MODULO', 10018); // %
define('T_EXCLAMATION_MARK', 10019); // !
define('T_AMPERSAND', 10020); // %
define('T_SQUARE_BRACKET_OPEN', 10021); // [
define('T_SQUARE_BRACKET_CLOSE', 10022); // ]
define('T_AROBAS', 10023); // @
define('T_QUOTE', 10024); // " (only detected before and after a T_ENCAPSED_AND_WHITESPACE) otherwise should be included in T_CONSTANT_ENCAPSED_STRING
define('T_UNKNOWN', -1);
// PHP 5.3 parsing with an older version
if (!defined('T_FINALLY')) {
define('T_FINALLY', 10025);
}
if (!defined('T_CALLABLE')) {
define('T_CALLABLE', 10026);
}
if (!defined('T_TRAIT')) {
define('T_TRAIT', 10027);
}
if (!defined('T_TRAIT_C')) {
define('T_TRAIT_C', 10028);
}
if (!defined('T_INSTEADOF')) {
define('T_INSTEADOF', 10029);
}
if (!defined('T_YIELD')) {
define('T_YIELD', 10030);
}
define("SHORT_OPEN_TAG", "<?");
define("OPEN_TAG", "<?php");
define("CLOSE_TAG", "?>");
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.