More code tidying
Dave Rolsky [Mon, 7 Sep 2009 19:27:22 +0000 (14:27 -0500)]
lib/Moose/Meta/Role/Application.pm

index f4e8cd7..cd78b05 100644 (file)
@@ -23,18 +23,21 @@ __PACKAGE__->meta->add_attribute('method_aliases' => (
 sub new {
     my ($class, %params) = @_;
 
-    if (exists $params{excludes} && !exists $params{'-excludes'}) {
+    if ( exists $params{excludes} && !exists $params{'-excludes'} ) {
         $params{'-excludes'} = delete $params{excludes};
     }
-    if (exists $params{alias} && !exists $params{'-alias'}) {
+    if ( exists $params{alias} && !exists $params{'-alias'} ) {
         $params{'-alias'} = delete $params{alias};
     }
 
-    if (exists $params{'-excludes'}) {
+    if ( exists $params{'-excludes'} ) {
+
         # I wish we had coercion here :)
-        $params{'-excludes'} = (ref $params{'-excludes'} eq 'ARRAY'
-                                ? $params{'-excludes'}
-                                : [ $params{'-excludes'} ]);
+        $params{'-excludes'} = (
+            ref $params{'-excludes'} eq 'ARRAY'
+            ? $params{'-excludes'}
+            : [ $params{'-excludes'} ]
+        );
     }
 
     $class->_new(\%params);