1 | <?php |
||
11 | class Guardian |
||
12 | { |
||
13 | /** |
||
14 | * @return mixed |
||
15 | */ |
||
16 | public static function getUserTable() |
||
20 | |||
21 | /** |
||
22 | * @return mixed |
||
23 | */ |
||
24 | public static function getUserKey() |
||
28 | |||
29 | /** |
||
30 | * @return bool |
||
31 | */ |
||
32 | public static function hasClients() |
||
36 | |||
37 | /** |
||
38 | * @return mixed |
||
39 | */ |
||
40 | public static function getClientTable() |
||
44 | |||
45 | /** |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public static function getClientKey() |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public static function getClientColumn() |
||
60 | |||
61 | /** |
||
62 | * @return mixed |
||
63 | */ |
||
64 | public static function getClientId() |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | public static function getRolesPermissionsTable() |
||
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | public static function getUsersRolesTable() |
||
89 | |||
90 | /** |
||
91 | * @return mixed |
||
92 | */ |
||
93 | public static function getUserClass() |
||
97 | |||
98 | /** |
||
99 | * @return mixed |
||
100 | */ |
||
101 | public static function getPermissionTable() |
||
105 | |||
106 | /** |
||
107 | * @return mixed |
||
108 | */ |
||
109 | public static function getClientClass() |
||
113 | |||
114 | /** |
||
115 | * @return mixed |
||
116 | */ |
||
117 | private static function _getUser() |
||
122 | |||
123 | /** |
||
124 | * @return mixed |
||
125 | */ |
||
126 | private static function _getClient() |
||
131 | } |
This check looks for unreachable code. It uses sophisticated control flow analysis techniques to find statements which will never be executed.
Unreachable code is most often the result of
return
,die
orexit
statements that have been added for debug purposes.In the above example, the last
return false
will never be executed, because a return statement has already been met in every possible execution path.