Commit 4e603b91 authored by mabolek's avatar mabolek Committed by Thomas Löffler
Browse files

[FIX] Coding style compliance

parent 21406232
......@@ -60,12 +60,12 @@ class ManagerController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
/**
* The test action
*/
public function testAction() {
public function testAction()
{
$frontendUser = $this->frontendUserRepository->findByUid(1);
$valueReturned = $this->karmaService->getImmutableKarmaForUser($frontendUser, true, true);
var_dump($valueReturned);
}
}
......@@ -107,6 +107,4 @@ class FrontendUser extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
{
$this->karmaCacheTimestamp = $karmaCacheTimestamp;
}
}
\ No newline at end of file
......@@ -75,7 +75,7 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface
$immutableKarma = $this->ledgerEntryRepository->calculateImmutableKarmaTotalForUser($frontendUser);
if($updateCacheEntry) {
if ($updateCacheEntry) {
$immutableKarma = $this->getMutableKarmaForUser($frontendUser, true, false);
$frontendUser->setKarmaImmutableValue($immutableKarma);
......@@ -106,7 +106,7 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface
$mutableKarma = $this->ledgerEntryRepository->calculateMutableKarmaTotalForUser($frontendUser);
if($updateCacheEntry) {
if ($updateCacheEntry) {
$mutableKarma = $this->getImmutableKarmaForUser($frontendUser, true, false);
$frontendUser->setKarmaMutableValue($mutableKarma);
......@@ -126,7 +126,8 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface
* @return FrontendUser
* @internal
*/
public function ensureCorrectFrontendUserSubclass(\TYPO3\CMS\Extbase\Domain\Model\FrontendUser $frontendUser) {
public function ensureCorrectFrontendUserSubclass(\TYPO3\CMS\Extbase\Domain\Model\FrontendUser $frontendUser)
{
//If user is not an instance of our own frontend user class we have to fetch it again
if (!($frontendUser instanceof FrontendUser)) {
$frontendUser = $this->frontendUserRepository->findByUid($frontendUser->getUid());
......
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