Skip to content

Commit

Permalink
Merge pull request #6 from mjg17/mjg17/qw_paren_deprecation
Browse files Browse the repository at this point in the history
Use of qw(...) as parentheses is deprecated.

Thanks for the patch!
  • Loading branch information
awwaiid committed Oct 12, 2015
2 parents bcac4f5 + 9602d16 commit 10ba280
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/squatting
Expand Up @@ -111,7 +111,7 @@ if ($app) {
$self->{status} = 200;
$self;
};
foreach my $method qw(get post put delete) {
foreach my $method ( qw(get post put delete) ) {
*{$app."::$method" } = sub {
my $cc = ${$app."::Controllers::C"}{$_[1]}->clone->mock_init(@_[2..$#_]);
$cc->env->{REQUEST_METHOD} = $method;
Expand Down
2 changes: 1 addition & 1 deletion lib/Squatting/With/MockRequest.pm
Expand Up @@ -18,7 +18,7 @@ sub mock_controller_init {
$cc;
};

foreach my $method qw(get post put delete head) {
foreach my $method ( qw(get post put delete head) ) {
*{$method} = sub {
my ($app, $controller, @args) = @_;
my $cc = ${$app."::Controllers::C"}{$controller}->clone;
Expand Down

0 comments on commit 10ba280

Please sign in to comment.