[CLEANUP] make TCEmain::getInlineFieldType() more understandable
authorAndreas Wolf <andreas.wolf@ikt-werk.de>
Sat, 9 Jul 2011 11:24:36 +0000 (13:24 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Sat, 9 Jul 2011 13:28:05 +0000 (15:28 +0200)
commit91d4cca9c584691e972790987d2cd387c8a22bd4
tree826c8bed8dc0105ba92113bb8ef999c61eaa08e9
parentaa98467a82bfed2089c2eb4919b998f84c76e38d
[CLEANUP] make TCEmain::getInlineFieldType() more understandable

With 933254e2e69df05b41ae1f3b026a8f4c6f8fc09d, the method was made more
complicated without an obvious need for that. This patch reverts these
change, plus moving the guard clause to the beginning with an early
return in it, thus making the structure even more obvious.

This change has been integrated into the original patch for 4.5.

Change-Id: I9e7d987158adad089880c2185467555659b1827c
Releases: 4.6
Reviewed-on: http://review.typo3.org/3186
Reviewed-by: Steffen Ritter
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
t3lib/class.t3lib_tcemain.php