Frontend editing for TYPO3
Find a file
Markus Klein 9449d24ef8 [CLEANUP] Replace strlen() with === for zero length check
It is faster to compare a string with === '' to find out if it's empty
than to run strlen() on it.

The replacement rules are applied as follows:
 *    if (strlen($str))
   => if ((string)$str !== '')
 *    if (!is_string($str) || strlen($str) === 0)
   => if (!is_string($str) || $str === '')
 * If it can be seen easily that $str is a string,
   the typecast is omitted.

Change-Id: I888d70e42f925bd57ad23b873b72d6a38acb39ef
Resolves: #54091
Releases: master
Reviewed-on: http://review.typo3.org/27794
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
2015-01-18 14:37:46 +01:00
Classes [CLEANUP] Replace strlen() with === for zero length check 2015-01-18 14:37:46 +01:00
composer.json [TASK] Set TYPO3 version to 7.1.0-dev 2014-12-03 16:20:12 +01:00
ext_emconf.php [TASK] Set TYPO3 version to 7.1.0-dev 2014-12-03 16:20:12 +01:00
ext_icon.gif Revert "[TASK] Reduce file size of core images" 2014-05-03 22:42:02 +02:00
ext_localconf.php [TASK] Use name-resolution instead of strings where possible: 16 2014-12-03 20:08:00 +01:00