Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
df_tabs
Commits
5430c003
Commit
5430c003
authored
Mar 31, 2022
by
Matthias Adrowski
Browse files
[TASK] Fix remaining php stan issue
parent
800162ba
Changes
5
Hide whitespace changes
Inline
Side-by-side
Classes/Controller/PluginController.php
View file @
5430c003
...
...
@@ -70,7 +70,7 @@ class PluginController extends AbstractPlugin {
*
* @var AbstractBaseDataProvider
*/
protected
$dataProvider
=
NULL
;
protected
$dataProvider
;
/**
* Plugin configuration
...
...
@@ -91,7 +91,7 @@ class PluginController extends AbstractPlugin {
$tsfe
=
$GLOBALS
[
'TSFE'
];
if
(
$this
->
pluginConfiguration
[
'renderer'
]
===
'TypoScript'
||
!
$this
->
pluginConfiguration
[
'renderer'
])
{
/** @var
$renderer
TypoScriptView */
/** @var TypoScriptView
$renderer
*/
$renderer
=
GeneralUtility
::
makeInstance
(
TypoScriptView
::
class
);
$renderer
->
addPluginConfiguration
(
$this
->
pluginConfiguration
,
$tabId
);
$renderer
->
injectPageRenderer
(
GeneralUtility
::
makeInstance
(
PageRenderer
::
class
));
...
...
@@ -100,7 +100,7 @@ class PluginController extends AbstractPlugin {
$records
=
$repository
->
getRecords
();
$renderer
->
addInlineJavaScriptCode
(
$records
,
$this
->
pluginConfiguration
[
'mode'
],
$tabId
);
}
elseif
(
$this
->
pluginConfiguration
[
'renderer'
]
===
'Fluid'
)
{
/** @var
$renderer FluidView
*/
/** @var
FluidView $renderer
*/
$renderer
=
GeneralUtility
::
makeInstance
(
FluidView
::
class
,
$this
->
pluginConfiguration
);
}
...
...
@@ -113,7 +113,7 @@ class PluginController extends AbstractPlugin {
* @return ConfigurationService
*/
protected
function
getConfigurationManager
()
{
/** @var $configurationManager
ConfigurationService
*/
/** @var
ConfigurationService
$configurationManager */
$configurationManager
=
GeneralUtility
::
makeInstance
(
ConfigurationService
::
class
);
$configurationManager
->
injectControllerContext
(
$this
);
...
...
@@ -126,7 +126,7 @@ class PluginController extends AbstractPlugin {
* @return TabRepository
*/
protected
function
getTabRepository
()
{
/** @var
$r
epository
TabR
epository */
/** @var
TabR
epository
$r
epository */
$repository
=
GeneralUtility
::
makeInstance
(
TabRepository
::
class
);
$repository
->
injectContentObject
(
$this
->
cObj
);
$repository
->
injectPluginConfiguration
(
$this
->
pluginConfiguration
);
...
...
Classes/DataProvider/AbstractDataBaseDataProvider.php
View file @
5430c003
...
...
@@ -62,7 +62,7 @@ abstract class AbstractDataBaseDataProvider extends AbstractBaseDataProvider {
->
from
(
$this
->
table
)
->
where
(
$queryBuilder
->
expr
()
->
eq
(
'uid'
,
$queryBuilder
->
createNamedParameter
(
$uid
,
\
PDO
::
PARAM_INT
))
)
->
execute
()
->
fetch
();
)
->
execute
()
->
fetch
Associative
();
/** @var TypoScriptFrontendController $typoscriptController */
$typoscriptController
=
$GLOBALS
[
'TSFE'
];
...
...
Classes/DataProvider/PagesDataProvider.php
View file @
5430c003
...
...
@@ -67,7 +67,7 @@ class PagesDataProvider extends AbstractDataBaseDataProvider {
}
}
$contentElements
=
$queryBuilder
->
execute
()
->
fetchAll
();
$contentElements
=
$queryBuilder
->
execute
()
->
fetchAll
Associative
();
return
\
array_column
(
$contentElements
,
'uid'
);
}
}
Classes/Domain/Repository/TabRepository.php
View file @
5430c003
...
...
@@ -43,7 +43,7 @@ class TabRepository {
/**
* @var ContentObjectRenderer
*/
protected
$contentObject
=
NULL
;
protected
$contentObject
;
/**
* Injects an instance of the content object
...
...
@@ -155,7 +155,7 @@ class TabRepository {
));
}
/** @var $tabElement
Tab
*/
/** @var
Tab
$tabElement */
$tabElement
=
GeneralUtility
::
makeInstance
(
Tab
::
class
,
htmlspecialchars
(
$title
),
$recordId
);
$tabElement
->
setLink
(
$dataProvider
->
getLinkData
(
$recordId
));
$tabElement
->
setContent
(
$dataProvider
->
getTabContent
(
$recordId
));
...
...
Classes/Hooks/PageLayoutView/PluginRenderer.php
View file @
5430c003
...
...
@@ -67,10 +67,10 @@ class PluginRenderer implements \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHo
* Adapts the given $headerContent.
* To be used in all plugin previews so the Header Contents appear similarly.
*
* @param $headerContent
* @param $row
* @param
string
$headerContent
* @param
array
$row
*/
protected
function
adaptPluginHeaderContent
(
&
$headerContent
,
$row
)
:
void
{
protected
function
adaptPluginHeaderContent
(
string
&
$headerContent
,
array
$row
):
void
{
$headerContent
=
'<h4>'
.
$this
->
getPluginNameForHeaderContent
(
(
int
)
$row
[
'pid'
],
$row
[
'list_type'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment