aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Utils.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-10-20 11:31:52 +0200
committerArthurHoaro <arthur@hoa.ro>2016-10-20 11:36:11 +0200
commit7af9a41881ed0b9d44d18a0ce03a123a8441adf5 (patch)
tree499d26ccee0d0df3aeac5fe9d27faf2800721698 /application/Utils.php
parentceeb8fbeb89f69e41791ae192d073d6afea00f4b (diff)
downloadShaarli-7af9a41881ed0b9d44d18a0ce03a123a8441adf5.tar.gz
Shaarli-7af9a41881ed0b9d44d18a0ce03a123a8441adf5.tar.zst
Shaarli-7af9a41881ed0b9d44d18a0ce03a123a8441adf5.zip
Minor code cleanup: PHPDoc, spelling, unused variables, etc.
Diffstat (limited to 'application/Utils.php')
-rw-r--r--application/Utils.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/application/Utils.php b/application/Utils.php
index 7d7eaffd..0166ee2a 100644
--- a/application/Utils.php
+++ b/application/Utils.php
@@ -32,6 +32,10 @@ function logm($logFile, $clientIp, $message)
32 * 32 *
33 * In Shaarli, they are used as a tinyurl-like link to individual entries, 33 * In Shaarli, they are used as a tinyurl-like link to individual entries,
34 * e.g. smallHash('20111006_131924') --> yZH23w 34 * e.g. smallHash('20111006_131924') --> yZH23w
35 *
36 * @param string $text Create a hash from this text.
37 *
38 * @return string generated small hash.
35 */ 39 */
36function smallHash($text) 40function smallHash($text)
37{ 41{
@@ -106,7 +110,9 @@ function unescape($str)
106} 110}
107 111
108/** 112/**
109 * Link sanitization before templating 113 * Sanitize link before rendering.
114 *
115 * @param array $link Link to escape.
110 */ 116 */
111function sanitizeLink(&$link) 117function sanitizeLink(&$link)
112{ 118{