didou           Thu Dec 18 12:44:06 2003 EDT

  Modified files:              
    /phpdoc/en/reference/dio/functions  dio-tcsetattr.xml 
    /phpdoc/en/reference/dir/functions  chdir.xml 
    /phpdoc/en/reference/errorfunc      examples.xml 
    /phpdoc/en/reference/errorfunc/functions    set-error-handler.xml 
    /phpdoc/en/reference/filesystem/functions   fpassthru.xml 
    /phpdoc/en/reference/ftp/functions  ftp-mdtm.xml 
    /phpdoc/en/reference/funchand/functions     create-function.xml 
  Log:
  some more CS
  
Index: phpdoc/en/reference/dio/functions/dio-tcsetattr.xml
diff -u phpdoc/en/reference/dio/functions/dio-tcsetattr.xml:1.5 
phpdoc/en/reference/dio/functions/dio-tcsetattr.xml:1.6
--- phpdoc/en/reference/dio/functions/dio-tcsetattr.xml:1.5     Mon Dec 15 11:48:50 
2003
+++ phpdoc/en/reference/dio/functions/dio-tcsetattr.xml Thu Dec 18 12:43:56 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/dio.xml, last change in rev 1.1 -->
   <refentry id="function.dio-tcsetattr">
    <refnamediv>
@@ -52,18 +52,18 @@
 
 $fd = dio_open('/dev/ttyS0', O_RDWR | O_NOCTTY | O_NONBLOCK);
 
-dio_fcntl($fd, F_SETFL, O_SYNC );
+dio_fcntl($fd, F_SETFL, O_SYNC);
 
 dio_tcsetattr($fd, array(
   'baud' => 9600,
   'bits' => 8,
-  'stop'  =>1,
+  'stop'  => 1,
   'parity' => 0
 )); 
 
 while (1) {
 
-  $data = dio_read($fd,256);
+  $data = dio_read($fd, 256);
 
   if ($data) {
       echo $data;
Index: phpdoc/en/reference/dir/functions/chdir.xml
diff -u phpdoc/en/reference/dir/functions/chdir.xml:1.8 
phpdoc/en/reference/dir/functions/chdir.xml:1.9
--- phpdoc/en/reference/dir/functions/chdir.xml:1.8     Tue Dec 16 12:13:51 2003
+++ phpdoc/en/reference/dir/functions/chdir.xml Thu Dec 18 12:43:57 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <!-- splitted from ./en/functions/dir.xml, last change in rev 1.2 -->
   <refentry id="function.chdir">
    <refnamediv>
@@ -28,14 +28,14 @@
        
 chdir('public_html');
        
-// current direcorty
+// current directory
 echo getcwd() . "\n";
        
 ?>
 ]]>
        </programlisting>
        <para>
-        This example will output
+        This example will output:
        </para>
        <screen>
 <![CDATA[
Index: phpdoc/en/reference/errorfunc/examples.xml
diff -u phpdoc/en/reference/errorfunc/examples.xml:1.3 
phpdoc/en/reference/errorfunc/examples.xml:1.4
--- phpdoc/en/reference/errorfunc/examples.xml:1.3      Mon Dec 15 11:49:40 2003
+++ phpdoc/en/reference/errorfunc/examples.xml  Thu Dec 18 12:43:57 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <section id="errorfunc.examples">
  &reftitle.examples;
   <para>
@@ -24,17 +24,17 @@
     // in reality the only entries we should
     // consider are 2,8,256,512 and 1024
     $errortype = array (
-                1   =>  "Error",
-                2   =>  "Warning",
-                4   =>  "Parsing Error",
-                8   =>  "Notice",
-                16  =>  "Core Error",
-                32  =>  "Core Warning",
-                64  =>  "Compile Error",
-                128 =>  "Compile Warning",
-                256 =>  "User Error",
-                512 =>  "User Warning",
-                1024=>  "User Notice"
+                1    =>  "Error",
+                2    =>  "Warning",
+                4    =>  "Parsing Error",
+                8    =>  "Notice",
+                16   =>  "Core Error",
+                32   =>  "Core Warning",
+                64   =>  "Compile Error",
+                128  =>  "Compile Warning",
+                256  =>  "User Error",
+                512  =>  "User Warning",
+                1024 =>  "User Notice"
                 );
     // set of errors for which a var trace will be saved
     $user_errors = array(E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE);
@@ -98,16 +98,16 @@
 // define some "vectors"
 $a = array(2, 3, "foo");
 $b = array(5.5, 4.3, -1.6);
-$c = array (1,-3);
+$c = array (1, -3);
 
 // generate a user error
-$t1 = distance($c, $b)."\n";
+$t1 = distance($c, $b) . "\n";
 
 // generate another user error
-$t2 = distance($b, "i am not an array")."\n";
+$t2 = distance($b, "i am not an array") . "\n";
 
 // generate a warning
-$t3 = distance($a, $b)."\n";
+$t3 = distance($a, $b) . "\n";
 
 ?>
 ]]>
