Commit 4f5e5f7d authored by mabolek's avatar mabolek Committed by Sebastian Kotte
Browse files

[CLEANUP] Fixed CI issues

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