refactor
This commit is contained in:
@@ -6,7 +6,6 @@ use Doctrine\ORM\EntityManager;
|
||||
use Gos\Bundle\WebSocketBundle\Client\ClientManipulatorInterface;
|
||||
use Gos\Bundle\WebSocketBundle\Topic\TopicInterface;
|
||||
use Gos\Bundle\WebSocketBundle\Router\WampRequest;
|
||||
use Guzzle\Http\Message\Request;
|
||||
use Mine\SeekerBundle\Entity\Gamer;
|
||||
use Mine\SeekerBundle\Entity\Step;
|
||||
use Ratchet\ConnectionInterface;
|
||||
@@ -189,10 +188,10 @@ class MineseekerTopic implements TopicInterface
|
||||
$this->em->flush();
|
||||
|
||||
return array(
|
||||
'red' => $playedGame->getRed() !== null ? $playedGame->getRed()->getUsername() : '',
|
||||
'blue' => $playedGame->getBlue() !== null ? $playedGame->getBlue()->getUsername() : '',
|
||||
'redAnon' => $playedGame->getRedAnon() !== null ? $playedGame->getRedAnon()->getUserName() : '',
|
||||
'blueAnon' => $playedGame->getBlueAnon() !== null ? $playedGame->getBlueAnon()->getUserName() : ''
|
||||
'red' => null !== $playedGame->getRed() ? $playedGame->getRed()->getUsername() : '',
|
||||
'blue' => null !== $playedGame->getBlue() ? $playedGame->getBlue()->getUsername() : '',
|
||||
'redAnon' => null !== $playedGame->getRedAnon() ? $playedGame->getRedAnon()->getUserName() : '',
|
||||
'blueAnon' => null !== $playedGame->getBlueAnon() ? $playedGame->getBlueAnon()->getUserName() : ''
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user