Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
Archive
t3o
my.typo3.org
Commits
4f5e5f7d
Commit
4f5e5f7d
authored
Feb 11, 2019
by
mabolek
Committed by
Sebastian Kotte
Feb 12, 2019
Browse files
[CLEANUP] Fixed CI issues
parent
297fbb8b
Changes
4
Hide whitespace changes
Inline
Side-by-side
extensions/karma/Classes/Controller/AbstractController.php
View file @
4f5e5f7d
...
...
@@ -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'
]);
}
}
extensions/karma/Classes/Domain/Model/FrontendUser.php
View file @
4f5e5f7d
...
...
@@ -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
));
}
}
extensions/karma/Classes/Domain/Model/LedgerEntry.php
View file @
4f5e5f7d
...
...
@@ -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
*
...
...
extensions/karma/Classes/Domain/Repository/LedgerEntryRepository.php
View file @
4f5e5f7d
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment