Skip to content

Commit

Permalink
unify annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
fiedsch committed Jan 9, 2019
1 parent 780cad8 commit aebcc4f
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Resources/contao/elements/ContentHighlightRanking.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ContentHighlightRanking extends ContentElement
public function generate()
{
if (TL_MODE === 'BE') {
/** @var \BackendTemplate $objTemplate */
/** @var BackendTemplate $objTemplate */
$objTemplate = new BackendTemplate('be_wildcard');
$liga = LigaModel::findById($this->liga);
if (1 === $this->rankingtype) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class ContentMannschaftenuebersicht extends ContentElement
public function generate()
{
if (TL_MODE === 'BE') {
/** @var BackendTemplate $objTemplate */
$objTemplate = new BackendTemplate('be_wildcard');
$objTemplate->title = $this->headline;
$objTemplate->wildcard = '### '.Utf8::strtoupper($GLOBALS['TL_LANG']['CTE']['mannschaftenuebersicht'][0]).' ###';
Expand Down
1 change: 1 addition & 0 deletions src/Resources/contao/elements/ContentMannschaftsliste.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class ContentMannschaftsliste extends ContentElement
public function generate()
{
if (TL_MODE === 'BE') {
/** @var BackendTemplate $objTemplate */
$objTemplate = new BackendTemplate('be_wildcard');
$objTemplate->title = $this->headline;

Expand Down
1 change: 1 addition & 0 deletions src/Resources/contao/elements/ContentMannschaftsseite.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ContentMannschaftsseite extends ContentElement
public function generate()
{
if (TL_MODE === 'BE') {
/** @var BackendTemplate $objTemplate */
$objTemplate = new BackendTemplate('be_wildcard');

$headline = $this->headline;
Expand Down
1 change: 1 addition & 0 deletions src/Resources/contao/elements/ContentRanking.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ContentRanking extends ContentElement
public function generate()
{
if (TL_MODE === 'BE') {
/** @var BackendTemplate $objTemplate */
$objTemplate = new BackendTemplate('be_wildcard');
$liga = LigaModel::findById($this->liga);
if (1 === $this->rankingtype) {
Expand Down
1 change: 1 addition & 0 deletions src/Resources/contao/elements/ContentSpielbericht.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class ContentSpielbericht extends ContentElement
public function generate()
{
if (TL_MODE === 'BE') {
/** @var BackendTemplate $objTemplate */
$objTemplate = new BackendTemplate('be_wildcard');
$objTemplate->title = $this->headline;
$begegnunglabel = BegegnungModel::findById($this->begegnung) ? BegegnungModel::findById($this->begegnung)->getLabel('full') : 'Begegnung nicht gefunden!';
Expand Down
1 change: 1 addition & 0 deletions src/Resources/contao/elements/ContentSpielortseite.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ContentSpielortseite extends ContentElement
public function generate()
{
if (TL_MODE === 'BE') {
/** @var BackendTemplate $objTemplate */
$objTemplate = new BackendTemplate('be_wildcard');

$headline = $this->headline;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ModuleMannschaftsseitenReader extends Module
public function generate()
{
if (TL_MODE === 'BE') {
/** @var \BackendTemplate|object $objTemplate */
/** @var BackendTemplate|object $objTemplate */
$objTemplate = new BackendTemplate('be_wildcard');

$objTemplate->wildcard = '### '.Utf8::strtoupper($GLOBALS['TL_LANG']['FMD']['mannschaftsseitenreader'][0]).' ###';
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/modules/ModuleSpielberichtReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ModuleSpielberichtReader extends Module
public function generate()
{
if (TL_MODE === 'BE') {
/** @var \BackendTemplate|object $objTemplate */
/** @var BackendTemplate|object $objTemplate */
$objTemplate = new BackendTemplate('be_wildcard');

$objTemplate->wildcard = '### '.Utf8::strtoupper($GLOBALS['TL_LANG']['FMD']['spielberichtreader'][0]).' ###';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class ModuleSpielortseitenReader extends Module
public function generate()
{
if (TL_MODE === 'BE') {
/** @var BackendTemplate $objTemplate */
$objTemplate = new BackendTemplate('be_wildcard');

$objTemplate->wildcard = '### '.Utf8::strtoupper($GLOBALS['TL_LANG']['FMD']['spielortseitenreader'][0]).' ###';
Expand Down

0 comments on commit aebcc4f

Please sign in to comment.