Test Failed
Push — master ( 55fef6...abcf31 )
by Nicholas
02:23
created
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/scheme.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -333,6 +333,7 @@
 block discarded – undo
333 333
 	 * @param  float $h The hue degree (0 - 359)
334 334
 	 * @param  float $s The saturation percentage (0 - 100)
335 335
 	 * @param  float $l The lighting percentage (0 - 100)
336
+	 * @param boolean|null $is_dark
336 337
 	 * @return void
337 338
 	 */
338 339
 	protected static function is_dark(&$is_dark, float $h = 0.0, float $s = 0.0, float $l = 0.0) {
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/data/color_space.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	/**
72 72
 	 * Import a value according to its specification
73 73
 	 * 
74
-	 * @param  array  $value The value to import
74
+	 * @param  double  $value The value to import
75 75
 	 * @param  string $key   The key being imported
76 76
 	 * @param  array  $spec  The specification to follow
77 77
 	 * @return void
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 	/**
320 320
 	 * DISABLED
321 321
 	 * 
322
-	 * @param  mixed $disabled Disabled
322
+	 * @param  mixed $disbaled Disabled
323 323
 	 * @return void
324 324
 	 * @codeCoverageIgnore
325 325
 	 */
Please login to merge, or discard this patch.
src/error.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 	 * Triggers a E_USER_WARNING error with $message
111 111
 	 * 
112 112
 	 * @param  string $message The message describing the error
113
-	 * @return void
113
+	 * @return boolean
114 114
 	 */
115 115
 	protected static function standard(string $message, int $code = 0) {
116 116
 		if (!isset(static::$type_map[$code])) {
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::trigger(0, $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.