diff options
author | Andreas Gohr <andi@splitbrain.org> | 2023-08-31 14:22:35 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2023-08-31 14:22:35 +0200 |
commit | 177d6836e2f75d0e404be9c566e61725852a1e07 (patch) | |
tree | 6f503a52fd65527fbd6722e959f67f2dbcaa78bb /inc/html.php | |
parent | 83bec4752cdd7b0b551fb56e3e2736f3ae1633fa (diff) | |
download | dokuwiki-177d6836e2f75d0e404be9c566e61725852a1e07.tar.gz dokuwiki-177d6836e2f75d0e404be9c566e61725852a1e07.zip |
coding style: control flow whitespaces
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/inc/html.php b/inc/html.php index 3cee6ad4c..0f51fca2d 100644 --- a/inc/html.php +++ b/inc/html.php @@ -475,7 +475,6 @@ function html_buildlist($data, $class, $func, $lifunc = null, $forcewrapper = fa $open++; } $level = $item['level']; - } elseif ($item['level'] < $level) { //close last item $html .= '</li>'."\n"; @@ -849,7 +848,7 @@ function html_TOC($toc) */ function html_list_toc($item) { - if (isset($item['hid'])){ + if (isset($item['hid'])) { $link = '#'.$item['hid']; } else { $link = $item['link']; @@ -942,11 +941,11 @@ function html_flashobject($swf, $width, $height, $params = null, $flashvars = nu $out = ''; // prepare the object attributes - if(is_null($atts)) $atts = []; + if (is_null($atts)) $atts = []; $atts['width'] = (int) $width; $atts['height'] = (int) $height; - if(!$atts['width']) $atts['width'] = 425; - if(!$atts['height']) $atts['height'] = 350; + if (!$atts['width']) $atts['width'] = 425; + if (!$atts['height']) $atts['height'] = 350; // add object attributes for standard compliant browsers $std = $atts; @@ -967,19 +966,19 @@ function html_flashobject($swf, $width, $height, $params = null, $flashvars = nu $out .= '<!--><!-- -->'.NL; // print params - if(is_array($params)) foreach($params as $key => $val){ + if (is_array($params)) foreach ($params as $key => $val) { $out .= ' <param name="'.hsc($key).'" value="'.hsc($val).'" />'.NL; } // add flashvars - if(is_array($flashvars)){ + if (is_array($flashvars)) { $out .= ' <param name="FlashVars" value="'.buildURLparams($flashvars).'" />'.NL; } // alternative content - if($alt){ + if ($alt) { $out .= $alt.NL; - }else{ + } else { $out .= $lang['noflash'].NL; } |