]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
typos & cs 1761/head
authorThomas Citharel <tcit@tcit.fr>
Tue, 8 Mar 2016 08:22:25 +0000 (09:22 +0100)
committerThomas Citharel <tcit@tcit.fr>
Tue, 8 Mar 2016 08:22:25 +0000 (09:22 +0100)
src/Wallabag/ApiBundle/Controller/WallabagRestController.php
src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php

index 5f342825f08c3ca12c891df01ee0ae0f313e3e75..29cab1f4df0f6b4f465a949bda377cfb3f1e5811 100644 (file)
@@ -341,7 +341,9 @@ class WallabagRestController extends FOSRestController
         return $this->renderJsonResponse($json);
     }
     /**
-     * Retrive version.
+     * Retrieve version number.
+     *
+     * @ApiDoc()
      *
      * @return Response
      */
index f42c0f5709ece397c2f43be12f21a44728302134..a705f9dea4f00fdac5c84194f900cdc219151521 100644 (file)
@@ -337,14 +337,14 @@ class WallabagRestControllerTest extends WallabagApiTestCase
         $this->assertCount(0, $entries);
     }
 
-    public function testGetVersion(){
-        
-        $this->client->request('GET','/api/version');
+    public function testGetVersion()
+    {
+        $this->client->request('GET', '/api/version');
 
         $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
 
         $content = json_decode($this->client->getResponse()->getContent(), true);
 
-        $this->assertEquals($this->client->getContainer()->getParameter('wallabag_core.version'),$content);
+        $this->assertEquals($this->client->getContainer()->getParameter('wallabag_core.version'), $content);
     }
 }