Revert "Bug 22026: Removed 'use Modern::Perl;' from Koha::REST::classes"
authorNick Clemens <nick@bywatersolutions.com>
Tue, 26 Feb 2019 16:04:08 +0000 (11:04 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 26 Feb 2019 16:04:08 +0000 (11:04 -0500)
This causes test failures in D8 and would require packaging our own perlcritic
Reverting until future date when consequences do not outweigh benefits

This reverts commit ecc94da6b258e423799e58558a5b02c8f2fcefec.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
14 files changed:
Koha/REST/Plugin/Objects.pm
Koha/REST/Plugin/Pagination.pm
Koha/REST/Plugin/PluginRoutes.pm
Koha/REST/Plugin/Query.pm
Koha/REST/V1.pm
Koha/REST/V1/Acquisitions/Vendors.pm
Koha/REST/V1/Auth.pm
Koha/REST/V1/Cities.pm
Koha/REST/V1/Hold.pm
Koha/REST/V1/Illrequests.pm
Koha/REST/V1/OAuth.pm
Koha/REST/V1/Patrons.pm
Koha/REST/V1/Patrons/Account.pm
Koha/REST/V1/Stage.pm

index 931c647..3653f91 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::Plugin::Objects;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Plugin';
 
 =head1 NAME
index 47c7fc0..0256005 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::Plugin::Pagination;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Plugin';
 
 =head1 NAME
index 17ccab3..f51c7bd 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::Plugin::PluginRoutes;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Plugin';
 
 use Koha::Exceptions::Plugin;
index 21479f8..090f02f 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::Plugin::Query;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Plugin';
 
 use Koha::Exceptions;
index df327e9..b1f4657 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::V1;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious';
 
 use C4::Context;
index 79f401f..5f86ac8 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::V1::Acquisitions::Vendors;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Controller';
 
 use Koha::Acquisition::Booksellers;
index 0dbd9c8..92cafc2 100644 (file)
@@ -17,6 +17,8 @@ package Koha::REST::V1::Auth;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Controller';
 
 use C4::Auth qw( check_cookie_auth checkpw_internal get_session haspermission );
index 8bca97c..5a579b4 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::V1::Cities;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Controller';
 
 use Koha::Cities;
index bc25750..c3cb926 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::V1::Hold;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Controller';
 
 use C4::Biblio;
index 94ff8ce..2e428f7 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::V1::Illrequests;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Controller';
 
 use Koha::Illrequests;
index e7c8ec7..b75c892 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::V1::OAuth;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Module::Load::Conditional;
 
 use C4::Context;
index 5315596..5e8e398 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::V1::Patrons;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Controller';
 
 use Koha::DateUtils;
index 3fd3eef..deb4d3d 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::V1::Patrons::Account;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Controller';
 
 use Koha::Patrons;
index f439e97..485384a 100644 (file)
@@ -15,6 +15,8 @@ package Koha::REST::V1::Stage;
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+use Modern::Perl;
+
 use Mojo::Base 'Mojolicious::Controller';
 
 use Koha::StockRotationRotas;