@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * |
| 67 | 67 | * @param UserInformationInterface $userData The user data to issue a token for. |
| 68 | 68 | * |
| 69 | - * @param int|null $lifetime The lifetime in seconds this token shall be valid. |
|
| 69 | + * @param integer $lifetime The lifetime in seconds this token shall be valid. |
|
| 70 | 70 | * Use null for no limit. |
| 71 | 71 | * |
| 72 | 72 | * @return string |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | * |
| 186 | 186 | * @param string $jwt The jwt as string. |
| 187 | 187 | * |
| 188 | - * @return object |
|
| 188 | + * @return string |
|
| 189 | 189 | * |
| 190 | 190 | * @throws \UnexpectedValueException When the token does not match the local id. |
| 191 | 191 | */ |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 26 | 26 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 27 | 27 | use Symfony\Component\HttpFoundation\Request; |
| 28 | -use Tenside\Core\Util\JsonArray; |
|
| 29 | 28 | use Tenside\CoreBundle\Annotation\ApiDescription; |
| 29 | +use Tenside\Core\Util\JsonArray; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Validation of version constraints. |
@@ -414,9 +414,9 @@ |
||
| 414 | 414 | /** |
| 415 | 415 | * Retrieve the passed environment variables from the current session and return them. |
| 416 | 416 | * |
| 417 | - * @param array $names The names of the environment variables to inherit. |
|
| 417 | + * @param string[] $names The names of the environment variables to inherit. |
|
| 418 | 418 | * |
| 419 | - * @return array |
|
| 419 | + * @return string |
|
| 420 | 420 | */ |
| 421 | 421 | private function getDefinedEnvironmentVariables($names) |
| 422 | 422 | { |
@@ -22,16 +22,15 @@ |
||
| 22 | 22 | |
| 23 | 23 | use Composer\Util\RemoteFilesystem; |
| 24 | 24 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
| 25 | -use Symfony\Component\Filesystem\Filesystem; |
|
| 26 | 25 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 27 | 26 | use Symfony\Component\HttpFoundation\Request; |
| 28 | 27 | use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException; |
| 29 | 28 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
| 29 | +use Tenside\CoreBundle\Annotation\ApiDescription; |
|
| 30 | 30 | use Tenside\CoreBundle\Security\UserInformation; |
| 31 | 31 | use Tenside\CoreBundle\Security\UserInformationInterface; |
| 32 | 32 | use Tenside\Core\Task\Composer\InstallTask; |
| 33 | 33 | use Tenside\Core\Util\JsonArray; |
| 34 | -use Tenside\CoreBundle\Annotation\ApiDescription; |
|
| 35 | 34 | |
| 36 | 35 | /** |
| 37 | 36 | * Controller for manipulating the composer.json file. |