diff --git a/src/Authenticator.php b/src/Authenticator.php index ee1b598..d2476e6 100644 --- a/src/Authenticator.php +++ b/src/Authenticator.php @@ -50,7 +50,6 @@ public function __construct() return true; } - /** @var LoggerInterface $logger */ $logger = Injector::inst()->get(LoggerInterface::class); $certDir = Environment::getEnv('REALME_CERT_DIR'); diff --git a/src/Authenticator/LoginForm.php b/src/Authenticator/LoginForm.php index 08f9120..2ac268f 100644 --- a/src/Authenticator/LoginForm.php +++ b/src/Authenticator/LoginForm.php @@ -185,7 +185,6 @@ protected function getFormFields() */ protected function getFormActions() { - /** @var RealMeService $service */ $service = Injector::inst()->get(RealMeService::class); $integrationType = $service->config()->integration_type; diff --git a/src/Extension/MemberExtension.php b/src/Extension/MemberExtension.php index 97afef4..5cf29a6 100644 --- a/src/Extension/MemberExtension.php +++ b/src/Extension/MemberExtension.php @@ -3,9 +3,10 @@ namespace SilverStripe\RealMe\Extension; use SilverStripe\ORM\DataExtension; +use SilverStripe\Security\Member; /** - * Class MemberExtension + * @extends DataExtension */ class MemberExtension extends DataExtension { diff --git a/src/Extension/SiteTreeExtension.php b/src/Extension/SiteTreeExtension.php index 8cbeedc..42b451a 100644 --- a/src/Extension/SiteTreeExtension.php +++ b/src/Extension/SiteTreeExtension.php @@ -2,12 +2,16 @@ namespace SilverStripe\RealMe\Extension; +use SilverStripe\CMS\Model\SiteTree; use SilverStripe\RealMe\RealMeService; use SilverStripe\Security\InheritedPermissions; use SilverStripe\Security\Member; use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataExtension; +/** + * @extends DataExtension + */ class SiteTreeExtension extends DataExtension { private static $dependencies = array( @@ -37,7 +41,7 @@ public function canView($member) if ($member && $member->ID) { return null; } - + $data = $this->service->getUserData(); if (empty($data)) { // Defer if there's no logged in RealMe user