Commit 23e6de07 authored by mabolek's avatar mabolek Committed by Sebastian Kotte
Browse files

[CLEANUP] CI-related fixes

parent 4288394f
...@@ -215,11 +215,11 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface ...@@ -215,11 +215,11 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface
*/ */
public function triggerKarmaIssuerActionForUser($issuerCode, $issuerActionCode, ExtbaseFrontendUser $frontendUser) public function triggerKarmaIssuerActionForUser($issuerCode, $issuerActionCode, ExtbaseFrontendUser $frontendUser)
{ {
if (!key_exists($issuerCode, $this->settings['issuers'])) { if (!array_key_exists($issuerCode, $this->settings['issuers'])) {
throw new \Exception('Issuer code "' . $issuerCode . '" does not exist.', 1549968187); throw new \Exception('Issuer code "' . $issuerCode . '" does not exist.', 1549968187);
} }
if (!key_exists($issuerActionCode, $this->settings['issuers'][$issuerCode])) { if (!array_key_exists($issuerActionCode, $this->settings['issuers'][$issuerCode])) {
throw new \Exception('Issuer action code "' . $issuerActionCode . '" does not exist.', 1549968249); throw new \Exception('Issuer action code "' . $issuerActionCode . '" does not exist.', 1549968249);
} }
...@@ -230,7 +230,7 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface ...@@ -230,7 +230,7 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface
throw new \Exception('Empty karma source code supplied. Please configure it in TypoScript.', 1541508560); throw new \Exception('Empty karma source code supplied. Please configure it in TypoScript.', 1541508560);
} }
if (!key_exists($karmaSourceCode, $this->settings['sourceCodes'])) { if (!array_key_exists($karmaSourceCode, $this->settings['sourceCodes'])) {
throw new \Exception('Karma source code "' . $karmaSourceCode . '" does not exist.', 1549968362); throw new \Exception('Karma source code "' . $karmaSourceCode . '" does not exist.', 1549968362);
} }
......
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