1 | <?php |
||
18 | class Configuration extends Config |
||
19 | { |
||
20 | /** |
||
21 | * Gets the current timezone. |
||
22 | * |
||
23 | * @return string |
||
24 | */ |
||
25 | public function getTimezone() |
||
29 | |||
30 | /** |
||
31 | * Gets the log file. |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getLogFile() |
||
39 | |||
40 | /** |
||
41 | * Gets the log level. |
||
42 | * |
||
43 | * @return int |
||
44 | */ |
||
45 | public function getLogLevel() |
||
49 | |||
50 | /** |
||
51 | * Gets the server address to bind. |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getAddress() |
||
61 | |||
62 | /** |
||
63 | * Gets the config file. |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | public function getDefaultConfigFile() |
||
71 | |||
72 | /** |
||
73 | * Gets the authentication. |
||
74 | * |
||
75 | * @return AuthenticationInterface|null |
||
76 | */ |
||
77 | public function getAuthentication() |
||
94 | } |
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.