]> git.koha-community.org Git - koha.git/commit
Bug 11479: Remove experimental given/when keywords
authorColin Campbell <colin.campbell@ptfs-europe.com>
Mon, 6 Jan 2014 12:06:29 +0000 (12:06 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 21 May 2014 07:35:28 +0000 (09:35 +0200)
commit8893ac58fc4a4c2621ddd0002487a0f00a45f48c
tree38a29d2d3f2f456d94b0bf7f69b31b14f3fe37ec
parentd64145b2c61ebbd1bd34f276dc1e107382b4ad59
Bug 11479: Remove experimental given/when keywords

Replace constructs using given and when by if/else
feature now generates compilation warnings in 5.18
and is liable to change behaviour.

This patch:

* replaces the construct with if/else
* reformats the if branching using perltidy
  to remove the now redundant indent

To test:

[1] Verify that prove -v t/db_dependent/MarcModificationTemplates.t
    passes.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 11faf9fde8da48c58e853d5538a8e3bbd2ae41c5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/MarcModificationTemplates.pm