[TASK] Harmonize coding style of if constructs in sysext "linkvalidator"
authorRoland Waldner <most.wanted@gmx.at>
Thu, 7 Jun 2012 18:35:27 +0000 (20:35 +0200)
committerRoland Waldner <most.wanted@gmx.at>
Thu, 7 Jun 2012 18:35:27 +0000 (20:35 +0200)
Change-Id: I7041be89d9b91f06746bb832b63933204c3608b2
Resolves: #37822
Releases: 6.0

typo3/sysext/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_external.php
typo3/sysext/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_internal.php
typo3/sysext/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_linkhandler.php

index bfeafc8..cee2ad0 100644 (file)
@@ -69,7 +69,7 @@ class tx_linkvalidator_linktype_External extends tx_linkvalidator_linktype_Abstr
 
                if (isset($this->urlReports[$url])) {
                        if (!$this->urlReports[$url]) {
-                               if(is_array($this->urlErrorParams[$url])) {
+                               if (is_array($this->urlErrorParams[$url])) {
                                        $this->setErrorParams($this->urlErrorParams[$url]);
                                }
                        }
index e004677..27fbaa7 100644 (file)
@@ -289,7 +289,7 @@ class tx_linkvalidator_linktype_Internal extends tx_linkvalidator_linktype_Abstr
                if (count($rootLine) > 0) {
                                $protocol = t3lib_div::getIndpEnv('TYPO3_SSL') ? 'https://' : 'http://';
                                $domainRecord = t3lib_BEfunc::firstDomainRecord($rootLine);
-                               if(!empty($domainRecord)) {
+                               if (!empty($domainRecord)) {
                                        $domain = $protocol . $domainRecord;
                                }
                }
index 313efc3..abaa92a 100644 (file)
@@ -83,7 +83,7 @@ class tx_linkvalidator_linktype_LinkHandler extends tx_linkvalidator_linktype_Ab
                        }
                }
 
-               if(!$response) {
+               if (!$response) {
                        $this->setErrorParams();
                }