Frontend editing for TYPO3
Find a file
Markus Klein 36db0437f7 [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.

Resolves: #54091
Releases: 6.2
Change-Id: I59c5cbccea4f98b8f282377e6aa67d970859a457
Reviewed-on: https://review.typo3.org/27091
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
2014-02-23 11:24:30 +01:00
Classes [CLEANUP] Replace strlen() with === for zero length check 2014-02-23 11:24:30 +01:00
Migrations/Code [TASK] Remove closing PHP tags 2013-10-01 15:15:19 +02:00
composer.json [TASK] Fix system extensions composer.json type entry 2013-10-15 15:50:02 +02:00
ext_emconf.php [TASK] Remove closing PHP tags 2013-10-01 15:15:19 +02:00
ext_icon.gif Fixed issue #17176: Remove unnecessary comments and color profiles from all shipped .png / .gif files (Thanks to Steffen Gebert) 2011-01-20 19:39:43 +00:00
ext_localconf.php [TASK] Remove closing PHP tags 2013-10-01 15:15:19 +02:00