| @@ -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 | } |