[svn:parrot] r36577 - in trunk/languages/pipp: docs t t/php

fperrad at svn.parrot.org fperrad at svn.parrot.org
Wed Feb 11 11:44:08 UTC 2009


Author: fperrad
Date: Wed Feb 11 11:44:07 2009
New Revision: 36577
URL: https://trac.parrot.org/parrot/changeset/36577

Log:
[Pipp] fix some coding standards

Modified:
   trunk/languages/pipp/docs/internals.pod
   trunk/languages/pipp/docs/pipp.pod
   trunk/languages/pipp/docs/testing.pod
   trunk/languages/pipp/t/harness
   trunk/languages/pipp/t/php/arithmetics.t
   trunk/languages/pipp/t/php/array.t
   trunk/languages/pipp/t/php/closures.t
   trunk/languages/pipp/t/php/comments.t
   trunk/languages/pipp/t/php/concat.t
   trunk/languages/pipp/t/php/control_flow.t
   trunk/languages/pipp/t/php/functions.t
   trunk/languages/pipp/t/php/hello.t
   trunk/languages/pipp/t/php/namespace.t
   trunk/languages/pipp/t/php/oo.t
   trunk/languages/pipp/t/php/references.t
   trunk/languages/pipp/t/php/relops.t
   trunk/languages/pipp/t/php/string.t
   trunk/languages/pipp/t/php/superglobals.t
   trunk/languages/pipp/t/php/tags.t
   trunk/languages/pipp/t/php/type.t

Modified: trunk/languages/pipp/docs/internals.pod
==============================================================================
--- trunk/languages/pipp/docs/internals.pod	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/docs/internals.pod	Wed Feb 11 11:44:07 2009	(r36577)
@@ -111,7 +111,7 @@
 
 =head1 Namespaces
 
-A namespace is introduced with the keyword B<namespace>. 
+A namespace is introduced with the keyword B<namespace>.
 The namespaced code can be enclosed in brackets.
 The namespace declaration needs to be the first statement in the file.
 With brackets, there can be multiple namespaces per file. Nesting is not possible.
@@ -127,7 +127,7 @@
 =head2 Implementation in Pipp
 
 In order to ease implementation and testing, there are
-some divergences in Pipp. 
+some divergences in Pipp.
 
 =over 4
 
@@ -169,7 +169,7 @@
 
 =head1 Including and requiring
 
-C<require_once()> is supported, but might have issues with variables. 
+C<require_once()> is supported, but might have issues with variables.
 
 =head1 Extensions
 

Modified: trunk/languages/pipp/docs/pipp.pod
==============================================================================
--- trunk/languages/pipp/docs/pipp.pod	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/docs/pipp.pod	Wed Feb 11 11:44:07 2009	(r36577)
@@ -1,7 +1,7 @@
 # $Id$
 
 =head1 NAME
- 
+
 Pipp - Introduction
 
 =head1 What is Pipp?

Modified: trunk/languages/pipp/docs/testing.pod
==============================================================================
--- trunk/languages/pipp/docs/testing.pod	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/docs/testing.pod	Wed Feb 11 11:44:07 2009	(r36577)
@@ -1,7 +1,7 @@
 # $Id$
 
 =head1 NAME
- 
+
 Pipp - Testing
 
 =head1 Testsuite
@@ -12,7 +12,7 @@
 These tests are executed by 'make test'.
 
 Run individual tests e.g.:
-  
+
   perl t/harness --verbose t/in_php/01_sea_only.t
 
 =head1 How to run the PHP test suite
@@ -44,7 +44,7 @@
 
   # run the test-suite
   ./sapi/cli/php run-tests.php -v --keep-all | tee run-tests.log
-  
+
 Good luck.
 
 =head1 Author

Modified: trunk/languages/pipp/t/harness
==============================================================================
--- trunk/languages/pipp/t/harness	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/harness	Wed Feb 11 11:44:07 2009	(r36577)
@@ -9,13 +9,13 @@
 
   cd languages && perl pipp/t/harness --files --master
 
-  cd languages/pipp && perl t/harness 
+  cd languages/pipp && perl t/harness
 
   cd languages/pipp && perl t/harness --with-phc
 
   cd languages/pipp && perl t/harness --with-pct
 
-  cd languages/pipp && perl t/harness --verbose t/hello.t 
+  cd languages/pipp && perl t/harness --verbose t/hello.t
 
 =head1 DESCRIPTION
 
@@ -41,7 +41,7 @@
 use Cwd                     ();
 use File::Spec              ();
 use TAP::Harness            3.12;     # support closures for the 'exec' option
-use TAP::Harness::Archive   0.12; 
+use TAP::Harness::Archive   0.12;
 use Parrot::Config          qw( %PConfig );
 use Getopt::Long;
 use Parrot::Harness::Smoke;
@@ -72,12 +72,12 @@
     print join( "\n", @files );
     print "\n" if scalar(@files);
 }
