mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 12:56:12 +01:00

[CLEANUP] Use the short array syntax

This commit is contained in:
Oliver Klee 2016-05-07 21:56:27 +02:00
parent b6bb92d0da
commit d0871fb5f8
11 changed files with 304 additions and 304 deletions

View file

@ -1,104 +1,104 @@
<?php
defined('TYPO3_MODE') or die('Access denied.');
$GLOBALS['TCA']['tx_tea_domain_model_addition'] = array(
$GLOBALS['TCA']['tx_tea_domain_model_addition'] = [
'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_addition']['ctrl'],
'interface' => array(
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title',
),
'types' => array(
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'),
),
'palettes' => array(
'1' => array('showitem' => ''),
),
'columns' => array(
'sys_language_uid' => array(
],
'types' => [
'1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
],
'palettes' => [
'1' => ['showitem' => ''],
],
'columns' => [
'sys_language_uid' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array(
'config' => [
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array(
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
),
),
),
'l10n_parent' => array(
'items' => [
['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0],
],
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array(
'config' => [
'type' => 'select',
'items' => array(
array('', 0),
),
'items' => [
['', 0],
],
'foreign_table' => 'tx_tea_domain_model_addition',
'foreign_table_where' => 'AND tx_tea_domain_model_addition.pid=###CURRENT_PID### AND tx_tea_domain_model_addition.sys_language_uid IN (-1,0)',
),
),
'l10n_diffsource' => array(
'config' => array(
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough',
),
),
't3ver_label' => array(
],
],
't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => array(
'config' => [
'type' => 'input',
'size' => 30,
'max' => 255,
)
),
'hidden' => array(
]
],
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array(
'config' => [
'type' => 'check',
),
),
'starttime' => array(
],
],
'starttime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => array(
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => array(
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
),
),
),
'endtime' => array(
],
],
],
'endtime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => array(
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => array(
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
),
),
),
'title' => array(
],
],
],
'title' => [
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_addition.title',
'config' => array(
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim,required',
),
),
),
);
],
],
],
];

View file

@ -1,119 +1,119 @@
<?php
defined('TYPO3_MODE') or die('Access denied.');
$GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = array(
$GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_teabeverage']['ctrl'],
'interface' => array(
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, size, type, additions, testimonials',
),
'types' => array(
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, size, type, additions, testimonials,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'),
),
'palettes' => array(
'1' => array('showitem' => ''),
),
'columns' => array(
'sys_language_uid' => array(
],
'types' => [
'1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, size, type, additions, testimonials,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
],
'palettes' => [
'1' => ['showitem' => ''],
],
'columns' => [
'sys_language_uid' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array(
'config' => [
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array(
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
),
),
),
'l10n_parent' => array(
'items' => [
['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0],
],
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array(
'config' => [
'type' => 'select',
'items' => array(
array('', 0),
),
'items' => [
['', 0],
],
'foreign_table' => 'tx_tea_domain_model_teabeverage',
'foreign_table_where' => 'AND tx_tea_domain_model_teabeverage.pid=###CURRENT_PID### AND tx_tea_domain_model_teabeverage.sys_language_uid IN (-1,0)',
),
),
'l10n_diffsource' => array(
'config' => array(
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough',
),
),
't3ver_label' => array(
],
],
't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => array(
'config' => [
'type' => 'input',
'size' => 30,
'max' => 255,
)
),
'hidden' => array(
]
],
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array(
'config' => [
'type' => 'check',
),
),
'starttime' => array(
],
],
'starttime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => array(
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => array(
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
),
),
),
'endtime' => array(
],
],
],
'endtime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => array(
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => array(
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
),
),
),
'size' => array(
],
],
],
'size' => [
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.size',
'config' => array(
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'double2',
),
),
'type' => array(
],
],
'type' => [
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.type',
'config' => array(
'config' => [
'type' => 'select',
'foreign_table' => 'tx_tea_domain_model_teatype',
'minitems' => 0,
'maxitems' => 1,
),
),
'additions' => array(
],
],
'additions' => [
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.additions',
'config' => array(
'config' => [
'type' => 'select',
'foreign_table' => 'tx_tea_domain_model_addition',
'MM' => 'tx_tea_teabeverage_addition_mm',
@ -121,47 +121,47 @@ $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = array(
'autoSizeMax' => 30,
'maxitems' => 9999,
'multiple' => 0,
'wizards' => array(
'wizards' => [
'_PADDING' => 1,
'_VERTICAL' => 1,
'edit' => array(
'edit' => [
'type' => 'popup',
'title' => 'Edit',
'script' => 'wizard_edit.php',
'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1,
'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
),
'add' => array(
],
'add' => [
'type' => 'script',
'title' => 'Create new',
'icon' => 'add.gif',
'params' => array(
'params' => [
'table' => 'tx_tea_domain_model_addition',
'pid' => '###CURRENT_PID###',
'setValue' => 'prepend'
),
],
'script' => 'wizard_add.php',
),
),
),
),
'testimonials' => array(
],
],
],
],
'testimonials' => [
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.testimonials',
'config' => array(
'config' => [
'type' => 'inline',
'foreign_table' => 'tx_tea_domain_model_testimonial',
'foreign_field' => 'teabeverage',
'maxitems' => 9999,
'appearance' => array(
'appearance' => [
'collapseAll' => 0,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1,
),
),
),
),
);
],
],
],
],
];

