@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @param string $object_type Type of the sync object. |
69 | 69 | * @param int $id ID of the sync object. |
70 | - * @return mixed Object, or false if the object is invalid. |
|
70 | + * @return boolean Object, or false if the object is invalid. |
|
71 | 71 | */ |
72 | 72 | public function get_object_by_id( $object_type, $id ) { |
73 | 73 | return false; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * @param float $send_until timestamp until we want this request to send full sync events. |
144 | 144 | * @param boolean $state True if full sync has finished enqueueing this module, false otherwise. |
145 | 145 | * |
146 | - * @return array Number of actions sent, and next module state. |
|
146 | + * @return integer[] Number of actions sent, and next module state. |
|
147 | 147 | */ |
148 | 148 | public function send_full_sync_actions( $config, $send_until, $state ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
149 | 149 | // In subclasses, return the number of actions sent, and next module state (true == done). |
@@ -182,8 +182,8 @@ discard block |
||
182 | 182 | * @access protected |
183 | 183 | * |
184 | 184 | * @param array $action_names Action names we're interested in. |
185 | - * @param array $actions_to_count Unfiltered list of actions we want to count. |
|
186 | - * @return array Number of actions that we're interested in. |
|
185 | + * @param string[] $actions_to_count Unfiltered list of actions we want to count. |
|
186 | + * @return integer Number of actions that we're interested in. |
|
187 | 187 | */ |
188 | 188 | protected function count_actions( $action_names, $actions_to_count ) { |
189 | 189 | return count( array_intersect( $action_names, $actions_to_count ) ); |