X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FHelper%2FDetectActiveTheme.php;h=9f90ee3e21d01e38fa77b6b92c36d321bd2346b2;hb=f808b01692a835673f328d7221ba8c212caa9b61;hp=489f39d151e17213e8dcf6af6ee15e553f163637;hpb=18f8f32f70a3f76b307f4255eee0f51187b07283;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Helper/DetectActiveTheme.php b/src/Wallabag/CoreBundle/Helper/DetectActiveTheme.php index 489f39d1..9f90ee3e 100644 --- a/src/Wallabag/CoreBundle/Helper/DetectActiveTheme.php +++ b/src/Wallabag/CoreBundle/Helper/DetectActiveTheme.php @@ -18,8 +18,8 @@ class DetectActiveTheme implements DeviceDetectionInterface 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) { @@ -44,7 +44,7 @@ class DetectActiveTheme implements DeviceDetectionInterface { $token = $this->tokenStorage->getToken(); - if (is_null($token)) { + if (null === $token) { return $this->defaultTheme; }