View file

@ -1,112 +1,112 @@
<?php
defined('TYPO3_MODE') or die('Access denied.');
$GLOBALS['TCA']['tx_tea_domain_model_teatype'] = array(
$GLOBALS['TCA']['tx_tea_domain_model_teatype'] = [
'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_teatype']['ctrl'],
'interface' => array(
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, caffeinated',
),
'types' => array(
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, caffeinated,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'),
),
'palettes' => array(
'1' => array('showitem' => ''),
),
'columns' => array(
'sys_language_uid' => array(
],
'types' => [
'1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, caffeinated,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
],
'palettes' => [
'1' => ['showitem' => ''],
],
'columns' => [
'sys_language_uid' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array(
'config' => [
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array(
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
),
),
),
'l10n_parent' => array(
'items' => [
['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0],
],
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array(
'config' => [
'type' => 'select',
'items' => array(
array('', 0),
),
'items' => [
['', 0],
],
'foreign_table' => 'tx_tea_domain_model_teatype',
'foreign_table_where' => 'AND tx_tea_domain_model_teatype.pid=###CURRENT_PID### AND tx_tea_domain_model_teatype.sys_language_uid IN (-1,0)',
),
),
'l10n_diffsource' => array(
'config' => array(
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough',
),
),
't3ver_label' => array(
],
],
't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => array(
'config' => [
'type' => 'input',
'size' => 30,
'max' => 255,
)
),
'hidden' => array(
]
],
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array(
'config' => [
'type' => 'check',
),
),
'starttime' => array(
],
],
'starttime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => array(
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => array(
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
),
),
),
'endtime' => array(
],
],
],
'endtime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => array(
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => array(
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
),
),
),
'title' => array(
],
],
],
'title' => [
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teatype.title',
'config' => array(
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim,required',
),
),
'caffeinated' => array(
],
],
'caffeinated' => [
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teatype.caffeinated',
'config' => array(
'config' => [
'type' => 'check',
'default' => 0,
),
),
),
);
],
],
],
];

View file

