Skip to content
Snippets Groups Projects
Commit dda3e2f7 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Cleanup

parent dfc84004
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
final class FactoryDataProvider {
/**
* Returns a table instance based upon the given type. The additional parameters are used
* to instantiate the table instance with needed information's.
* to instantiate the table instance with needed information.
*
* @param string $type pages, tt_content ...
* @param array $pluginConfiguration
......@@ -44,7 +44,6 @@ final class FactoryDataProvider {
* @throws GenericException if no valid data provider could be created
*/
public static function getDataProvider($type, array $pluginConfiguration, ContentObjectRenderer $contentObject) {
$dataProvider = NULL;
if ($type === 'tt_content') {
$dataProvider = GeneralUtility::makeInstance(ContentDataProvider::class);
} elseif ($type === 'pages') {
......@@ -53,7 +52,7 @@ final class FactoryDataProvider {
throw new GenericException('No data provider matched your request!');
}
/** @var $dataProvider AbstractBaseDataProvider */
/** @var AbstractBaseDataProvider $dataProvider */
$dataProvider->addPluginConfiguration($pluginConfiguration);
$dataProvider->injectContentObject($contentObject);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment