Bumping version to 1.61
[dbsrgits/SQL-Translator.git] / lib / SQL / Translator / Filter / DefaultExtra.pm
index 405cfe8..ebaa7df 100644 (file)
@@ -1,23 +1,5 @@
 package SQL::Translator::Filter::DefaultExtra;
 
-# -------------------------------------------------------------------
-# Copyright (C) 2002-2009 SQLFairy Authors
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; version 2.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-# 02111-1307  USA
-# -------------------------------------------------------------------
-
 =head1 NAME
 
 SQL::Translator::Filter::DefaultExtra - Set default extra data values for schema
@@ -33,7 +15,7 @@ objects.
       filters => [
         DefaultExtra => {
             # XXX - These should really be ordered
-            
+
             # Default widget for fields to basic text edit.
             'field.widget' => 'text',
             # idea:
@@ -42,7 +24,7 @@ objects.
             # Default label (human formated name) for fields and tables
             'field.label'  => '=ucfirst($name)',
             'table.label'  => '=ucfirst($name)',
-        }, 
+        },
       ],
   ) || die "SQLFairy error : ".SQL::Translator->error;
   my $sql = $sqlt->translate || die "SQLFairy error : ".$sqlt->error;
@@ -50,15 +32,15 @@ objects.
 =cut
 
 use strict;
-use vars qw/$VERSION/;
-$VERSION = '1.60';
+use warnings;
+our $VERSION = '1.61';
 
 sub filter {
     my $schema = shift;
     my %args = { +shift };
 
     # Tables
-    for ( $schema->get_tables ) {
+    foreach ( $schema->get_tables ) {
         my %extra = $_->extra;
 
         $extra{label} ||= ucfirst($_->name);
@@ -66,7 +48,7 @@ sub filter {
     }
 
     # Fields
-    for ( map { $_->get_fields } $schema->get_tables ) {
+    foreach ( map { $_->get_fields } $schema->get_tables ) {
         my %extra = $_->extra;
 
         $extra{label} ||= ucfirst($_->name);
@@ -80,15 +62,11 @@ __END__
 
 =head1 DESCRIPTION
 
-Maybe I'm trying to do too much in one go. Args set a match and then
-an update, if you want to set lots of things, use lots of filters!
+Maybe I'm trying to do too much in one go. Args set a match and then an update,
+if you want to set lots of things, use lots of filters!
 
 =head1 SEE ALSO
 
-L<perl(1)>, L<SQL::Translator>
-
-=head1 AUTHOR
-
-Unknown.
+C<perl(1)>, L<SQL::Translator>
 
 =cut