SF.net SVN: phpwiki:[10973] trunk/lib/PageList.php

vargenau--- via phpwiki-checkins <[email protected]> Thu, 03 Feb 2022 15:35:13 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10973
          http://sourceforge.net/p/phpwiki/code/10973
Author:   vargenau
Date:     2022-02-03 15:35:12 +0000 (Thu, 03 Feb 2022)
Log Message:
-----------
Indent

Modified Paths:
--------------
    trunk/lib/PageList.php

Modified: trunk/lib/PageList.php
===================================================================
--- trunk/lib/PageList.php	2022-02-02 18:07:25 UTC (rev 10972)
+++ trunk/lib/PageList.php	2022-02-03 15:35:12 UTC (rev 10973)
@@ -115,8 +115,7 @@
             $src = false;
             $noimg_src = $WikiTheme->getButtonURL('sort_none');
             if ($noimg_src)
-                $noimg = HTML::img(array('src' => $noimg_src,
-                    'alt' => '.'));
+                $noimg = HTML::img(array('src' => $noimg_src, 'alt' => '.'));
             else
                 $noimg = HTML::raw('');
             $reverse = false;
@@ -224,7 +223,8 @@
         if ($this->_field == 'hits')
             return (int)$val;
         elseif (is_object($val) && method_exists($val, 'asString'))
-            return $val->asString(); else
+            return $val->asString();
+        else
             return (string)$val;
     }
 }
@@ -477,7 +477,8 @@
         if (is_object($page_handle) and !empty($page_handle->score))
             return $page_handle->score;
         elseif (is_array($page_handle) and !empty($page_handle['score']))
-            return $page_handle['score']; else
+            return $page_handle['score'];
+        else
             return substr(parent::_getValue($page_handle, $revision_handle), 0, 50);
     }
 }
@@ -983,8 +984,10 @@
         if (is_a($dbi, 'WikiDB_SQL')) {
             extract($dbi->_backend->_table_names);
             $res = $dbi->_backend->_dbh->getOne("SELECT max(length(pagename)) FROM $page_tbl");
-            if (DB::isError($res) || empty($res)) return false;
-            else return $res;
+            if (DB::isError($res) || empty($res))
+                return false;
+            else
+                return $res;
         } else
             return false;
     }
@@ -1008,10 +1011,11 @@
         if ($this->isEmpty())
             return $this->_emptyList($caption);
         elseif (isset($this->_options['listtype'])
-            and in_array($this->_options['listtype'], array('ol', 'ul', 'comma', 'dl'))
-        )
-            return $this->generateList($caption); elseif (count($this->_columns) == 1)
-            return $this->generateList($caption); else
+            and in_array($this->_options['listtype'], array('ol', 'ul', 'comma', 'dl')))
+            return $this->generateList($caption);
+        elseif (count($this->_columns) == 1)
+            return $this->generateList($caption);
+        else
             return $this->_generateTable($caption);
     }
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.