didou           Thu Jan 15 07:42:44 2004 EDT

  Modified files:              
    /phpdoc/en/reference/ldap/functions ldap-get-attributes.xml 
                                        ldap-get-values.xml 
                                        ldap-list.xml 
  Log:
  CS : Function declarations follow the 'one true brace' convention
  
Index: phpdoc/en/reference/ldap/functions/ldap-get-attributes.xml
diff -u phpdoc/en/reference/ldap/functions/ldap-get-attributes.xml:1.4 
phpdoc/en/reference/ldap/functions/ldap-get-attributes.xml:1.5
--- phpdoc/en/reference/ldap/functions/ldap-get-attributes.xml:1.4      Mon Dec 15 
11:51:21 2003
+++ phpdoc/en/reference/ldap/functions/ldap-get-attributes.xml  Thu Jan 15 07:42:44 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 -->
   <refentry id="function.ldap-get-attributes">
    <refnamediv>
@@ -58,8 +58,9 @@
 
 echo $attrs["count"] . " attributes held for this entry:<p>";
 
-for ($i=0; $i<$attrs["count"]; $i++)
+for ($i=0; $i<$attrs["count"]; $i++) {
     echo $attrs[$i] . "<br />";
+}
 ?>
 ]]>
       </programlisting>
Index: phpdoc/en/reference/ldap/functions/ldap-get-values.xml
diff -u phpdoc/en/reference/ldap/functions/ldap-get-values.xml:1.4 
phpdoc/en/reference/ldap/functions/ldap-get-values.xml:1.5
--- phpdoc/en/reference/ldap/functions/ldap-get-values.xml:1.4  Mon Dec 15 11:51:21 
2003
+++ phpdoc/en/reference/ldap/functions/ldap-get-values.xml      Thu Jan 15 07:42:44 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 -->
   <refentry id="function.ldap-get-values">
    <refnamediv>
@@ -63,10 +63,11 @@
 
 $values = ldap_get_values($ds, $entry, "mail");
 
-echo $values["count"] . " email addresses for this entry.<p>";
+echo $values["count"] . " email addresses for this entry.<br />";
 
-for ($i=0; $i < $values["count"]; $i++)
+for ($i=0; $i < $values["count"]; $i++) {
     echo $values[$i] . "<br />";
+}
 ?>
 ]]>
       </programlisting>
Index: phpdoc/en/reference/ldap/functions/ldap-list.xml
diff -u phpdoc/en/reference/ldap/functions/ldap-list.xml:1.2 
phpdoc/en/reference/ldap/functions/ldap-list.xml:1.3
--- phpdoc/en/reference/ldap/functions/ldap-list.xml:1.2        Wed Apr 17 02:39:44 
2002
+++ phpdoc/en/reference/ldap/functions/ldap-list.xml    Thu Jan 15 07:42:44 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 -->
   <refentry id="function.ldap-list">
    <refnamediv>
@@ -58,8 +58,10 @@
 
 $info = ldap_get_entries($ds, $sr);
 
-for ($i=0; $i<$info["count"]; $i++)
+for ($i=0; $i<$info["count"]; $i++) {
     echo $info[$i]["ou"][0] ;
+}
+
 ]]>
 </programlisting>
 </example></para>

Reply via email to