@@ -5,7 +5,7 @@ |
||
5 | 5 | * Provides Pagination for shortlist controller |
6 | 6 | */ |
7 | 7 | class ShortListPaginationExtension extends DataExtension { |
8 | - /** |
|
8 | + /** |
|
9 | 9 | * Get a paginated list of the shortlist items. |
10 | 10 | * |
11 | 11 | * @return mixed the paginated list of items, or false if the list cannot be found. |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | public function nextPage() |
38 | 38 | { |
39 | 39 | if ($this->owner->list->CurrentPage() < $this->owner->list->TotalPages()) { |
40 | - return '?page=' . ($this->owner->list->CurrentPage() + 1); |
|
40 | + return '?page='.($this->owner->list->CurrentPage() + 1); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | return false; |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | public function prevPage() |
47 | 47 | { |
48 | 48 | if ($this->owner->list->CurrentPage() > 1) { |
49 | - return '?page=' . ($this->owner->list->CurrentPage() - 1); |
|
49 | + return '?page='.($this->owner->list->CurrentPage() - 1); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | return false; |
@@ -81,7 +81,7 @@ |
||
81 | 81 | */ |
82 | 82 | public function Link($action = null) |
83 | 83 | { |
84 | - return Config::inst()->get('ShortList', 'URLSegment') . $this->URL; |
|
84 | + return Config::inst()->get('ShortList', 'URLSegment').$this->URL; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -22,7 +22,7 @@ |
||
22 | 22 | return false; |
23 | 23 | } |
24 | 24 | |
25 | - $query = "ItemType = '" . $type . "' AND ItemID = " . $ID . ' AND ShortListID = ' . $shortlist->ID; |
|
25 | + $query = "ItemType = '".$type."' AND ItemID = ".$ID.' AND ShortListID = '.$shortlist->ID; |
|
26 | 26 | |
27 | 27 | $item = DataObject::get_one('ShortListItem', $filter = $query); |
28 | 28 |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | { |
5 | 5 | protected static $fixture_file = 'fixtures.yml'; |
6 | 6 | |
7 | - public function testShortlistCreation() |
|
8 | - { |
|
7 | + public function testShortlistCreation() |
|
8 | + { |
|
9 | 9 | $shortlists = ShortList::get(); |
10 | 10 | |
11 | 11 | $this->get('shortlist'); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | $shortlist->ShortListItems()->remove($item); |
68 | 68 | |
69 | - // do we have an item removed? |
|
69 | + // do we have an item removed? |
|
70 | 70 | $this->assertEquals($shortlist->ShortListItems()->Count(), 0); |
71 | 71 | } |
72 | 72 | } |