| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function getInfosUnite($unite, $niveau) { |
||
|
|
|||
| 18 | $dbc1 = Bataille::getDb(); |
||
| 19 | |||
| 20 | $query = $dbc1->select()->from("unites")->where("nom", "=", $unite)->get(); |
||
| 21 | |||
| 22 | if ((is_array($query)) && (count($query) == 1)) { |
||
| 23 | |||
| 24 | } |
||
| 25 | else { |
||
| 26 | return false; |
||
| 27 | } |
||
| 28 | } |
||
| 29 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
||
| 34 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.