| Total Complexity | 8 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 3 | class ajax extends Controller { |
||
| 4 | |||
| 5 | function __construct() { |
||
|
|
|||
| 6 | $this->load_library("http_lib", "http"); |
||
| 7 | $this->load_library("auth_lib", "auth"); |
||
| 8 | |||
| 9 | $this->load_model("jugaad_model"); |
||
| 10 | $this->load_model("perms_model"); |
||
| 11 | $this->load_model("auth_model"); |
||
| 12 | |||
| 13 | $this->user = $this->auth->get_user() ?: ""; |
||
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $param Get GET parameter called $param |
||
| 18 | * @return mixed GET parameter or false if not found |
||
| 19 | */ |
||
| 20 | private function get_param($param) { |
||
| 25 | } |
||
| 26 | |||
| 27 | function latest_version_id() { |
||
| 48 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.