Zend Framework

Double function call

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.10.6
  • Fix Version/s: 1.10.7
  • Component/s: Zend_Locale
  • Labels:
    None

Description

I think that the constructor in Zend_Locale can get rid of one call:

$locale = self::_prepareLocale($locale);

I think this one is superfluous because setLocale() is called next, which does the same at line 1 of the function.

Activity

Hide
Thomas Weidner added a comment -

Agreed to make the code be faster for 1 µs.

Show
Thomas Weidner added a comment - Agreed to make the code be faster for 1 µs.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: