1 | <?php |
||
16 | class Smarty_Internal_Runtime_GetIncludePath |
||
17 | { |
||
18 | /** |
||
19 | * include path cache |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | public $_include_path = ''; |
||
24 | |||
25 | /** |
||
26 | * include path directory cache |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | public $_include_dirs = array(); |
||
31 | |||
32 | /** |
||
33 | * include path directory cache |
||
34 | * |
||
35 | * @var array |
||
36 | */ |
||
37 | public $_user_dirs = array(); |
||
38 | |||
39 | /** |
||
40 | * stream cache |
||
41 | * |
||
42 | * @var string[][] |
||
43 | */ |
||
44 | public $isFile = array(); |
||
45 | |||
46 | /** |
||
47 | * stream cache |
||
48 | * |
||
49 | * @var string[] |
||
50 | */ |
||
51 | public $isPath = array(); |
||
52 | |||
53 | /** |
||
54 | * stream cache |
||
55 | * |
||
56 | * @var int[] |
||
57 | */ |
||
58 | public $number = array(); |
||
59 | |||
60 | /** |
||
61 | * status cache |
||
62 | * |
||
63 | * @var bool |
||
64 | */ |
||
65 | public $_has_stream_include = null; |
||
66 | |||
67 | /** |
||
68 | * Number for array index |
||
69 | * |
||
70 | * @var int |
||
71 | */ |
||
72 | public $counter = 0; |
||
73 | |||
74 | /** |
||
75 | * Check if include path was updated |
||
76 | * |
||
77 | * @param \Smarty $smarty |
||
78 | * |
||
79 | * @return bool |
||
80 | */ |
||
81 | public function isNewIncludePath(Smarty $smarty) |
||
97 | |||
98 | /** |
||
99 | * return array with include path directories |
||
100 | * |
||
101 | * @param \Smarty $smarty |
||
102 | * |
||
103 | * @return array |
||
104 | */ |
||
105 | public function getIncludePathDirs(Smarty $smarty) |
||
110 | |||
111 | /** |
||
112 | * Return full file path from PHP include_path |
||
113 | * |
||
114 | * @param string[] $dirs |
||
115 | * @param string $file |
||
116 | * @param \Smarty $smarty |
||
117 | * |
||
118 | * @return bool|string full filepath or false |
||
119 | */ |
||
120 | public function getIncludePath($dirs, $file, Smarty $smarty) |
||
181 | } |
||
182 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.