Completed
Push — master ( 313ff4...885da7 )
by Jean-Christophe
02:12
created
Ubiquity/utils/base/UString.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@  discard block
 block discarded – undo
17 17
 		return \substr($hay, -strlen($needle)) === $needle;
18 18
 	}
19 19
 
20
+	/**
21
+	 * @param boolean $value
22
+	 */
20 23
 	public static function getBooleanStr($value) {
21 24
 		$ret="false";
22 25
 		if ($value)
@@ -81,6 +84,9 @@  discard block
 block discarded – undo
81 84
 		return $result;
82 85
 	}
83 86
 
87
+	/**
88
+	 * @param string $attr
89
+	 */
84 90
 	public static function cleanAttribute($attr, $replacement="_") {
85 91
 		$result=preg_replace('/[^a-zA-Z0-9\-]/s', $replacement, $attr);
86 92
 		return \str_replace($replacement . $replacement, $replacement, $result);
Please login to merge, or discard this patch.