protected $defaultTheme;
/**
- * @param TokenStorageInterface $tokenStorage Needed to retrieve the current user
- * @param string $defaultTheme Default theme when user isn't logged in
+ * @param TokenStorageInterface $tokenStorage Needed to retrieve the current user
+ * @param string $defaultTheme Default theme when user isn't logged in
*/
public function __construct(TokenStorageInterface $tokenStorage, $defaultTheme)
{
{
$token = $this->tokenStorage->getToken();
- if (is_null($token)) {
+ if (null === $token) {
return $this->defaultTheme;
}