From 83d7babcf765b8af6171d354ab7b85257505bb2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Nitzsche?= Date: Fri, 29 Mar 2024 17:03:04 +0100 Subject: [PATCH] Fix code style --- Classes/Controller/Competition.php | 10 +++++----- Classes/Controller/Competition/MatchTable.php | 6 +++--- Classes/Controller/MatchTicker.php | 16 ++++++++-------- Classes/Controller/Team.php | 8 ++++---- Classes/Sports/Football.php | 6 +++--- Classes/Sports/IceHockey.php | 6 +++--- Configuration/TCA/tx_cfcleague_club.php | 4 +--- Configuration/TCA/tx_cfcleague_competition.php | 6 +++--- .../TCA/tx_cfcleague_competition_penalty.php | 2 +- Configuration/TCA/tx_cfcleague_games.php | 16 ++++++---------- Configuration/TCA/tx_cfcleague_profiles.php | 2 +- Configuration/TCA/tx_cfcleague_teams.php | 2 +- ext_tables.php | 2 +- 13 files changed, 40 insertions(+), 46 deletions(-) diff --git a/Classes/Controller/Competition.php b/Classes/Controller/Competition.php index d640d4b..ce0632b 100644 --- a/Classes/Controller/Competition.php +++ b/Classes/Controller/Competition.php @@ -123,11 +123,11 @@ protected function getContent($template, &$configurations, &$formatter, $formToo $menu = $this->selector->showTabMenu($this->getModule() ->getPid(), 'comptools', [ - '0' => $lang->getLL('edit_games'), - '1' => $lang->getLL('mod_compteams'), - '2' => $lang->getLL('create_games'), - '3' => $lang->getLL('mod_compdfbsync'), - ]); + '0' => $lang->getLL('edit_games'), + '1' => $lang->getLL('mod_compteams'), + '2' => $lang->getLL('create_games'), + '3' => $lang->getLL('mod_compdfbsync'), + ]); $tabs = $menu['menu']; $tabs .= '
'; diff --git a/Classes/Controller/Competition/MatchTable.php b/Classes/Controller/Competition/MatchTable.php index 7eb0e22..9feb14e 100644 --- a/Classes/Controller/Competition/MatchTable.php +++ b/Classes/Controller/Competition/MatchTable.php @@ -119,9 +119,9 @@ private function showMatchTable(Competition $comp) $menu = $this->getFormTool()->showMenu($this->getModule() ->getPid(), 't3s_mcmode', $this->getModule() ->getName(), [ - 0 => 'Auto', - '1' => 'Manual', - ]); + 0 => 'Auto', + '1' => 'Manual', + ]); $content .= $menu['menu']; $mode = $menu['value']; $content .= '
'; diff --git a/Classes/Controller/MatchTicker.php b/Classes/Controller/MatchTicker.php index 9091e05..6e19b12 100644 --- a/Classes/Controller/MatchTicker.php +++ b/Classes/Controller/MatchTicker.php @@ -540,18 +540,18 @@ protected function createFormArray(Fixture $match) $row[] = $this->getModule() ->getFormTool() ->createSelectByArray('data[tx_cfcleague_match_notes][NEW'.$i.'][type]', '0', $types, [ - ToolBox::OPTION_CSS_CLASSES => 'tickerField', - ]); + ToolBox::OPTION_CSS_CLASSES => 'tickerField', + ]); $row[] = $this->getModule() ->getFormTool() ->createSelectByArray('data[tx_cfcleague_match_notes][NEW'.$i.'][player_home]', '0', $playersHome, [ - ToolBox::OPTION_CSS_CLASSES => 'tickerField', - ]); + ToolBox::OPTION_CSS_CLASSES => 'tickerField', + ]); $row[] = $this->getModule() ->getFormTool() ->createSelectByArray('data[tx_cfcleague_match_notes][NEW'.$i.'][player_guest]', '0', $playersGuest, [ - ToolBox::OPTION_CSS_CLASSES => 'tickerField', - ]); + ToolBox::OPTION_CSS_CLASSES => 'tickerField', + ]); $arr[] = $row; // Das Bemerkungsfeld kommt in die nächste Zeile @@ -559,8 +559,8 @@ protected function createFormArray(Fixture $match) $row[] = $this->getModule() ->getFormTool() ->createTextArea('data[tx_cfcleague_match_notes][NEW'.$i.'][comment]', '', $cols, $rows, [ - ToolBox::OPTION_CSS_CLASSES => 'tickerField', - ]); + ToolBox::OPTION_CSS_CLASSES => 'tickerField', + ]); $arr[] = $row; } diff --git a/Classes/Controller/Team.php b/Classes/Controller/Team.php index 51aa808..87f3840 100644 --- a/Classes/Controller/Team.php +++ b/Classes/Controller/Team.php @@ -130,10 +130,10 @@ protected function getContent($template, &$configurations, &$formatter, $formToo // Wenn ein Team gefunden ist, dann können wir das Modul schreiben $menu = $this->selector->showTabMenu($this->getModule() ->getPid(), 'teamtools', [ - '0' => $LANG->getLL('create_players'), - '1' => $LANG->getLL('add_players'), - '2' => $LANG->getLL('manage_teamnotes'), - ]); + '0' => $LANG->getLL('create_players'), + '1' => $LANG->getLL('add_players'), + '2' => $LANG->getLL('manage_teamnotes'), + ]); $tabs = $menu['menu']; $tabs .= '
'; diff --git a/Classes/Sports/Football.php b/Classes/Sports/Football.php index f098360..222cc5c 100644 --- a/Classes/Sports/Football.php +++ b/Classes/Sports/Football.php @@ -65,9 +65,9 @@ public function getMatchInfo() { if (null == $this->matchInfo) { $this->matchInfo = tx_rnbase::makeInstance(MatchInfo::class, [ - MatchInfo::MATCH_TIME => 90, - MatchInfo::MATCH_PARTS => 2, - MatchInfo::MATCH_EXTRA_TIME => 30, + MatchInfo::MATCH_TIME => 90, + MatchInfo::MATCH_PARTS => 2, + MatchInfo::MATCH_EXTRA_TIME => 30, ]); } diff --git a/Classes/Sports/IceHockey.php b/Classes/Sports/IceHockey.php index c13faa8..68f2add 100644 --- a/Classes/Sports/IceHockey.php +++ b/Classes/Sports/IceHockey.php @@ -66,9 +66,9 @@ public function getMatchInfo() if (null == $this->matchInfo) { // TODO: Beim Eishockey ist die Overtime variabel $this->matchInfo = tx_rnbase::makeInstance(MatchInfo::class, [ - MatchInfo::MATCH_TIME => 60, - MatchInfo::MATCH_PARTS => 3, - MatchInfo::MATCH_EXTRA_TIME => 20, + MatchInfo::MATCH_TIME => 60, + MatchInfo::MATCH_PARTS => 3, + MatchInfo::MATCH_EXTRA_TIME => 20, ]); } diff --git a/Configuration/TCA/tx_cfcleague_club.php b/Configuration/TCA/tx_cfcleague_club.php index a812168..d4051bd 100644 --- a/Configuration/TCA/tx_cfcleague_club.php +++ b/Configuration/TCA/tx_cfcleague_club.php @@ -30,7 +30,7 @@ 'default' => 'ext-cfcleague-clubs-default', ], 'iconfile' => 'EXT:cfc_league/Resources/Public/Icons/icon_tx_cfcleague_clubs.gif', - ], + ], 'interface' => [ 'showRecordFieldList' => 'hidden,name,short_name', ], @@ -178,7 +178,6 @@ 'type' => 'script', 'title' => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet', 'icon' => 'wizard_rte2.gif', - // 'script' => 'wizard_rte.php', ], ], ], @@ -198,7 +197,6 @@ 'type' => 'script', 'title' => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet', 'icon' => 'wizard_rte2.gif', - // 'script' => 'wizard_rte.php', ], ], ], diff --git a/Configuration/TCA/tx_cfcleague_competition.php b/Configuration/TCA/tx_cfcleague_competition.php index e0d12f2..9c20062 100644 --- a/Configuration/TCA/tx_cfcleague_competition.php +++ b/Configuration/TCA/tx_cfcleague_competition.php @@ -143,7 +143,7 @@ ['LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_competition.type_league', 1], ['LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_competition.type_ko', 2], ['LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_competition.type_other', 0], -// , Array('LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_competition.type_combined',100) + // ['LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_competition.type_combined',100] ], 'default' => 1, ], @@ -216,7 +216,7 @@ 'maxitems' => 100, ], ], -/* used for combined competitions later... + /* used for combined competitions later... 'parent' => Array ( 'exclude' => 0, 'label' => 'LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_competition.parent', @@ -244,7 +244,7 @@ 'types' => [ '0' => ['showitem' => 'hidden, name, tournament, sports, internal_name, short_name, agegroup, saison, type,--palette--;;1, tablestrategy, point_system, logo, teams, match_keys, table_marks, match_parts, addparts,extid'], '1' => ['showitem' => 'hidden, name, tournament'], -// 'icehockey' => Array('showitem' => 'hidden, name, sports, internal_name, short_name, agegroup, saison, type;;2, point_system, logo, teams, match_keys, table_marks, match_parts, addparts'), + // 'icehockey' => ['showitem' => 'hidden, name, sports, internal_name, short_name, agegroup, saison, type;;2, point_system, logo, teams, match_keys, table_marks, match_parts, addparts'], ], 'palettes' => [ '1' => ['showitem' => 'obligation'], diff --git a/Configuration/TCA/tx_cfcleague_competition_penalty.php b/Configuration/TCA/tx_cfcleague_competition_penalty.php index a8692f9..7ac4ad6 100644 --- a/Configuration/TCA/tx_cfcleague_competition_penalty.php +++ b/Configuration/TCA/tx_cfcleague_competition_penalty.php @@ -17,7 +17,7 @@ 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => [ - 'disabled' => 'hidden', + 'disabled' => 'hidden', ], 'typeicon_classes' => [ 'default' => 'ext-cfcleague-competition-penalty-default', diff --git a/Configuration/TCA/tx_cfcleague_games.php b/Configuration/TCA/tx_cfcleague_games.php index 59be0c9..5916f9a 100644 --- a/Configuration/TCA/tx_cfcleague_games.php +++ b/Configuration/TCA/tx_cfcleague_games.php @@ -125,7 +125,7 @@ 'size' => '4', 'max' => '4', 'eval' => 'required,int', -// 'checkbox' => '0', + // 'checkbox' => '0', 'range' => [ 'upper' => '1000', 'lower' => '1', @@ -660,7 +660,6 @@ 'size' => '4', 'max' => '4', 'eval' => 'int', -// 'checkbox' => '0', 'range' => [ 'upper' => '1000', 'lower' => '0', @@ -676,7 +675,6 @@ 'size' => '4', 'max' => '4', 'eval' => 'int', -// 'checkbox' => '0', 'range' => [ 'upper' => '1000', 'lower' => '0', @@ -701,7 +699,6 @@ 'size' => '4', 'max' => '4', 'eval' => 'int', -// 'checkbox' => '0', 'range' => [ 'upper' => '1000', 'lower' => '0', @@ -717,7 +714,6 @@ 'size' => '4', 'max' => '4', 'eval' => 'int', -// 'checkbox' => '0', 'range' => [ 'upper' => '1000', 'lower' => '0', @@ -737,13 +733,13 @@ ], ], 'types' => [ - // goals_home_1, goals_guest_1, goals_home_2, goals_guest_2, + // goals_home_1, goals_guest_1, goals_home_2, goals_guest_2, '0' => [ 'showitem' => 'hidden,match_no,competition,home,guest,round,round_name,date,addinfo,status,--palette--;;6,sets,--palette--;;7,arena,stadium,visitors,extid, - --div--;LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_games.tab_lineup,coach_home, players_home, substitutes_home, system_home, system_guest, coach_guest, players_guest, substitutes_guest, referee, assists, videoreferee, videoassists, - --div--;LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_games.tab_lineup_stat,players_home_stat, substitutes_home_stat, players_guest_stat, substitutes_guest_stat, scorer_home_stat, scorer_guest_stat, - --div--;LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_games.tab_score, is_extratime,--palette--;;2, is_penalty,--palette--;;3, - --div--;LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_games.game_report, game_report,--palette--;;4, game_report_author,--palette--;;5, t3images, dam_media, dam_media2, video, videoimg', + --div--;LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_games.tab_lineup,coach_home, players_home, substitutes_home, system_home, system_guest, coach_guest, players_guest, substitutes_guest, referee, assists, videoreferee, videoassists, + --div--;LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_games.tab_lineup_stat,players_home_stat, substitutes_home_stat, players_guest_stat, substitutes_guest_stat, scorer_home_stat, scorer_guest_stat, + --div--;LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_games.tab_score, is_extratime,--palette--;;2, is_penalty,--palette--;;3, + --div--;LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_games.game_report, game_report,--palette--;;4, game_report_author,--palette--;;5, t3images, dam_media, dam_media2, video, videoimg', ], ], 'palettes' => [ diff --git a/Configuration/TCA/tx_cfcleague_profiles.php b/Configuration/TCA/tx_cfcleague_profiles.php index cd2d82a..2560b70 100644 --- a/Configuration/TCA/tx_cfcleague_profiles.php +++ b/Configuration/TCA/tx_cfcleague_profiles.php @@ -17,7 +17,7 @@ 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', -// 'sortby' => 'sorting', + // 'sortby' => 'sorting', 'default_sortby' => 'ORDER BY last_name, first_name', 'delete' => 'deleted', 'enablecolumns' => [ diff --git a/Configuration/TCA/tx_cfcleague_teams.php b/Configuration/TCA/tx_cfcleague_teams.php index adec215..131802f 100644 --- a/Configuration/TCA/tx_cfcleague_teams.php +++ b/Configuration/TCA/tx_cfcleague_teams.php @@ -233,7 +233,7 @@ ], 'types' => [ '0' => [ - 'showitem' => 'hidden, club,logo, t3logo, name, short_name, tlc, agegroup, t3images, link_report, dummy, extid, + 'showitem' => 'hidden, club,logo, t3logo, name, short_name, tlc, agegroup, t3images, link_report, dummy, extid, --div--;LLL:EXT:cfc_league/Resources/Private/Language/locallang_db.xlf:tx_cfcleague_teams_tab_members,coaches, players, supporters, players_comment, coaches_comment, supporters_comment, comment', ], ], diff --git a/ext_tables.php b/ext_tables.php index abbb5a4..9556633 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -29,7 +29,7 @@ 'routeTarget' => System25\T3sports\Module\T3sportsModule::class, 'icon' => 'EXT:cfc_league/Resources/Public/Icons/module-t3sports.svg', 'labels' => 'LLL:EXT:cfc_league/Resources/Private/Language/locallang_mod.xlf', - ]); + ]); Sys25\RnBase\Utility\Extensions::insertModuleFunction($modName, System25\T3sports\Controller\Competition::class, '', 'LLL:EXT:cfc_league/Resources/Private/Language/locallang.xlf:mod_competition'); Sys25\RnBase\Utility\Extensions::insertModuleFunction($modName, System25\T3sports\Controller\MatchTicker::class, '', 'LLL:EXT:cfc_league/Resources/Private/Language/locallang.xlf:match_ticker'); Sys25\RnBase\Utility\Extensions::insertModuleFunction($modName, System25\T3sports\Controller\Team::class, '', 'LLL:EXT:cfc_league/Resources/Private/Language/locallang.xlf:mod_team');