Skip to content

Commit

Permalink
[TASK] Make CS fixer happy
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Dec 7, 2024
1 parent b69169e commit 29c0eec
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Classes/Domain/Service/PreviewUrlService.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
declare(strict_types=1);
namespace In2code\Luxletter\Domain\Service;

use Doctrine\DBAL\Driver\Exception as ExceptionDbalDriver;
use In2code\Luxletter\Domain\Factory\UserFactory;
use In2code\Luxletter\Domain\Repository\PageRepository;
use In2code\Luxletter\Domain\Service\Parsing\Newsletter as NewsletterParsing;
Expand All @@ -12,7 +11,6 @@
use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationExtensionNotConfiguredException;
use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationPathDoesNotExistException;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\MathUtility;
use TYPO3\CMS\Extbase\Configuration\Exception\InvalidConfigurationTypeException;

class PreviewUrlService
Expand All @@ -36,7 +34,6 @@ public function __construct()
* @param string $origin
* @param string $layout
* @return array|string[]
* @throws ExceptionDbalDriver
* @throws ExtensionConfigurationExtensionNotConfiguredException
* @throws ExtensionConfigurationPathDoesNotExistException
* @throws MisconfigurationException
Expand Down Expand Up @@ -87,9 +84,9 @@ protected function getUrlInDefaultInstallation(string $origin, string $layout):

protected function getUrl(string $origin, string $layout, int $language = 0): string
{
// if (MathUtility::canBeInterpretedAsInteger($origin)) {
// return $this->getUrlFromPageIdentifier((int)$origin, $layout, $language);
// }
// if (MathUtility::canBeInterpretedAsInteger($origin)) {
// return $this->getUrlFromPageIdentifier((int)$origin, $layout, $language);
// }

$url = '//' . GeneralUtility::getIndpEnv('HTTP_HOST') . '?type=1560777975';
$url .= '&tx_luxletter_preview[origin]=' . htmlspecialchars($origin);
Expand Down

0 comments on commit 29c0eec

Please sign in to comment.