[TASK] Add phpdoc @var for calls to makeInstance() 15/29815/3
authorRoland Waldner <mostwantedtypo3@gmail.com>
Sat, 3 May 2014 14:30:46 +0000 (16:30 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 3 May 2014 16:47:34 +0000 (18:47 +0200)
Resolves: #58459
Related: #50248
Releases: 6.2
Change-Id: I3b72ecd65dff934a4eff10be7cb3c46ded948a34
Reviewed-on: https://review.typo3.org/29815
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extbase/Classes/Core/Bootstrap.php
typo3/sysext/fluid/Classes/Core/Widget/Bootstrap.php
typo3/sysext/fluid/Classes/View/StandaloneView.php
typo3/sysext/fluid/Classes/ViewHelpers/CObjectViewHelper.php
typo3/sysext/form/Classes/Domain/Model/Additional/AbstractAdditionalElement.php
typo3/sysext/form/Classes/Domain/Model/Attribute/AbstractAttribute.php
typo3/sysext/frontend/Classes/ContentObject/Menu/ImageMenuContentObject.php
typo3/sysext/frontend/Classes/ContentObject/SearchResultContentObject.php
typo3/sysext/frontend/Classes/Imaging/GifBuilder.php
typo3/sysext/indexed_search/Classes/Controller/SearchController.php
typo3/sysext/indexed_search/Classes/Hook/MysqlFulltextIndexHook.php

index 48e2f46..11da0ff 100644 (file)
@@ -123,6 +123,7 @@ class Bootstrap implements \TYPO3\CMS\Extbase\Core\BootstrapInterface {
         */
        public function initializeConfiguration($configuration) {
                $this->configurationManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManagerInterface');
+               /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject */
                $contentObject = isset($this->cObj) ? $this->cObj : \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                $this->configurationManager->setContentObject($contentObject);
                $this->configurationManager->setConfiguration($configuration);
index 4e2ea4b..7fc419a 100644 (file)
@@ -71,6 +71,7 @@ class Bootstrap {
         */
        public function initializeConfiguration($configuration) {
                $this->configurationManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManagerInterface');
+               /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject */
                $contentObject = isset($this->cObj) ? $this->cObj : \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                $this->configurationManager->setContentObject($contentObject);
                $this->configurationManager->setConfiguration($configuration);
index ca8a087..04fd2a1 100644 (file)
@@ -70,6 +70,7 @@ class StandaloneView extends \TYPO3\CMS\Fluid\View\AbstractTemplateView {
                $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
                $configurationManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManagerInterface');
                if ($contentObject === NULL) {
+                       /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject */
                        $contentObject = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                }
                $configurationManager->setContentObject($contentObject);
index b8e707e..703ede6 100644 (file)
@@ -97,6 +97,7 @@ class CObjectViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHel
                        $currentValue = (string) $data;
                        $data = array($data);
                }
+               /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject */
                $contentObject = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                $contentObject->start($data, $table);
                if ($currentValue !== NULL) {
index b124af6..f6d6519 100644 (file)
@@ -66,6 +66,7 @@ abstract class AbstractAdditionalElement {
         * @param mixed $value Value of the object
         */
        public function __construct($type, $value) {
+               /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer localCobj */
                $this->localCobj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                $this->value = $value;
                $this->type = $type;
index 24dad6d..8724e92 100644 (file)
@@ -59,6 +59,7 @@ abstract class AbstractAttribute {
         * @return void
         */
        public function __construct($value, $elementId) {
+               /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer localCobj */
                $this->localCobj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                $this->setValue($value);
                $this->elementId = (int)$elementId;
index 075365a..1c3a960 100644 (file)
@@ -159,6 +159,7 @@ class ImageMenuContentObject extends \TYPO3\CMS\Frontend\ContentObject\Menu\Abst
                                                                // Checks if disabled is set...
                                                                $setObjFlag = 1;
                                                                if ($theValArr['if.']) {
+                                                                       /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj */
                                                                        $cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                                                                        $cObj->start($cObjData, 'pages');
                                                                        if (!$cObj->checkIf($theValArr['if.'])) {
index f162a05..7fef17a 100644 (file)
@@ -267,6 +267,7 @@ class SearchResultContentObject extends \TYPO3\CMS\Frontend\ContentObject\Abstra
                                $result = str_replace('###PREV###', $prev, $result);
                                // Searching result
                                $theValue = $this->cObj->cObjGetSingle($conf['resultObj'], $conf['resultObj.'], 'resultObj');
+                               /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj */
                                $cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                                $cObj->setParent($this->cObj->data, $this->cObj->currentRecord);
                                $renderCode = '';
index d22f77e..5afcff3 100644 (file)
@@ -667,6 +667,7 @@ class GifBuilder extends \TYPO3\CMS\Core\Imaging\GraphicalFunctions {
                if (!GeneralUtility::inList($this->imageFileExt, $fileArray['ext'])) {
                        $fileArray['ext'] = $this->gifExtension;
                }
+               /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj */
                $cObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                $cObj->start($this->data);
                return $cObj->getImgResource($file, $fileArray);
index a820a47..34b014a 100644 (file)
@@ -501,6 +501,7 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle
                if ((string) $row['item_type'] === '0') {
                        // If TypoScript is used to render the flag:
                        if (is_array($this->settings['flagRendering.'])) {
+                               /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj */
                                $cObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                                $cObj->setCurrentVal($row['sys_language_uid']);
                                $output = $cObj->cObjGetSingle($this->settings['flagRendering'], $this->settings['flagRendering.']);
index 2752142..a5f34e6 100644 (file)
@@ -173,8 +173,8 @@ class MysqlFulltextIndexHook {
                        $siteIdNumbers = \TYPO3\CMS\Core\Utility\GeneralUtility::intExplode(',', $this->pObj->wholeSiteIdList);
                        $idList = array();
                        foreach ($siteIdNumbers as $rootId) {
-                               $cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                                /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj */
+                               $cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
                                $idList[] = $cObj->getTreeList( -1 * $rootId, 9999);
                        }
                        $pageWhere = ' ISEC.page_id IN (' . implode(',', $idList) . ')';