| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function getOrders($limit = 10) |
||
| 37 | { |
||
| 38 | if ($Member = Security::getCurrentUser()) { |
||
| 39 | $Orders = $Member->Orders()->sort('TransactionDate', 'DESC'); |
||
| 40 | |||
| 41 | $list = new PaginatedList($Orders, Controller::curr()->getRequest()); |
||
| 42 | $list->setPageLength($limit); |
||
| 43 | |||
| 44 | return $list; |
||
| 45 | } |
||
| 46 | |||
| 47 | return false; |
||
| 48 | } |
||
| 50 |