Code Duplication    Length = 9-9 lines in 2 locations

typo3/sysext/core/Classes/Resource/Collection/FolderBasedFileCollection.php 1 location

@@ 114-122 (lines=9) @@
111
        $this->title = $array['title'];
112
        $this->description = $array['description'];
113
        $this->recursive = (bool)$array['recursive'];
114
        if (!empty($array['folder']) && !empty($array['storage'])) {
115
            /** @var $storageRepository StorageRepository */
116
            $storageRepository = GeneralUtility::makeInstance(StorageRepository::class);
117
            /** @var $storage \TYPO3\CMS\Core\Resource\ResourceStorage */
118
            $storage = $storageRepository->findByUid($array['storage']);
119
            if ($storage) {
120
                $this->folder = $storage->getFolder($array['folder']);
121
            }
122
        }
123
    }
124
}
125

typo3/sysext/frontend/Classes/ContentObject/Menu/ImageMenuContentObject.php 1 location

@@ 148-156 (lines=9) @@
145
                                }
146
                                // Checks if disabled is set...
147
                                $setObjFlag = 1;
148
                                if ($theValArr['if.']) {
149
                                    /** @var ContentObjectRenderer $cObj */
150
                                    $cObj = GeneralUtility::makeInstance(ContentObjectRenderer::class);
151
                                    $cObj->start($cObjData, 'pages');
152
                                    if (!empty($theValArr['if.']) && !$cObj->checkIf($theValArr['if.'])) {
153
                                        $setObjFlag = 0;
154
                                    }
155
                                    unset($theValArr['if.']);
156
                                }
157
                                // Set the object!
158
                                if ($setObjFlag) {
159
                                    $conf[$gifObjCount] = $theValue;