| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
* Manage the download, validation, and rendering of community messages
/**
* Download document from URL and parse as JSON
*
- * @return NULL|array parsed JSON
+ * @return NULL|array
+ * parsed JSON
*/
public function fetchDocument() {
list($status, $json) = $this->client->get($this->getRenderedUrl());
* @return bool
*/
public function validateDocument($document) {
- if (!isset($document['ttl']) || !is_integer($document['ttl'])) {
+ if (!isset($document['ttl']) || !is_int($document['ttl'])) {
return FALSE;
}
- if (!isset($document['retry']) || !is_integer($document['retry'])) {
+ if (!isset($document['retry']) || !is_int($document['retry'])) {
return FALSE;
}
if (!isset($document['messages']) || !is_array($document['messages'])) {