Index: phpdoc/en/reference/errorfunc/functions/set-error-handler.xml
diff -u phpdoc/en/reference/errorfunc/functions/set-error-handler.xml:1.16 
phpdoc/en/reference/errorfunc/functions/set-error-handler.xml:1.17
--- phpdoc/en/reference/errorfunc/functions/set-error-handler.xml:1.16  Mon Dec 15 
11:49:41 2003
+++ phpdoc/en/reference/errorfunc/functions/set-error-handler.xml       Thu Dec 18 
12:44:02 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.16 $ -->
+<!-- $Revision: 1.17 $ -->
 <!-- splitted from ./en/functions/errorfunc.xml, last change in rev 1.1 -->
   <refentry id="function.set-error-handler">
    <refnamediv>
@@ -72,7 +72,7 @@
   case FATAL:
     echo "<b>FATAL</b> [$errno] $errstr<br />\n";
     echo "  Fatal error in line $errline of file $errfile";
-    echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br />\n";
+    echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")<br />\n";
     echo "Aborting...<br />\n";
     exit(1);
     break;
Index: phpdoc/en/reference/filesystem/functions/fpassthru.xml
diff -u phpdoc/en/reference/filesystem/functions/fpassthru.xml:1.6 
phpdoc/en/reference/filesystem/functions/fpassthru.xml:1.7
--- phpdoc/en/reference/filesystem/functions/fpassthru.xml:1.6  Sat Aug 16 17:42:13 
2003
+++ phpdoc/en/reference/filesystem/functions/fpassthru.xml      Thu Dec 18 12:44:03 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
   <refentry id="function.fpassthru">
    <refnamediv>
@@ -63,7 +63,7 @@
 
 // send the right headers
 header("Content-Type: image/png");
-header("Content-Length: ".filesize($name));
+header("Content-Length: " . filesize($name));
 
 // dump the picture and stop the script
 fpassthru($fp);
Index: phpdoc/en/reference/ftp/functions/ftp-mdtm.xml
diff -u phpdoc/en/reference/ftp/functions/ftp-mdtm.xml:1.5 
phpdoc/en/reference/ftp/functions/ftp-mdtm.xml:1.6
--- phpdoc/en/reference/ftp/functions/ftp-mdtm.xml:1.5  Sun Aug 17 09:17:22 2003
+++ phpdoc/en/reference/ftp/functions/ftp-mdtm.xml      Thu Dec 18 12:44:04 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.2 -->
   <refentry id="function.ftp-mdtm">
    <refnamediv>
@@ -39,7 +39,7 @@
 
 if ($buff != -1) {
     // somefile.txt was last modified on: March 26 2003 14:16:41.
-    echo "$file was last modified on : " . date ("F d Y H:i:s.", $buff);
+    echo "$file was last modified on : " . date("F d Y H:i:s.", $buff);
 } else {
     echo "Couldn't get mdtime";
 }
Index: phpdoc/en/reference/funchand/functions/create-function.xml
diff -u phpdoc/en/reference/funchand/functions/create-function.xml:1.4 
phpdoc/en/reference/funchand/functions/create-function.xml:1.5
--- phpdoc/en/reference/funchand/functions/create-function.xml:1.4      Mon Dec 15 
11:49:46 2003
+++ phpdoc/en/reference/funchand/functions/create-function.xml  Thu Dec 18 12:44:06 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 -->
   <refentry id="function.create-function">
    <refnamediv>
@@ -36,9 +36,9 @@
       <programlisting role="php">
 <![CDATA[
 <?php
-$newfunc = create_function('$a,$b', 'return "ln($a) + ln($b) = ".log($a * $b);');
+$newfunc = create_function('$a,$b', 'return "ln($a) + ln($b) = " . log($a * $b);');
 echo "New anonymous function: $newfunc\n";
-echo $newfunc(2, M_E)."\n";
+echo $newfunc(2, M_E) . "\n";
 // outputs
 // New anonymous function: lambda_1
 // ln(2) + ln(2.718281828459) = 1.6931471805599
@@ -62,7 +62,7 @@
 <?php
 function process($var1, $var2, $farr) {
     for ($f=0; $f < count($farr); $f++)
-        echo $farr[$f]($var1, $var2)."\n";
+        echo $farr[$f]($var1, $var2) . "\n";
 }
 
 // create a bunch of math functions
@@ -85,8 +85,8 @@
 $garr = array(
     create_function('$b,$a', 'if (strncmp($a, $b, 3) == 0) return "** \"$a\" '.
     'and \"$b\"\n** Look the same to me! (looking at the first 3 chars)";'),
-    create_function('$a,$b','; return "CRCs: ".crc32($a)." , ".crc32(b);'),
-    create_function('$a,$b','; return "similar(a,b) = ".similar_text($a, $b, 
&$p)."($p%)";')
+    create_function('$a,$b', '; return "CRCs: " . crc32($a) . " , ".crc32(b);'),
+    create_function('$a,$b', '; return "similar(a,b) = " . similar_text($a, $b, &$p) 
. "($p%)";')
     );
 echo "\nUsing the second array of anonymous functions\n";
 process("Twas brilling and the slithy toves", "Twas the night", $garr);
@@ -127,7 +127,7 @@
 <![CDATA[
 <?php
 $av = array("the ", "a ", "that ", "this ");
-array_walk($av, create_function('&$v,$k','$v = $v."mango";'));
+array_walk($av, create_function('&$v,$k', '$v = $v . "mango";'));
 print_r($av); 
 ?>
 ]]>

Reply via email to