[CLEANUP] Replace count with empty in EXT:core
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / TypoScript / ExtendedTemplateService.php
index 7ddbff0..414432e 100644 (file)
@@ -1144,7 +1144,7 @@ class ExtendedTemplateService extends TemplateService {
                                        }
                                        $label = $this->getLanguageService()->sL($params['label']);
                                        $label_parts = explode(':', $label, 2);
                                        }
                                        $label = $this->getLanguageService()->sL($params['label']);
                                        $label_parts = explode(':', $label, 2);
-                                       if (count($label_parts) == 2) {
+                                       if (count($label_parts) === 2) {
                                                $head = trim($label_parts[0]);
                                                $body = trim($label_parts[1]);
                                        } else {
                                                $head = trim($label_parts[0]);
                                                $body = trim($label_parts[1]);
                                        } else {
@@ -1405,7 +1405,7 @@ class ExtendedTemplateService extends TemplateService {
                if (isset($this->objReg[$key])) {
                        $lineNum = $this->objReg[$key];
                        $parts = explode('=', $this->raw[$lineNum], 2);
                if (isset($this->objReg[$key])) {
                        $lineNum = $this->objReg[$key];
                        $parts = explode('=', $this->raw[$lineNum], 2);
-                       if (count($parts) == 2) {
+                       if (count($parts) === 2) {
                                $parts[1] = $theValue;
                        }
                        $this->raw[$lineNum] = implode($parts, '=');
                                $parts[1] = $theValue;
                        }
                        $this->raw[$lineNum] = implode($parts, '=');