Completed
Push — master ( 10097e...bb90b3 )
by Simon
02:03
created
code/controllers/ShortListController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public function index($request)
36 36
     {
37 37
         if (($shortlist = $this->getSessionShortList())) {
38
-            return $this->redirect(Config::inst()->get('ShortList', 'URLSegment') . $shortlist->URL);
38
+            return $this->redirect(Config::inst()->get('ShortList', 'URLSegment').$shortlist->URL);
39 39
         } else {
40 40
             /*
41 41
 if (!ShortList::isBrowser()) {
Please login to merge, or discard this patch.
tests/ShortlistTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $this->assertEmpty($list);
166 166
 
167 167
         $id = $this->fixtureFactory->getId('Page', 'page1');
168
-        $response = $this->get($url . 'add/?id=' . $id . '&type=Page&s=' . Utilities::getSecurityToken());
168
+        $response = $this->get($url.'add/?id='.$id.'&type=Page&s='.Utilities::getSecurityToken());
169 169
 
170 170
         $list = ShortListController::getShortListSession();
171 171
 
@@ -191,14 +191,14 @@  discard block
 block discarded – undo
191 191
         $this->assertEmpty($list);
192 192
 
193 193
         $id = $this->fixtureFactory->getId('Page', 'page1');
194
-        $response = $this->get($url . 'add/?id=' . $id . '&type=Page&s=' . Utilities::getSecurityToken());
194
+        $response = $this->get($url.'add/?id='.$id.'&type=Page&s='.Utilities::getSecurityToken());
195 195
 
196 196
         $list = ShortListController::getShortListSession();
197 197
 
198 198
         $this->assertNotEmpty($list);
199 199
         $this->assertEquals($list->ShortListItems()->count(), 1);
200 200
 
201
-        $this->get($url . 'remove/?id=' . $id . '&type=Page&s=' . Utilities::getSecurityToken());
201
+        $this->get($url.'remove/?id='.$id.'&type=Page&s='.Utilities::getSecurityToken());
202 202
         $this->assertEquals($list->ShortListItems()->count(), 0);
203 203
     }
204 204
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     public function testShortListControllerPagination()
211 211
     {
212 212
         $url = Config::inst()->get('ShortList', 'URLSegment');
213
-        $response = $this->get($url . '?page=1');
213
+        $response = $this->get($url.'?page=1');
214 214
 
215 215
         $this->assertEquals($response->getStatusCode(), 200);
216 216
     }
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         $this->assertEmpty($list);
235 235
 
236 236
         $id = $this->fixtureFactory->getId('Page', 'page1');
237
-        $response = $this->get($url . 'add/?id=' . $id . '&type=Page&s=' . Utilities::getSecurityToken());
237
+        $response = $this->get($url.'add/?id='.$id.'&type=Page&s='.Utilities::getSecurityToken());
238 238
 
239 239
         $response = $this->get($url);
240 240
     }
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         $this->assertEmpty($list);
253 253
 
254 254
         $id = $this->fixtureFactory->getId('Page', 'page1');
255
-        $response = $this->get($url . 'add/?id=' . $id . '&type=Page');
255
+        $response = $this->get($url.'add/?id='.$id.'&type=Page');
256 256
 
257 257
         $this->assertEquals($response->getStatusCode(), 404);
258 258
     }
Please login to merge, or discard this patch.