Completed
Push — master ( 3c4a7b...675251 )
by Peter
9s
created
src/TreeHouse/BaseApiBundle/Behat/ApiContext.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -95,6 +95,8 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * @Then the response header :header should contain :value
97 97
      * @Then the response header :header contains :value
98
+     * @param string $header
99
+     * @param string $value
98 100
      */
99 101
     public function theResponseHeaderContains($header, $value)
100 102
     {
@@ -186,6 +188,8 @@  discard block
 block discarded – undo
186 188
     /**
187 189
      * @Given I have a valid token for :user with password :pass
188 190
      * @Given I have a valid token for username :user and password :pass
191
+     * @param string $user
192
+     * @param string $pass
189 193
      */
190 194
     public function iHaveAValidTokenForUsernameAndPassword($user, $pass)
191 195
     {
@@ -217,6 +221,8 @@  discard block
 block discarded – undo
217 221
     }
218 222
 
219 223
     /** @Given I have a valid user token for username :user and password :pass
224
+     * @param string $user
225
+     * @param string $pass
220 226
      */
221 227
     public function iHaveAValidUserTokenForUsernameAndPassword($user, $pass)
222 228
     {
@@ -381,6 +387,7 @@  discard block
 block discarded – undo
381 387
 
382 388
     /**
383 389
      * @inheritdoc
390
+     * @param string $data
384 391
      */
385 392
     protected function request($method, $uri, $data = null, array $headers = [], array $server = [])
386 393
     {
Please login to merge, or discard this patch.
src/TreeHouse/BaseApiBundle/Behat/BaseFeatureContext.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
     /**
203 203
      * @param string $service
204 204
      *
205
-     * @return object
205
+     * @return \FOS\UserBundle\Model\UserInterface
206 206
      */
207 207
     protected function get($service)
208 208
     {
Please login to merge, or discard this patch.
src/TreeHouse/BaseApiBundle/Controller/BaseApiController.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace TreeHouse\BaseApiBundle\Tests\Security;
4 4
 
5
-use TreeHouse\BaseApiBundle\Security\SecurityContext;
6 5
 use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
7 6
 use Symfony\Component\Security\Core\User\UserInterface;
7
+use TreeHouse\BaseApiBundle\Security\SecurityContext;
8 8
 
9 9
 class SecurityContextTest extends \PHPUnit_Framework_TestCase
10 10
 {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      *
67 67
      * @param Request              $request
68 68
      * @param int                  $code    The response code
69
-     * @param string|array         $error   The error
69
+     * @param string         $error   The error
70 70
      * @param array                $groups  JMS\Serializer groups
71 71
      * @param SerializationContext $context The context to use for serializing the result data
72 72
      *
Please login to merge, or discard this patch.