PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/class-collector.php +3 -1 18.928.5 View file →
@@ -20,8 +20,10 @@
20 20 /**
21 21 * Adds a collection object to the collections.
22 22 *
23 23 * @param WPSEO_Collection $collection The collection object to add.
24 + *
25 + * @return void
24 26 */
25 27 public function add_collection( WPSEO_Collection $collection ) {
26 28 $this->collections[] = $collection;
27 29 }
@@ -43,9 +45,9 @@
43 45
44 46 /**
45 47 * Returns the collected data as a JSON encoded string.
46 48 *
47 - * @return false|string The encode string.
49 + * @return string|false The encode string.
48 50 */
49 51 public function get_as_json() {
50 52 return WPSEO_Utils::format_json_encode( $this->collect() );
51 53 }