Completed
Push — master ( dfd287...55fef6 )
by Nicholas
02:24
created
src/error.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 	 * Simply triggers a E_USER_WARNING error with $message
59 59
 	 * 
60 60
 	 * @param  string $message The message describing the error
61
-	 * @return void
61
+	 * @return boolean
62 62
 	 */
63 63
 	protected static function trigger(string $message) {
64 64
 		return trigger_error($message, E_USER_WARNING);
Please login to merge, or discard this patch.
src/generate.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,12 +72,12 @@
 block discarded – undo
72 72
 	/**
73 73
 	 * Generate a random HSL color
74 74
 	 * 
75
-	 * @param  int $min_r The min hue to allow
76
-	 * @param  int $max_r The max hue to allow
77
-	 * @param  int $min_g The min saturation to allow
78
-	 * @param  int $max_g The max saturation to allow
79
-	 * @param  int $min_b The min light to allow
80
-	 * @param  int $max_b The max light to allow
75
+	 * @param  int $min_h The min hue to allow
76
+	 * @param  int $max_h The max hue to allow
77
+	 * @param  int $min_h The min saturation to allow
78
+	 * @param  int $max_h The max saturation to allow
79
+	 * @param  int $min_h The min light to allow
80
+	 * @param  int $max_h The max light to allow
81 81
 	 * @return array      The resulting color as a HSL array
82 82
 	 */
83 83
 	public static function hsl_rand(int $min_h = 0, int $max_h = 359, int $min_s = 0, int $max_s = 100, int $min_l = 0, int $max_l = 100) :array {
Please login to merge, or discard this patch.
src/hsl.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 * 
79 79
 	 * @param  string $offset The offset to set
80 80
 	 * @param  mixed  $value  The value to set it to
81
-	 * @return mixed          The result
81
+	 * @return double|null          The result
82 82
 	 */
83 83
 	public function offsetSet($offset, $value) {
84 84
 		if ($this->offsetExists($offset)) {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	 * Reset an offset to 0
96 96
 	 * 
97 97
 	 * @param  string $offset The offset to unset
98
-	 * @return mixed          The result
98
+	 * @return double|null          The result
99 99
 	 */
100 100
 	public function offsetUnset($offset) {
101 101
 		if ($this->offsetExists($offset)) {
Please login to merge, or discard this patch.
src/main_peripheral.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
51 51
 		return $this->color->jsonSerialize();
52 52
 	}
53 53
 	
54
+	/**
55
+	 * @param scheme $scheme_class
56
+	 */
54 57
 	protected function get_scheme(string $scheme_name, string $return_type = 'hex', $scheme_class) :array {
55 58
 		if (!is_null($cached = $this->cache->get(get_class($scheme_class).'_'.$scheme_name.'_'.$return_type, $this->hex()))) {
56 59
 			return $cached;
Please login to merge, or discard this patch.
src/regulate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
 	 * '000000'
182 182
 	 * 
183 183
 	 * @param  string &$hex_str The hex string to modify
184
-	 * @return void
184
+	 * @return boolean
185 185
 	 */
186 186
 	public static function _validate_hex_str(string &$hex_str, bool $check_only = FALSE) :bool {
187 187
 		if (preg_match('/\A#?(?:[0-9a-f]{3}|[0-9a-f]{6})\Z/i', $hex_str)) {
Please login to merge, or discard this patch.
src/traits/converter.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -14,10 +14,16 @@  discard block
 block discarded – undo
14 14
  */
15 15
 trait converter {
16 16
 	
17
+	/**
18
+	 * @param string $message
19
+	 */
17 20
 	protected static function error($message) {
18 21
 		return \projectcleverweb\color\error::call($message);
19 22
 	}
20 23
 	
24
+	/**
25
+	 * @return double
26
+	 */
21 27
 	protected static function _validate_array_input($input) {
22 28
 		if (!is_array($input)) {
23 29
 			static::error(sprintf(
@@ -43,6 +49,9 @@  discard block
 block discarded – undo
43 49
 		return $array;
44 50
 	}
45 51
 	
52
+	/**
53
+	 * @return string
54
+	 */
46 55
 	public static function _validate_hex_input($input) {
47 56
 		if (is_int($input)) {
48 57
 			return str_pad(dechex($input % 16777216), 6, '0', STR_PAD_LEFT);
Please login to merge, or discard this patch.