@ -1,131 +1,131 @@
<?php
defined('TYPO3_MODE') or die('Access denied.');
$GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = array(
$GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = [
'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_testimonial']['ctrl'],
'interface' => array(
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date_of_posting, number_of_consumed_cups, text',
),
'types' => array(
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, date_of_posting, number_of_consumed_cups, text,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'),
),
'palettes' => array(
'1' => array('showitem' => ''),
),
'columns' => array(
'sys_language_uid' => array(
],
'types' => [
'1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, date_of_posting, number_of_consumed_cups, text,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
],
'palettes' => [
'1' => ['showitem' => ''],
],
'columns' => [
'sys_language_uid' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array(
'config' => [
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array(
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
),
),
),
'l10n_parent' => array(
'items' => [
['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0],
],
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array(
'config' => [
'type' => 'select',
'items' => array(
array('', 0),
),
'items' => [
['', 0],
],
'foreign_table' => 'tx_tea_domain_model_testimonial',
'foreign_table_where' => 'AND tx_tea_domain_model_testimonial.pid=###CURRENT_PID### AND tx_tea_domain_model_testimonial.sys_language_uid IN (-1,0)',
),
),
'l10n_diffsource' => array(
'config' => array(
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough',
),
),
't3ver_label' => array(
],
],
't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => array(
'config' => [
'type' => 'input',
'size' => 30,
'max' => 255,
)
),
'hidden' => array(
]
],
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array(
'config' => [
'type' => 'check',
),
),
'starttime' => array(
],
],
'starttime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => array(
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => array(
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
),
),
),
'endtime' => array(
],
],
],
'endtime' => [
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => array(
'config' => [
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
'range' => array(
'range' => [
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
),
),
),
'date_of_posting' => array(
],
],
],
'date_of_posting' => [
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.date_of_posting',
'config' => array(
'config' => [
'dbType' => 'datetime',
'type' => 'input',
'size' => 12,
'eval' => 'datetime',
'checkbox' => 0,
'default' => '0000-00-00 00:00:00',
),
),
'number_of_consumed_cups' => array(
],
],
'number_of_consumed_cups' => [
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.number_of_consumed_cups',
'config' => array(
'config' => [
'type' => 'input',
'size' => 4,
'eval' => 'int',
),
),
'text' => array(
],
],
'text' => [
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.text',
'config' => array(
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 15,
'eval' => 'trim',
),
),
'teabeverage' => array(
'config' => array(
],
],
'teabeverage' => [
'config' => [
'type' => 'passthrough',
),
),
),
);
],
],
],
];

View file

@ -36,7 +36,7 @@ class TeaBeverageRepositoryTest extends \Tx_Phpunit_Database_TestCase
if (!$this->createDatabase()) {
self::markTestSkipped('Test database could not be created.');
}
$this->importExtensions(array('tea'));
$this->importExtensions(['tea']);
/** @var ObjectManager $objectManager */
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);

View file

