Commit c3082977 authored by Markus Sommer's avatar Markus Sommer

[CLEANUP] CGL fixer

parent 76a86b52
......@@ -13,8 +13,6 @@ class CTypeSelectView
* Remove not allowed CE from list (only for multi column childrens)
*
* @param array $parameters
*
* @return void
*/
public function cTypeItemProcFunc(array &$parameters)
{
......
......@@ -15,7 +15,6 @@ class ResolveFileReferenceViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\Ab
$this->registerArgument('row', 'array', 'database row', true);
}
/**
* Resizes the image (if required) and returns its path. If the image was not resized, the path will be equal to $src
*
......
......@@ -8,7 +8,6 @@ use TYPO3\CMS\Frontend\ContentObject\DataProcessorInterface;
/**
* Class BootstrapClassProcessor
* @package T3o\T3olayout\DataProcessing
*/
class BootstrapClassProcessor implements DataProcessorInterface
{
......
......@@ -54,7 +54,6 @@ use TYPO3\CMS\Frontend\ContentObject\DataProcessorInterface;
* }
* }
* }
*
*/
class MenuProcessor implements DataProcessorInterface
{
......@@ -285,7 +284,6 @@ class MenuProcessor implements DataProcessorInterface
}
/**
* @return void
*/
public function prepareLevelConfiguration()
{
......@@ -300,7 +298,6 @@ class MenuProcessor implements DataProcessorInterface
}
/**
* @return void
*/
public function prepareLevelLanguageConfiguration()
{
......@@ -331,7 +328,6 @@ class MenuProcessor implements DataProcessorInterface
}
/**
* @return void
*/
public function buildConfiguration()
{
......@@ -479,7 +475,6 @@ class MenuProcessor implements DataProcessorInterface
*
* @param array $menuItem
* @param array $conf
* @return void
*/
public function replacePlaceholderInRenderedMenuItem($menuItem, $conf)
{
......
......@@ -26,7 +26,6 @@ namespace T3o\T3olayout\DataProcessing;
*/
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\DatabaseConnection;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\ArrayUtility;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
......
......@@ -39,8 +39,6 @@ class MultiContentPreviewRenderer extends AbstractDatabaseRecordList implements
* @param string $headerContent Header content
* @param string $itemContent Item content
* @param array $row Record row of tt_content
*
* @return void
*/
public function preProcess(
PageLayoutView &$parentObject,
......@@ -197,7 +195,7 @@ class MultiContentPreviewRenderer extends AbstractDatabaseRecordList implements
$contentRecordsPerColumn = [];
while ($record = $result->fetch()) {
// $columnValue = $record['multi_content_column'];
// $columnValue = $record['multi_content_column'];
$contentRecordsPerColumn[] = $record;
}
......
......@@ -13,10 +13,9 @@ namespace T3o\T3olayout\ViewHelpers;
*
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
/**
* Class GravatarViewHelper
......@@ -25,7 +24,6 @@ class GravatarViewHelper extends AbstractViewHelper
{
use CompileWithRenderStatic;
/**
* Initialize arguments.
*
......
<?php
$t3o_page_settings = array(
't3o_metaicon' => array(
$t3o_page_settings = [
't3o_metaicon' => [
'exclude' => 0,
'label' => 'Metanavigation Icon',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
't3o_metaicon',
array(
[
'collapseAll' => 1,
'maxitems' => 10,
'foreign_selector_fieldTcaOverride' => array(
'config' => array(
'appearance' => array(
'foreign_selector_fieldTcaOverride' => [
'config' => [
'appearance' => [
'elementBrowserType' => 'file',
'elementBrowserAllowed' => 'svg',
),
),
),
)
],
],
],
]
),
),
't3o_navicon' => array(
],
't3o_navicon' => [
'exclude' => 0,
'label' => 'Navigation Icon',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
't3o_navicon',
array(
[
'collapseAll' => 1,
'maxitems' => 10,
'foreign_selector_fieldTcaOverride' => array(
'config' => array(
'appearance' => array(
'foreign_selector_fieldTcaOverride' => [
'config' => [
'appearance' => [
'elementBrowserType' => 'file',
'elementBrowserAllowed' => 'svg',
),
),
),
)
],
],
],
]
),
),
't3o_nav_content_image' => array(
],
't3o_nav_content_image' => [
'exclude' => 0,
'label' => 'Navigation Content Image',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
't3o_nav_content_image',
array(
[
'collapseAll' => 1,
'maxitems' => 10,
'foreign_selector_fieldTcaOverride' => array(
'config' => array(
'appearance' => array(
'foreign_selector_fieldTcaOverride' => [
'config' => [
'appearance' => [
'elementBrowserType' => 'file',
'elementBrowserAllowed' => 'jpg,png',
),
),
),
)
],
],
],
]
),
),
't3o_nav_content_header' => array(
],
't3o_nav_content_header' => [
'l10n_mode' => 'prefixLangTitle',
'l10n_cat' => 'text',
'label' => 'Navigation Content Header',
'config' => $GLOBALS['TCA']['tt_content']['columns']['header']['config'],
),
],
't3o_nav_content_bodytext' => [
'l10n_mode' => 'prefixLangTitle',
'l10n_cat' => 'text',
......@@ -75,19 +75,19 @@ $t3o_page_settings = array(
'enableRichtext' => true
]
],
't3o_nav_content_link' => array(
't3o_nav_content_link' => [
'l10n_mode' => 'prefixLangTitle',
'l10n_cat' => 'text',
'label' => 'Button Link',
'config' => $GLOBALS['TCA']['tt_content']['columns']['header_link']['config'],
),
't3o_nav_content_linktitle' => array(
],
't3o_nav_content_linktitle' => [
'l10n_mode' => 'prefixLangTitle',
'l10n_cat' => 'text',
'label' => 'Button Link Label',
'config' => $GLOBALS['TCA']['tt_content']['columns']['header']['config'],
),
);
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $t3o_page_settings);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('pages', 'navcontent', '
......@@ -102,5 +102,3 @@ $t3o_page_settings = array(
'--div--;Navigation Settings,t3o_navicon,
--palette--;Navigation Content;navcontent,
');
......@@ -103,8 +103,6 @@ $global_fields = [
]
],
'multi_content' => [
'exclude' => true,
'label' => 'Multi Column',
......@@ -124,8 +122,6 @@ $global_fields = [
],
],
'multi_content_parent' => [
'exclude' => true,
'label' => 'multi_content_parent',
......
......@@ -6,16 +6,16 @@
/***************
* Register fields
*/
$ce_accordion = array(
'tx_accordion_item' => array(
$ce_accordion = [
'tx_accordion_item' => [
'exclude' => 0,
'label' => 'Add Accordion Item',
'config' => array(
'config' => [
'type' => 'inline',
'foreign_table' => 'tx_accordion_item',
'foreign_field' => 'tt_content',
'maxitems' => 20,
'appearance' => array(
'appearance' => [
'collapseAll' => true,
'useSortable' => true,
'showSynchronizationLink' => false,
......@@ -23,29 +23,28 @@ $ce_accordion = array(
'showPossibleLocalizationRecords' => false,
'showRemovedLocalizationRecords' => false,
'expandSingle' => true,
'enabledControls' => array(
'enabledControls' => [
'localize' => true,
),
),
'behaviour' => array(
],
],
'behaviour' => [
'localizationMode' => 'select',
'mode' => 'select',
'localizeChildrenAtParentLocalization' => true,
),
),
),
'tx_accordion_card' => array(
],
],
],
'tx_accordion_card' => [
'label' => 'Card',
'config' => array(
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
'items' => [
['Use Card Layout', 'ce-accordion--card'],
],
)
),
);
]
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $ce_accordion);
......
......@@ -6,7 +6,7 @@
/***************
* Register fields
*/
$ce_fluidimage = array();
$ce_fluidimage = [];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $ce_fluidimage);
......@@ -56,15 +56,15 @@ $GLOBALS['TCA']['tt_content']['types']['ce_fluidimage'] = array_replace_recursiv
--div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category,categories
',
'columnsOverrides' => [
'image' => array(
'image' => [
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'image',
array(
[
'collapseAll' => 1,
'maxitems' => 1,
)
]
),
),
],
],
]
);
......@@ -6,7 +6,7 @@
/***************
* Register fields
*/
$ce_jumplinkbox = array();
$ce_jumplinkbox = [];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $ce_jumplinkbox);
......
......@@ -6,16 +6,16 @@
/***************
* Register fields
*/
$ce_slider = array(
'tx_slider_item' => array(
$ce_slider = [
'tx_slider_item' => [
'exclude' => 0,
'label' => 'Add Slider Item',
'config' => array(
'config' => [
'type' => 'inline',
'foreign_table' => 'tx_slider_item',
'foreign_field' => 'tt_content',
'maxitems' => 5,
'appearance' => array(
'appearance' => [
'collapseAll' => true,
'useSortable' => true,
'showSynchronizationLink' => false,
......@@ -23,19 +23,18 @@ $ce_slider = array(
'showPossibleLocalizationRecords' => false,
'showRemovedLocalizationRecords' => false,
'expandSingle' => true,
'enabledControls' => array(
'enabledControls' => [
'localize' => true,
),
),
'behaviour' => array(
],
],
'behaviour' => [
'localizationMode' => 'select',
'mode' => 'select',
'localizeChildrenAtParentLocalization' => true,
),
),
),
);
],
],
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $ce_slider);
......
......@@ -6,19 +6,19 @@
/***************
* Register fields
*/
$ce_teaserbox = array(
't3o_teaserbox_useimage' => array(
$ce_teaserbox = [
't3o_teaserbox_useimage' => [
'exclude' => 1,
'onChange' => 'reload',
'label' => 'Use Image above Teaser',
'config' => array(
'config' => [
'type' => 'check',
'items' => array(
array('Enable', '1'),
),
)
),
);
'items' => [
['Enable', '1'],
],
]
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $ce_teaserbox);
......@@ -71,17 +71,17 @@ $GLOBALS['TCA']['tt_content']['types']['ce_teaserbox'] = array_replace_recursive
',
'columnsOverrides' => [
'bodytext' => ['config' => ['enableRichtext' => true]],
'image' => array(
'image' => [
'displayCond' => 'FIELD:t3o_teaserbox_useimage:=:1',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'image',
array(
[
'collapseAll' => 1,
'maxitems' => 1,
'minitems' => 1,
)
]
),
),
],
],
]
);
<?php
$ce_textmedia = array(
'textmedia_colsize' => array(
$ce_textmedia = [
'textmedia_colsize' => [
'exclude' => 0,
'label' => 'Colum Size',
'config' => array(
'config' => [
'type' => 'select',
'items' => array(
array('50/50', '6'),
array('70/30', '8'),
array('30/70', '4'),
array('80/20', '9'),
array('20/80', '3'),
)
),
),
);
'items' => [
['50/50', '6'],
['70/30', '8'],
['30/70', '4'],
['80/20', '9'],
['20/80', '3'],
]
],
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $ce_textmedia);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('tt_content', 'gallerySettings', 'textmedia_colsize');
......@@ -6,26 +6,26 @@
/***************
* Register fields
*/
$ce_textwithteaser = array(
't3o_textwithteaser_position' => array(
$ce_textwithteaser = [
't3o_textwithteaser_position' => [
'exclude' => 0,
'label' => 'Position',
'config' => array(
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array(
array(
'items' => [
[
'Right',
'right'
),
array(
],
[
'Left',
'left'
),
)
),
),
);
],
]
],
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $ce_textwithteaser);
......
......@@ -11,6 +11,7 @@ return [
'delete' => 'deleted',
'versioningWS' => true,
'origUid' => 't3_origuid',
'hideTable' => true,
'hideAtCopy' => true,
'prependAtCopy' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
'transOrigPointerField' => 'l10n_parent',
......@@ -153,11 +154,11 @@ return [
'eval' => 'trim,required'
],
],
'bodytext' => array(
'bodytext' => [
'l10n_mode' => 'prefixLangTitle',
'l10n_cat' => 'text',
'label' => 'Collapsible Text',
'config' => $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config'],
),
],
],
];
\ No newline at end of file
];
......@@ -11,6 +11,7 @@ return [
'delete' => 'deleted',
'versioningWS' => true,
'origUid' => 't3_origuid',
'hideTable' => true,
'hideAtCopy' => true,
'prependAtCopy' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
'transOrigPointerField' => 'l10n_parent',
......@@ -171,12 +172,12 @@ return [
'eval' => 'trim'
],
],
'buttonlink' => array(
'buttonlink' => [
'l10n_mode' => 'prefixLangTitle',
'l10n_cat' => 'text',
'label' => 'Button Link',
'config' => $GLOBALS['TCA']['tt_content']['columns']['header_link']['config'],
),
],
'media' => [
'exclude' => 0,
'label' => 'Background Image',
......@@ -205,4 +206,4 @@ return [
),
],
],
];
\ No newline at end of file
];
......@@ -2,23 +2,23 @@
/************************************************************************
* Extension Manager/Repository config file for ext "t3olayout".
************************************************************************/
$EM_CONF[$_EXTKEY] = array(
$EM_CONF[$_EXTKEY] = [
'title' => 't3olayout',
'description' => 'Base extension for project "t3olayout"',
'category' => 'extension',
'constraints' => array(
'depends' => array(
'constraints' => [
'depends' => [
'typo3' => '7.6.0-8.99.99',
'fluid_styled_content' => '7.6.0-8.99.99'