From 1e9018f9be5994e5b9af141c2655fa3f9539eff1 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Fri, 9 Oct 2015 23:24:41 +0100 Subject: [PATCH] - Added 'use warnings;' to the Image::Scale. - Added 'use strict; use warnings;' to t/01use.t, t/02pod.t and t/03podcoverage.t --- lib/Image/Scale.pm | 2 +- t/01use.t | 2 +- t/02pod.t | 2 +- t/03podcoverage.t | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Image/Scale.pm b/lib/Image/Scale.pm index d2bc9b4..e7372a9 100644 --- a/lib/Image/Scale.pm +++ b/lib/Image/Scale.pm @@ -1,6 +1,6 @@ package Image::Scale; -use strict; +use strict; use warnings; use constant IMAGE_SCALE_TYPE_GD => 0; use constant IMAGE_SCALE_TYPE_GD_FIXED => 1; diff --git a/t/01use.t b/t/01use.t index 6a87cd9..1f496e5 100644 --- a/t/01use.t +++ b/t/01use.t @@ -1,3 +1,3 @@ use Test::More tests => 1; - +use strict; use warnings; use_ok('Image::Scale'); \ No newline at end of file diff --git a/t/02pod.t b/t/02pod.t index d73d7fa..d0dbb44 100644 --- a/t/02pod.t +++ b/t/02pod.t @@ -1,5 +1,5 @@ use Test::More; - +use strict; use warnings; eval "use Test::Pod 1.14"; plan skip_all => 'Test::Pod 1.14 required' if $@; plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD}; diff --git a/t/03podcoverage.t b/t/03podcoverage.t index cd08262..490a4aa 100644 --- a/t/03podcoverage.t +++ b/t/03podcoverage.t @@ -1,5 +1,5 @@ use Test::More; - +use strict; use warnings; eval "use Test::Pod::Coverage 1.04"; plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@; plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};