]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Helper/DetectActiveTheme.php
Add a real configuration for CS-Fixer
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Helper / DetectActiveTheme.php
index 489f39d151e17213e8dcf6af6ee15e553f163637..9f90ee3e21d01e38fa77b6b92c36d321bd2346b2 100644 (file)
@@ -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;
         }