Fix Codacy hints

This commit is contained in:
Alexander Bigga 2021-11-22 21:25:21 +01:00
parent 855208a953
commit cc0b6bce9e
4 changed files with 2 additions and 6 deletions

View File

@ -210,7 +210,7 @@ class CollectionController extends AbstractController
'thumbnail' => htmlspecialchars($collection->getThumbnail()),
'options' => [
'source' => 'collection',
'select' => $id,
'select' => $collection->getUid(),
'userid' => $collection->getFeCruserId(),
'params' => ['filterquery' => [['query' => 'collection_faceting:("' . $collection->getIndexName() . '")']]],
'core' => '',

View File

@ -223,8 +223,6 @@ class MetadataController extends AbstractController
}
}
} else {
$context = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Context\Context::class);
$currentLanguageUid = $context->getPropertyFromAspect('language', 'id');
$metadataResult = $this->metadataRepository->findAll();

View File

@ -60,8 +60,6 @@ class PageViewController extends AbstractController
*/
public function mainAction()
{
$frameworkConfiguration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
$requestData = GeneralUtility::_GPmerged('tx_dlf');
unset($requestData['__referrer'], $requestData['__trustedProperties']);

View File

@ -39,7 +39,7 @@ class TokenRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
$tokensToBeRemoved = $query->execute();
foreach($tokensToBeRemoved as $token) {
foreach ($tokensToBeRemoved as $token) {
$this->remove($token);
}
}