@@ -24,6 +24,10 @@ discard block |
||
24 | 24 | return $comment_id; |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $action_id |
|
29 | + * @param string $message |
|
30 | + */ |
|
27 | 31 | protected function create_wp_comment( $action_id, $message, DateTime $date ) { |
28 | 32 | |
29 | 33 | $comment_date_gmt = $date->format('Y-m-d H:i:s'); |
@@ -83,6 +87,11 @@ discard block |
||
83 | 87 | return $logs; |
84 | 88 | } |
85 | 89 | |
90 | + /** |
|
91 | + * @param string $comment_id |
|
92 | + * |
|
93 | + * @return DateTime|null |
|
94 | + */ |
|
86 | 95 | protected function get_comment( $comment_id ) { |
87 | 96 | return get_comment( $comment_id ); |
88 | 97 | } |
@@ -105,7 +105,6 @@ |
||
105 | 105 | * |
106 | 106 | * Based on Crontrol::interval() function by Edward Dale: https://wordpress.org/plugins/wp-crontrol/ |
107 | 107 | * |
108 | - * @param int $interval A interval in seconds. |
|
109 | 108 | * @return string A human friendly string representation of the interval. |
110 | 109 | */ |
111 | 110 | public static function admin_notices() { |