Bug 14066: Correct and optimize
authorMark Tompsett <mtompset@hotmail.com>
Mon, 27 Apr 2015 22:03:55 +0000 (18:03 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 6 May 2015 14:05:22 +0000 (11:05 -0300)
commit6728f2808c393dfa3ee4fb46f8a70f69692f3cb6
tree6b7490c21c79571c18a176782433bc49f271db8e
parent37873483a64296e1983a3b63f2228375700d713f
Bug 14066: Correct and optimize

As far as I can tell $sunday is never used. And it seemed to be
scoped to only _init.

The remaining hashiness was cleaned up for the $return_by_hour.

TEST PLAN
---------
1) Apply both patches
2) (Skip this one - file does not exist / MV) prove -v t/db_dependent/Calendar.t
3) prove -v t/db_dependent/Holidays.t
4) prove -v t/Calendar.t
5) perlcritic -3 Koha/Calendar.pm
   -- the message corresponds to a comment in the code already
      and not this change.
6) run koha qa test tools

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/Calendar.pm