Commit aa6f2f45 authored by mabolek's avatar mabolek

[CLEANUP] Fixed CI issues

parent 6c949c90
Pipeline #6164 passed with stages
in 2 minutes and 30 seconds
......@@ -73,7 +73,8 @@ class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControl
/**
* @return array The source codes for karma
*/
public function getKarmaSourceCodes() {
public function getKarmaSourceCodes()
{
return array_keys($this->settings['sourceCodes']);
}
}
......@@ -148,7 +148,7 @@ class FrontendUser extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
if ($this->karmaSourceTotalCacheDecoded === null) {
$this->karmaSourceTotalCacheDecoded = json_decode($this->getKarmaSourceTotalCache());
if(!is_array($this->karmaSourceTotalCacheDecoded)) {
if (!is_array($this->karmaSourceTotalCacheDecoded)) {
$this->karmaSourceTotalCacheDecoded = [];
$this->setKarmaSourceTotalCache(json_encode($this->karmaSourceTotalCacheDecoded));
}
......@@ -160,10 +160,9 @@ class FrontendUser extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
/**
* @param array|null $karmaSourceTotalCacheDecoded
*/
public function setKarmaSourceTotalCacheDecoded(array $karmaSouceTotalDecoded) {
public function setKarmaSourceTotalCacheDecoded(array $karmaSouceTotalDecoded)
{
$this->karmaSourceTotalCacheDecoded = $karmaSouceTotalDecoded;
$this->setKarmaSourceTotalCache(json_encode($this->karmaSourceTotalCacheDecoded));
}
}
......@@ -264,7 +264,6 @@ class LedgerEntry extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
$this->issuerAction = $issuerAction;
}
/**
* Get the entry campaign that generated this entry, or null if no campaign
*
......
......@@ -105,7 +105,8 @@ class LedgerEntryRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
* @param \TYPO3\CMS\Extbase\Domain\Model\FrontendUser $frontendUser
* @return bool|string
*/
public function calculateImmutableKarmaSourceTotalForUser(string $source, \TYPO3\CMS\Extbase\Domain\Model\FrontendUser $frontendUser) {
public function calculateImmutableKarmaSourceTotalForUser(string $source, \TYPO3\CMS\Extbase\Domain\Model\FrontendUser $frontendUser)
{
$frontendUser = $this->karmaService->ensureCorrectFrontendUserSubclass($frontendUser);
$queryBuilder = $this->getQueryBuilder();
......
Markdown is supported
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