@@ -11,6 +11,10 @@ |
||
11 | 11 | public $message; |
12 | 12 | public $old_declaration; |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $type |
|
16 | + * @param string $message |
|
17 | + */ |
|
14 | 18 | function __construct( $type, $path, $line, $message, $old_declaration ) { |
15 | 19 | $this->type = $type; |
16 | 20 | $this->path = $path; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * record_event |
50 | 50 | * |
51 | - * @param mixed $event Event object to send to Tracks. An array will be cast to object. Required. |
|
51 | + * @param Jetpack_Tracks_Event $event Event object to send to Tracks. An array will be cast to object. Required. |
|
52 | 52 | * Properties are included directly in the pixel query string after light validation. |
53 | 53 | * @return mixed True on success, WP_Error on failure |
54 | 54 | */ |
@@ -75,6 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Synchronously request the pixel |
78 | + * @param string $pixel |
|
78 | 79 | */ |
79 | 80 | static function record_pixel( $pixel ) { |
80 | 81 | // Add the Request Timestamp and URL terminator just before the HTTP request. |
@@ -149,6 +149,9 @@ discard block |
||
149 | 149 | |
150 | 150 | /** |
151 | 151 | * Helper function for Jetpack_Color::fromHsl() |
152 | + * @param double $p |
|
153 | + * @param double $q |
|
154 | + * @param integer $t |
|
152 | 155 | */ |
153 | 156 | private function hue2rgb( $p, $q, $t ) { |
154 | 157 | if ( $t < 0 ) $t += 1; |
@@ -498,7 +501,7 @@ discard block |
||
498 | 501 | * |
499 | 502 | * @param Jetpack_Color $color |
500 | 503 | * |
501 | - * @return int |
|
504 | + * @return double |
|
502 | 505 | */ |
503 | 506 | public function getDistanceRgbFrom(Jetpack_Color $color) |
504 | 507 | { |
@@ -687,6 +690,9 @@ discard block |
||
687 | 690 | return $this->incrementLightness( $amount ); |
688 | 691 | } |
689 | 692 | |
693 | + /** |
|
694 | + * @param integer $amount |
|
695 | + */ |
|
690 | 696 | public function incrementLightness( $amount ) { |
691 | 697 | $hsl = $this->toHsl(); |
692 | 698 | extract( $hsl ); |
@@ -704,6 +710,9 @@ discard block |
||
704 | 710 | return $this->incrementSaturation( - $amount ); |
705 | 711 | } |
706 | 712 | |
713 | + /** |
|
714 | + * @param integer $amount |
|
715 | + */ |
|
707 | 716 | public function incrementSaturation( $amount ) { |
708 | 717 | $hsl = $this->toHsl(); |
709 | 718 | extract( $hsl ); |
@@ -744,6 +753,9 @@ discard block |
||
744 | 753 | return $this->incrementHue( $incr ); |
745 | 754 | } |
746 | 755 | |
756 | + /** |
|
757 | + * @param integer $amount |
|
758 | + */ |
|
747 | 759 | public function incrementHue( $amount ) { |
748 | 760 | $hsl = $this->toHsl(); |
749 | 761 | extract( $hsl ); |