@@ -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. |
@@ -27,11 +27,11 @@ |
||
| 27 | 27 | use Symfony\Component\HttpFoundation\Request; |
| 28 | 28 | use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException; |
| 29 | 29 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
| 30 | +use Tenside\CoreBundle\Annotation\ApiDescription; |
|
| 30 | 31 | use Tenside\CoreBundle\Security\UserInformation; |
| 31 | 32 | use Tenside\CoreBundle\Security\UserInformationInterface; |
| 32 | 33 | use Tenside\Core\Task\Composer\InstallTask; |
| 33 | 34 | use Tenside\Core\Util\JsonArray; |
| 34 | -use Tenside\CoreBundle\Annotation\ApiDescription; |
|
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * Controller for manipulating the composer.json file. |
@@ -24,8 +24,8 @@ |
||
| 24 | 24 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 25 | 25 | use Symfony\Component\HttpFoundation\Request; |
| 26 | 26 | use Symfony\Component\HttpFoundation\Response; |
| 27 | -use Tenside\Core\Util\PhpProcessSpawner; |
|
| 28 | 27 | use Tenside\CoreBundle\Annotation\ApiDescription; |
| 28 | +use Tenside\Core\Util\PhpProcessSpawner; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * Controller for manipulating the AppKernel file. |
@@ -22,15 +22,15 @@ |
||
| 22 | 22 | |
| 23 | 23 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
| 24 | 24 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 25 | -use Tenside\Core\SelfTest\Cli\SelfTestCliCanFork; |
|
| 26 | -use Tenside\Core\SelfTest\Php\SelfTestEnvPopulated; |
|
| 27 | 25 | use Tenside\CoreBundle\Annotation\ApiDescription; |
| 28 | 26 | use Tenside\Core\SelfTest\Cli\SelfTestCanSpawnProcesses; |
| 29 | 27 | use Tenside\Core\SelfTest\Cli\SelfTestCliArguments; |
| 28 | +use Tenside\Core\SelfTest\Cli\SelfTestCliCanFork; |
|
| 30 | 29 | use Tenside\Core\SelfTest\Cli\SelfTestCliRuntime; |
| 31 | 30 | use Tenside\Core\SelfTest\Generic\SelfTestCalledViaHttps; |
| 32 | 31 | use Tenside\Core\SelfTest\Generic\SelfTestFileOwnerMatches; |
| 33 | 32 | use Tenside\Core\SelfTest\Php\SelfTestAllowUrlFopenEnabled; |
| 33 | +use Tenside\Core\SelfTest\Php\SelfTestEnvPopulated; |
|
| 34 | 34 | use Tenside\Core\SelfTest\Php\SelfTestSuhosin; |
| 35 | 35 | use Tenside\Core\SelfTest\SelfTest; |
| 36 | 36 | |
@@ -27,10 +27,10 @@ |
||
| 27 | 27 | use Symfony\Component\HttpFoundation\Request; |
| 28 | 28 | use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException; |
| 29 | 29 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 30 | -use Tenside\Core\Util\PhpProcessSpawner; |
|
| 31 | 30 | use Tenside\CoreBundle\Annotation\ApiDescription; |
| 32 | 31 | use Tenside\Core\Task\Task; |
| 33 | 32 | use Tenside\Core\Util\JsonArray; |
| 33 | +use Tenside\Core\Util\PhpProcessSpawner; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Lists and executes queued tasks. |
@@ -20,9 +20,9 @@ |
||
| 20 | 20 | |
| 21 | 21 | namespace Tenside\CoreBundle\DependencyInjection\Factory; |
| 22 | 22 | |
| 23 | +use Tenside\CoreBundle\Util\HomePathDeterminator; |
|
| 23 | 24 | use Tenside\Core\Task\TaskFactoryInterface; |
| 24 | 25 | use Tenside\Core\Task\TaskList; |
| 25 | -use Tenside\CoreBundle\Util\HomePathDeterminator; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * This class creates a composerJson instance. |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | $errors = str_replace(dirname($tempFile), '', $errors); |
| 157 | 157 | $warnings = str_replace(dirname($tempFile), '', $warnings); |
| 158 | 158 | |
| 159 | - $lineMapper = function ($str) { |
|
| 159 | + $lineMapper = function($str) { |
|
| 160 | 160 | if (preg_match('#Parse error on line (\d+)#', $str, $match)) { |
| 161 | 161 | return ['line' => $match[1], 'msg' => $str]; |
| 162 | 162 | } |