Commit 509078cb authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[TASK] Cleanup

parent 78b23610
......@@ -25,12 +25,11 @@ namespace SGalinski\SgCookieOptin\Backend;
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use SGalinski\SgCookieOptin\Service\LicenceCheckService;
use TYPO3\CMS\Core\Http\Response;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
/**
* Class Ajax
......@@ -60,6 +59,4 @@ class Ajax {
$response->getBody()->write(json_encode($responseData));
return $response;
}
}
......@@ -196,9 +196,8 @@ class LicenceCheckService {
$licenseKey = self::getLicenseKey();
if (!self::shouldCheckKey($licenseKey)) {
return self::getValidLicense();
} else {
self::clearRegistryValues();
}
self::clearRegistryValues();
if (!self::isLicenseServerReachable()) {
return TRUE;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment