Indentation fixes and minor cleanups
[squirrelmail.git] / src / help.php
index 8e59f3182e0163b8a830dcae0baf6b59ad87f402..29df95cc7034bdf5ffa3f9f26e69bd1c168b8bee 100644 (file)
@@ -82,13 +82,13 @@ function get_info($doc, $pos) {
                 $ary[1] = $ary[0];
                 $ary[2] = $ary[0];
             }
-           return( $ary );
+            return( $ary );
         } else if (!trim(strtolower($doc[$n]))) {
-            $ary[0] = '';
-            $ary[1] = '';
-            $ary[2] = '';
-            $ary[3] = $n;
-       }
+            $ary[0] = '';
+            $ary[1] = '';
+            $ary[2] = '';
+            $ary[3] = $n;
+        }
     }
     $ary[0] = _("ERROR: Help files are not in the right format!");
     $ary[1] = $ary[0];
@@ -152,9 +152,9 @@ if ( sqgetGlobalVar('chapter', $temp, SQ_GET) ) {
 
 if ( $chapter == 0 || !isset( $helpdir[$chapter-1] ) ) {
     echo html_tag( 'table', '', 'center', '', 'cellpadding="0" cellspacing="0" border="0"' ) .
-               html_tag( 'tr' ) .
-                    html_tag( 'td' ) .
-                         '<b><center>' . _("Table of Contents") . '</center></b><br />';
+         html_tag( 'tr' ) .
+         html_tag( 'td' ) .
+         '<b><center>' . _("Table of Contents") . '</center></b><br />';
     echo html_tag( 'ol' );
     for ($i=0, $cnt = count($helpdir); $i < $cnt; $i++) {
         $doc = file("../help/$user_language/$helpdir[$i]");
@@ -200,7 +200,7 @@ if ( $chapter == 0 || !isset( $helpdir[$chapter-1] ) ) {
         $help_info = get_info($doc, $n);
         echo "<b>$chapter.$section - $help_info[0]</b>" .
             html_tag( 'ul', $help_info[1] );
-       $n = $help_info[3];
+        $n = $help_info[3];
     }
 
     echo '<br /><center><a href="#pagetop">' . _("Top") . '</a></center>';
@@ -210,6 +210,6 @@ do_hook('help_bottom');
 
 echo html_tag( 'tr',
             html_tag( 'td', '&nbsp;', 'left', $color[0] )
-        ).
-        '</table></body></html>';
-?>
\ No newline at end of file
+        );
+?>
+</table></body></html>
\ No newline at end of file