|
@@ -53,7 +53,7 @@ discard block |
|
|
block discarded – undo |
|
53
|
53
|
* |
|
54
|
54
|
* @param string $object_type Type of the sync object. |
|
55
|
55
|
* @param int $id ID of the sync object. |
|
56
|
|
- * @return mixed Object, or false if the object is invalid. |
|
|
56
|
+ * @return boolean Object, or false if the object is invalid. |
|
57
|
57
|
*/ |
|
58
|
58
|
public function get_object_by_id( $object_type, $id ) { |
|
59
|
59
|
return false; |
|
@@ -152,8 +152,8 @@ discard block |
|
|
block discarded – undo |
|
152
|
152
|
* @access protected |
|
153
|
153
|
* |
|
154
|
154
|
* @param array $action_names Action names we're interested in. |
|
155
|
|
- * @param array $actions_to_count Unfiltered list of actions we want to count. |
|
156
|
|
- * @return array Number of actions that we're interested in. |
|
|
155
|
+ * @param string[] $actions_to_count Unfiltered list of actions we want to count. |
|
|
156
|
+ * @return integer Number of actions that we're interested in. |
|
157
|
157
|
*/ |
|
158
|
158
|
protected function count_actions( $action_names, $actions_to_count ) { |
|
159
|
159
|
return count( array_intersect( $action_names, $actions_to_count ) ); |
Please login to merge, or discard this patch.