@ -93,7 +93,7 @@ class TestimonialRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
{
$text = 'A very good Early Grey!';
$uid = $this->testingFramework->createRecord(
'tx_tea_domain_model_testimonial', array('text' => $text)
'tx_tea_domain_model_testimonial', ['text' => $text]
);
/** @var Testimonial $model */

View file

@ -56,7 +56,7 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
*/
public function concatenateWithEmptyTargetFileNameThrowsException()
{
$this->subject->concatenate('', array('foo.txt'));
$this->subject->concatenate('', ['foo.txt']);
}
/**
@ -64,7 +64,7 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
*/
public function concatenateWithNoSourceFilesCreatesEmptyTargetFile()
{
$this->subject->concatenate($this->targetFilePath, array());
$this->subject->concatenate($this->targetFilePath, []);
self::assertSame(
'',
@ -82,7 +82,7 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
// Just calling vfsStream::url does not create the file yet. We need to write into it to create it.
file_put_contents($sourceFileName, '');
$this->subject->concatenate($this->targetFilePath, array($sourceFileName));
$this->subject->concatenate($this->targetFilePath, [$sourceFileName]);
self::assertSame(
'',
@ -100,7 +100,7 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
$sourceFileName = vfsStream::url('home/source.txt');
vfsStream::newFile('source.txt')->at($this->root)->setContent($contents);
$this->subject->concatenate($this->targetFilePath, array($sourceFileName));
$this->subject->concatenate($this->targetFilePath, [$sourceFileName]);
self::assertSame(
$contents,
@ -122,7 +122,7 @@ class FileUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
$this->subject->concatenate(
$this->targetFilePath,
array($sourceFileName1, $sourceFileName2)
[$sourceFileName1, $sourceFileName2]
);
self::assertSame(

View file

@ -48,7 +48,7 @@ class TestimonialControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
$this->view = $this->getMock(ViewInterface::class);
$this->inject($this->subject, 'view', $this->view);
$this->testimonialRepository = $this->getMock(TestimonialRepository::class, array(), array(), '', false);
$this->testimonialRepository = $this->getMock(TestimonialRepository::class, [], [], '', false);
$this->inject($this->subject, 'testimonialRepository', $this->testimonialRepository);
}

View file

@ -10,7 +10,7 @@
* "version" and "dependencies" must not be touched!
***************************************************************/
$EM_CONF[$_EXTKEY] = array(
$EM_CONF[$_EXTKEY] = [
'title' => 'Tea example',
'description' => 'This extension serves as an example on how to unit-test different data types and relation types in TYPO3 extensions.',
'category' => 'plugin',
@ -28,17 +28,17 @@ $EM_CONF[$_EXTKEY] = array(
'clearCacheOnLoad' => 0,
'lockType' => '',
'version' => '0.0.1',
'constraints' => array(
'depends' => array(
'constraints' => [
'depends' => [
'php' => '5.5.0-7.0.99',
'typo3' => '6.2.0-7.0.99',
'extbase' => '6.2.0-7.0.99',
'fluid' => '6.2.0-7.0.99',
'phpunit' => '4.0.0-5.9.99',
),
'conflicts' => array(
),
'suggests' => array(
),
),
);
],
'conflicts' => [
],
'suggests' => [
],
],
];

View file

@ -5,11 +5,11 @@ defined('TYPO3_MODE') or die('Access denied.');
'OliverKlee.' . $_EXTKEY,
'Tea',
// all actions
array(
[
'Testimonial' => 'index',
),
],
// non-cacheable actions
array(
[
'Testimonial' => 'index',
)
]
);

View file

@ -11,8 +11,8 @@ defined('TYPO3_MODE') or die('Access denied.');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_teabeverage', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_teabeverage.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_teabeverage');
$GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = array(
'ctrl' => array(
$GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
'ctrl' => [
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage',
'label' => 'size',
'tstamp' => 'tstamp',
@ -29,21 +29,21 @@ $GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = array(
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'enablecolumns' => [
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
],
'searchFields' => 'size,type,additions,testimonials,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/TeaBeverage.php',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_teabeverage.gif'
),
);
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_teatype', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_teatype.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_teatype');
$GLOBALS['TCA']['tx_tea_domain_model_teatype'] = array(
'ctrl' => array(
$GLOBALS['TCA']['tx_tea_domain_model_teatype'] = [
'ctrl' => [
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teatype',
'label' => 'title',
'tstamp' => 'tstamp',
@ -60,21 +60,21 @@ $GLOBALS['TCA']['tx_tea_domain_model_teatype'] = array(
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'enablecolumns' => [
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
],
'searchFields' => 'title,caffeinated,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/TeaType.php',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_teatype.gif'
),
);
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_addition', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_addition.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_addition');
$GLOBALS['TCA']['tx_tea_domain_model_addition'] = array(
'ctrl' => array(
$GLOBALS['TCA']['tx_tea_domain_model_addition'] = [
'ctrl' => [
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_addition',
'label' => 'title',
'tstamp' => 'tstamp',
@ -91,21 +91,21 @@ $GLOBALS['TCA']['tx_tea_domain_model_addition'] = array(
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'enablecolumns' => [
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
],
'searchFields' => 'title,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Addition.php',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_addition.gif'
),
);
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_testimonial', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_testimonial.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_testimonial');
$GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = array(
'ctrl' => array(
$GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = [
'ctrl' => [
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial',
'label' => 'date_of_posting',
'tstamp' => 'tstamp',
@ -122,13 +122,13 @@ $GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = array(
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'enablecolumns' => [
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
],
'searchFields' => 'date_of_posting,number_of_consumed_cups,text,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Testimonial.php',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_testimonial.gif'
),
);
],
];