@@ -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 | } |
@@ -22,16 +22,16 @@ |
||
| 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\Cli\SelfTestCliOsChecks; |
|
| 27 | -use Tenside\Core\SelfTest\Php\SelfTestEnvPopulated; |
|
| 28 | 25 | use Tenside\CoreBundle\Annotation\ApiDescription; |
| 29 | 26 | use Tenside\Core\SelfTest\Cli\SelfTestCanSpawnProcesses; |
| 30 | 27 | use Tenside\Core\SelfTest\Cli\SelfTestCliArguments; |
| 28 | +use Tenside\Core\SelfTest\Cli\SelfTestCliCanFork; |
|
| 29 | +use Tenside\Core\SelfTest\Cli\SelfTestCliOsChecks; |
|
| 31 | 30 | use Tenside\Core\SelfTest\Cli\SelfTestCliRuntime; |
| 32 | 31 | use Tenside\Core\SelfTest\Generic\SelfTestCalledViaHttps; |
| 33 | 32 | use Tenside\Core\SelfTest\Generic\SelfTestFileOwnerMatches; |
| 34 | 33 | use Tenside\Core\SelfTest\Php\SelfTestAllowUrlFopenEnabled; |
| 34 | +use Tenside\Core\SelfTest\Php\SelfTestEnvPopulated; |
|
| 35 | 35 | use Tenside\Core\SelfTest\Php\SelfTestSuhosin; |
| 36 | 36 | use Tenside\Core\SelfTest\SelfTest; |
| 37 | 37 | |
@@ -79,6 +79,7 @@ |
||
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * {@inheritDoc} |
| 82 | + * @param string $attribute |
|
| 82 | 83 | */ |
| 83 | 84 | public function supportsAttribute($attribute) |
| 84 | 85 | { |
@@ -183,8 +183,8 @@ |
||
| 183 | 183 | $router = $this->router; |
| 184 | 184 | |
| 185 | 185 | $cache = $this->getConfigCacheFactory()->cache( |
| 186 | - $this->options['cache_dir'].'/tenside_roles.php', |
|
| 187 | - function (ConfigCacheInterface $cache) use ($router) { |
|
| 186 | + $this->options['cache_dir'] . '/tenside_roles.php', |
|
| 187 | + function(ConfigCacheInterface $cache) use ($router) { |
|
| 188 | 188 | $routes = $router->getRouteCollection(); |
| 189 | 189 | $roles = []; |
| 190 | 190 | foreach ($routes as $name => $route) { |
@@ -574,7 +574,7 @@ |
||
| 574 | 574 | /** |
| 575 | 575 | * Load a repository containing available upgrades. |
| 576 | 576 | * |
| 577 | - * @return null|RepositoryInterface |
|
| 577 | + * @return null|WritableArrayRepository |
|
| 578 | 578 | */ |
| 579 | 579 | private function getUpgradeRepository() |
| 580 | 580 | { |
@@ -31,10 +31,10 @@ |
||
| 31 | 31 | use Symfony\Component\HttpFoundation\Request; |
| 32 | 32 | use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException; |
| 33 | 33 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 34 | +use Tenside\CoreBundle\Annotation\ApiDescription; |
|
| 34 | 35 | use Tenside\Core\Composer\PackageConverter; |
| 35 | 36 | use Tenside\Core\Util\JsonArray; |
| 36 | 37 | use Tenside\Core\Util\JsonFile; |
| 37 | -use Tenside\CoreBundle\Annotation\ApiDescription; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * List and manipulate the installed packages. |
@@ -26,12 +26,12 @@ |
||
| 26 | 26 | use Symfony\Component\HttpFoundation\Request; |
| 27 | 27 | use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException; |
| 28 | 28 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
| 29 | -use Tenside\Core\Composer\AuthJson; |
|
| 29 | +use Tenside\CoreBundle\Annotation\ApiDescription; |
|
| 30 | 30 | use Tenside\CoreBundle\Security\UserInformation; |
| 31 | 31 | use Tenside\CoreBundle\Security\UserInformationInterface; |
| 32 | +use Tenside\Core\Composer\AuthJson; |
|
| 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,9 +24,9 @@ |
||
| 24 | 24 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
| 25 | 25 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 26 | 26 | use Symfony\Component\HttpFoundation\Request; |
| 27 | -use Tenside\Core\Util\JsonArray; |
|
| 28 | 27 | use Tenside\CoreBundle\Annotation\ApiDescription; |
| 29 | 28 | use Tenside\CoreBundle\Security\UserInformationInterface; |
| 29 | +use Tenside\Core\Util\JsonArray; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * The main entry point. |