-else { 
+else {
     my $path_to_parrot = Parrot::Test::path_to_parrot();
     my @cmd = ( "$path_to_parrot/parrot$PConfig{exe}", "$path_to_parrot/languages/pipp/pipp.pbc" );
     $ENV{PARROT_PIPP_TEST_MODULE} = 'Parrot::Test::Pipp::PCT';
 
-    if ( $php_flag ) { 
+    if ( $php_flag ) {
          $ENV{PARROT_PIPP_TEST_MODULE} = 'Parrot::Test::Pipp::PHP';
          @cmd = qw{ php-cgi -q -C -n } ;
     }
@@ -122,10 +122,10 @@
 
               # all other directories contain test scripts written in Perl
               return [ $PConfig{perl}, $test_file ];
-          };  
-    if ( $archive_flag ) { 
+          };
+    if ( $archive_flag ) {
         my %env_data = Parrot::Harness::Smoke::collect_test_environment_data();
-       
+
         my $report_file = ['pipp_test_run.tar.gz'];
         my $harness = TAP::Harness::Archive->new(
             {
@@ -143,7 +143,8 @@
             $env_data{project_id}  = 10;
             Parrot::Harness::Smoke::send_archive_to_smolder(%env_data);
         }
-    } else {
+    }
+    else {
        my $harness = TAP::Harness->new(
            {
                exec       => $exec_sub,

Modified: trunk/languages/pipp/t/php/arithmetics.t
==============================================================================
--- trunk/languages/pipp/t/php/arithmetics.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/arithmetics.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -127,3 +127,10 @@
 
 plan( tests => scalar(@tests) );
 run_tests(\@tests);
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/array.t
==============================================================================
--- trunk/languages/pipp/t/php/array.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/array.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -1,4 +1,5 @@
 # Copyright (C) 2008, The Perl Foundation.
+# $Id$
 
 =head1 NAME
 

Modified: trunk/languages/pipp/t/php/closures.t
==============================================================================
--- trunk/languages/pipp/t/php/closures.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/closures.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -218,3 +218,10 @@
    3b
    3c
 OUT
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/comments.t
==============================================================================
--- trunk/languages/pipp/t/php/comments.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/comments.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -127,3 +127,10 @@
 CODE
 Hello, World!
 OUT
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/concat.t
==============================================================================
--- trunk/languages/pipp/t/php/concat.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/concat.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -47,3 +47,9 @@
 1a
 OUT
 
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/control_flow.t
==============================================================================
--- trunk/languages/pipp/t/php/control_flow.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/control_flow.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -317,3 +317,10 @@
 
 ?>
 CODE
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/functions.t
==============================================================================
--- trunk/languages/pipp/t/php/functions.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/functions.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -318,3 +318,10 @@
 CODE
 outer variable
 OUT
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/hello.t
==============================================================================
--- trunk/languages/pipp/t/php/hello.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/hello.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -190,3 +190,9 @@
 ?>
 CODE
 
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/namespace.t
==============================================================================
--- trunk/languages/pipp/t/php/namespace.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/namespace.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -234,3 +234,10 @@
 CODE
 The function bums() in class A\Dings has been called.
 OUT
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/oo.t
==============================================================================
--- trunk/languages/pipp/t/php/oo.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/oo.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -389,3 +389,9 @@
 prinT_Class
 OUT
 
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/references.t
==============================================================================
--- trunk/languages/pipp/t/php/references.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/references.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -51,3 +51,10 @@
 4441
 4442
 OUT
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/relops.t
==============================================================================
--- trunk/languages/pipp/t/php/relops.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/relops.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -266,3 +266,9 @@
 ?>
 CODE
 
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/string.t
==============================================================================
--- trunk/languages/pipp/t/php/string.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/string.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -254,7 +254,7 @@
 
     language_output_is( 'Pipp', <<'CODE', <<'OUT', 'dollar followed by a space' );
 <?php
- 
+
 echo ";$ ;", "\n";
 
 ?>
@@ -324,8 +324,8 @@
 no variable expansion in twiddles: {$dummy}
 backslash at end: \
 backslash not at end: \dummy
-backslash before a space: \ 
-escaped backslash before a space: \ 
+backslash before a space: \
+escaped backslash before a space: \
 not a newline: \n
 not a carriage return: \r
 not a tab: \t
@@ -370,11 +370,11 @@
 variable expansion: INTERPOLATED
 backslash at end: \
 backslash not at end: \dummy
-backslash before a space: \ 
-escaped backslash before a space: \ 
-a newline: 
+backslash before a space: \
+escaped backslash before a space: \
+a newline:
 
-a tab: 	
+a tab:
 an octal: A
 an hex: A
 single quote: '

Modified: trunk/languages/pipp/t/php/superglobals.t
==============================================================================
--- trunk/languages/pipp/t/php/superglobals.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/superglobals.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -103,3 +103,10 @@
 outside function: df
 inside function: df
 OUT
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: trunk/languages/pipp/t/php/tags.t
==============================================================================
--- trunk/languages/pipp/t/php/tags.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/tags.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -70,11 +70,11 @@
 OUT
 
 language_output_is( 'Pipp', <<'CODE', <<'OUT', 'messy script tags' );
-<script          
-       language      = 
+<script
+       language      =
     'php'
-            > 
-    echo "hello world\n"; 
+            >
+    echo "hello world\n";
     </script            >
 CODE
 hello world

Modified: trunk/languages/pipp/t/php/type.t
==============================================================================
--- trunk/languages/pipp/t/php/type.t	Wed Feb 11 11:41:14 2009	(r36576)
+++ trunk/languages/pipp/t/php/type.t	Wed Feb 11 11:44:07 2009	(r36577)
@@ -187,7 +187,7 @@
   echo is_null($undef_var), "\n";
   $a = 'first letter';
   echo is_null($a), "\n";
-  
+
 ?>
 CODE
 1


More information about the parrot-commits mailing list