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