Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
digedag committed Mar 29, 2024
1 parent ea3bb72 commit 83d7bab
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 46 deletions.
10 changes: 5 additions & 5 deletions Classes/Controller/Competition.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '<div style="display: block; border: 1px solid #a2aab8;" ></div>';
Expand Down
6 changes: 3 additions & 3 deletions Classes/Controller/Competition/MatchTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '<br>';
Expand Down
16 changes: 8 additions & 8 deletions Classes/Controller/MatchTicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,27 +540,27 @@ 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
$row = [];
$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;
}

Expand Down
8 changes: 4 additions & 4 deletions Classes/Controller/Team.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '<div style="display: block; border: 1px solid #a2aab8;" ></div>';
Expand Down
6 changes: 3 additions & 3 deletions Classes/Sports/Football.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
}

Expand Down
6 changes: 3 additions & 3 deletions Classes/Sports/IceHockey.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
}

Expand Down
4 changes: 1 addition & 3 deletions Configuration/TCA/tx_cfcleague_club.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down Expand Up @@ -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',
],
],
],
Expand All @@ -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',
],
],
],
Expand Down
6 changes: 3 additions & 3 deletions Configuration/TCA/tx_cfcleague_competition.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/tx_cfcleague_competition_penalty.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'sortby' => 'sorting',
'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'hidden',
'disabled' => 'hidden',
],
'typeicon_classes' => [
'default' => 'ext-cfcleague-competition-penalty-default',
Expand Down
16 changes: 6 additions & 10 deletions Configuration/TCA/tx_cfcleague_games.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
'size' => '4',
'max' => '4',
'eval' => 'required,int',
// 'checkbox' => '0',
// 'checkbox' => '0',
'range' => [
'upper' => '1000',
'lower' => '1',
Expand Down Expand Up @@ -660,7 +660,6 @@
'size' => '4',
'max' => '4',
'eval' => 'int',
// 'checkbox' => '0',
'range' => [
'upper' => '1000',
'lower' => '0',
Expand All @@ -676,7 +675,6 @@
'size' => '4',
'max' => '4',
'eval' => 'int',
// 'checkbox' => '0',
'range' => [
'upper' => '1000',
'lower' => '0',
Expand All @@ -701,7 +699,6 @@
'size' => '4',
'max' => '4',
'eval' => 'int',
// 'checkbox' => '0',
'range' => [
'upper' => '1000',
'lower' => '0',
Expand All @@ -717,7 +714,6 @@
'size' => '4',
'max' => '4',
'eval' => 'int',
// 'checkbox' => '0',
'range' => [
'upper' => '1000',
'lower' => '0',
Expand All @@ -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' => [
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/tx_cfcleague_profiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/tx_cfcleague_teams.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
],
Expand Down
2 changes: 1 addition & 1 deletion ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 83d7bab

Please sign in to comment.