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)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 20 Feb 2014 15:55:21 +0000 (15:55 +0000)
commit11faf9fde8da48c58e853d5538a8e3bbd2ae41c5
treec4c260bbed908322ad512a3531ebec9ce7954d76
parent08d15a6fd1b51435b92f1056f6735c8317636068
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>
C4/MarcModificationTemplates.pm