@@ -18,12 +18,6 @@ |
||
18 | 18 | use DP\Core\DistributionBundle\Configurator\Step\StepInterface; |
19 | 19 | use DP\Core\DistributionBundle\Configurator\Form\AutoInstallStepType; |
20 | 20 | use Symfony\Component\DependencyInjection\ContainerInterface; |
21 | -use Symfony\Component\Validator\Constraints as Assert; |
|
22 | -use Doctrine\ORM\Tools\SchemaTool; |
|
23 | -use Doctrine\ORM\Tools\ToolsException; |
|
24 | -use Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader as DataFixturesLoader; |
|
25 | -use Doctrine\Common\DataFixtures\Executor\ORMExecutor; |
|
26 | -use Doctrine\Common\DataFixtures\Purger\ORMPurger; |
|
27 | 21 | |
28 | 22 | class AutoInstallStep implements StepInterface |
29 | 23 | { |
@@ -191,7 +191,7 @@ |
||
191 | 191 | } |
192 | 192 | |
193 | 193 | /** |
194 | - * @return array |
|
194 | + * @return string[] |
|
195 | 195 | */ |
196 | 196 | static public function getDriverKeys() |
197 | 197 | { |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace DP\Core\DistributionBundle\Configurator\Step; |
13 | 13 | |
14 | -use Symfony\Component\Form\Type\FormTypeInterface; |
|
15 | 14 | use Symfony\Component\DependencyInjection\ContainerInterface; |
16 | 15 | |
17 | 16 | /** |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use DP\Core\DistributionBundle\Configurator\Step\StepInterface; |
16 | 16 | use Symfony\Component\DependencyInjection\ContainerInterface; |
17 | 17 | use DP\Core\DistributionBundle\Configurator\Form\UserStepType; |
18 | -use FOS\UserBundle\Model\UserManagerInterface; |
|
19 | 18 | use Symfony\Component\Validator\Constraints as Assert; |
20 | 19 | use FOS\UserBundle\Model\UserInterface; |
21 | 20 |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use Symfony\Component\Validator\ConstraintValidator; |
16 | 16 | use Dedipanel\PHPSeclibWrapperBundle\Connection\ConnectionManagerInterface; |
17 | 17 | use Dedipanel\PHPSeclibWrapperBundle\Connection\Exception\ConnectionErrorException; |
18 | -use Symfony\Component\Validator\Context\ExecutionContextInterface; |
|
19 | 18 | |
20 | 19 | |
21 | 20 | class CredentialsConstraintValidator extends ConstraintValidator |
@@ -268,7 +268,7 @@ |
||
268 | 268 | /** |
269 | 269 | * Returns the user unique id. |
270 | 270 | * |
271 | - * @return mixed |
|
271 | + * @return integer |
|
272 | 272 | */ |
273 | 273 | public function getId() |
274 | 274 | { |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use DP\Core\CoreBundle\Controller\Server\ServerController; |
15 | 15 | use DP\GameServer\GameServerBundle\Entity\GameServer; |
16 | -use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; |
|
17 | 16 | use DP\Core\CoreBundle\Exception\NotImplementedException; |
18 | 17 | use Symfony\Component\HttpFoundation\Request; |
19 | 18 | use Symfony\Component\DependencyInjection\ContainerInterface; |
@@ -259,6 +259,9 @@ |
||
259 | 259 | return $this->getScreenNameHash($screenName); |
260 | 260 | } |
261 | 261 | |
262 | + /** |
|
263 | + * @param string $screenName |
|
264 | + */ |
|
262 | 265 | public function getScreenNameHash($screenName, $hashLength = 20) |
263 | 266 | { |
264 | 267 | $screenName = sha1($screenName); |
@@ -18,13 +18,9 @@ |
||
18 | 18 | use DP\GameServer\GameServerBundle\Query\QueryInterface; |
19 | 19 | use DP\GameServer\GameServerBundle\Query\RconInterface; |
20 | 20 | use DP\Core\CoreBundle\Exception\NotImplementedException; |
21 | -use DP\GameServer\GameServerBundle\FTP\AbstractItem; |
|
22 | -use DP\GameServer\GameServerBundle\FTP\File; |
|
23 | -use DP\GameServer\GameServerBundle\FTP\Directory; |
|
24 | 21 | use DP\Core\GameBundle\Entity\Plugin; |
25 | 22 | use DP\Core\CoreBundle\Model\AbstractServer; |
26 | 23 | use Symfony\Component\Validator\Mapping\ClassMetadata; |
27 | -use Symfony\Component\Validator\Context\ExecutionContextInterface; |
|
28 | 24 | |
29 | 25 | /** |
30 | 26 | * DP\Core\GameServer\GameServerBundle\Entity\GameServer |
@@ -16,9 +16,7 @@ |
||
16 | 16 | use DP\GameServer\GameServerBundle\Socket\Packet; |
17 | 17 | use DP\GameServer\GameServerBundle\Socket\PacketCollection; |
18 | 18 | use DP\GameServer\GameServerBundle\Socket\Exception\ConnectionFailedException; |
19 | -use DP\GameServer\GameServerBundle\Socket\Exception\NotConnectedException; |
|
20 | 19 | use DP\GameServer\GameServerBundle\Socket\Exception\RecvTimeoutException; |
21 | -use DP\GameServer\MinecraftServerBundle\MinecraftQuery\Exception\ServerTimeoutException; |
|
22 | 20 | |
23 | 21 | class MinecraftRcon implements RconInterface |
24 | 22 | { |