[CLEANUP] Replace count with empty in multiple extensions
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / Classes / Controller / CssStyledContentController.php
index 66e5f38..e4de3b6 100644 (file)
@@ -257,7 +257,7 @@ class CssStyledContentController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlug
                        // Explode into an array:
                        $fileArray = GeneralUtility::trimExplode(',', $fileList, TRUE);
                        // If there were files to list...:
-                       if (count($fileArray)) {
+                       if (!empty($fileArray)) {
                                // Get the descriptions for the files (if any):
                                $descriptions = GeneralUtility::trimExplode(LF, $this->cObj->data['imagecaption']);
                                // Get the titles for the files (if any)
@@ -484,7 +484,7 @@ class CssStyledContentController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlug
                        return $content;
                }
                $imgs = GeneralUtility::trimExplode(',', $imgList, TRUE);
-               if (count($imgs) === 0) {
+               if (empty($imgs)) {
                        // The imgList was not empty but did only contain empty values
                        if ($restoreRegisters) {
                                $this->cObj->cObjGetSingle('RESTORE_REGISTER', array());