| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.1406 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 67 | public function __construct($kernel, $table, $required_conditions = "") |
|
| 19 | { |
||
| 20 | 67 | parent::__construct($table, $required_conditions); |
|
| 21 | 67 | $session_id = $kernel->getSessionId(); |
|
| 22 | 67 | $this->createStore(md5($session_id), 'intranet_id = '.$kernel->intranet->get('id')); |
|
| 23 | 67 | if (is_object($kernel->user) and strtolower(get_class($kernel->user)) == 'intraface_user') { |
|
| 24 | $this->setRowsPerPage($kernel->setting->get('user', 'rows_pr_page')); |
||
| 25 | } |
||
| 26 | 67 | } |
|
| 27 | } |
||
| 28 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.