1 | <?php |
||
13 | class DatabaseHelper { |
||
14 | |||
15 | public $dbConn; |
||
16 | |||
17 | /** |
||
18 | * This is a constructor; a default method that will be called automatically during class instantiation |
||
19 | */ |
||
20 | public function __construct($dbConnect) |
||
25 | |||
26 | /** |
||
27 | * This method creates a particular table |
||
28 | * @param tableName |
||
29 | * $return boolean true or false |
||
30 | */ |
||
31 | public function createTable($tableName, $conn = NULL) |
||
44 | |||
45 | } |
||
46 |
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.