Completed
Push — master ( 3a0750...56d871 )
by Jean-Christophe
01:41
created
Ubiquity/utils/base/UString.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
 		return filter_var($s, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE)===false;
41 41
 	}
42 42
 
43
+	/**
44
+	 * @param string|boolean $value
45
+	 */
43 46
 	public static function isBoolean($value) {
44 47
 		return \is_bool($value);
45 48
 	}
@@ -75,6 +78,10 @@  discard block
 block discarded – undo
75 78
 		return $newstring;
76 79
 	}
77 80
 	
81
+	/**
82
+	 * @param string $pattern
83
+	 * @param string $replacement
84
+	 */
78 85
 	public static function replaceFirstOccurrence($pattern, $replacement, $subject){
79 86
 		$pattern = '/'.preg_quote($pattern, '/').'/';
80 87
 		return preg_replace($pattern, $replacement, $subject, 1);
Please login to merge, or discard this patch.