Commit 9524354d authored by Jonas Götze's avatar Jonas Götze
Browse files

[BUGFIX] CS-Fixer Korrekturen

parent 87f45862
......@@ -11,7 +11,7 @@ class SystemCategoryOptions extends GenericFormElement
public function setProperty(string $key, $value)
{
if ($key === 'systemCategory' && is_array($value) && isset($value['uid'])) {
$this->setProperty('options', $this->getOptions($value['uid'],$value['exclude'] ?? ''));
$this->setProperty('options', $this->getOptions($value['uid'], $value['exclude'] ?? ''));
return;
}
......@@ -23,11 +23,11 @@ class SystemCategoryOptions extends GenericFormElement
* @param string $exclude csv list of excluded IDs
* @return array
*/
protected function getOptions(int $uid, string $exclude = '') : array
protected function getOptions(int $uid, string $exclude = ''): array
{
$options = [];
$excludeIds = GeneralUtility::intExplode(',',$exclude,true);
foreach ($this->getCategoriesForUid($uid, $excludeIds) as $category) {
$excludeIds = GeneralUtility::intExplode(',', $exclude, true);
foreach ($this->getCategoriesForUid($uid, $excludeIds) as $category) {
$options[$category['uid']] = $category['title'];
}
......@@ -35,7 +35,7 @@ class SystemCategoryOptions extends GenericFormElement
return $options;
}
protected function getCategoriesForUid(int $uid, array $excludeIds = []) : array
protected function getCategoriesForUid(int $uid, array $excludeIds = []): array
{
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getQueryBuilderForTable('sys_category');
......
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