+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CiviCRM_Hook
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
*/
class CRM_Utils_Http {
* Parse the expiration time from a series of HTTP headers.
*
* @param array $headers
- * @return int|NULL
+ * @return int|null
* Expiration tme as seconds since epoch, or NULL if not cacheable.
*/
public static function parseExpiration($headers) {
* Ex: Array("max-age"=>86400, "public"=>1).
*/
public static function parseCacheControl($value) {
- $result = array();
+ $result = [];
$parts = preg_split('/, */', $value);
foreach ($parts as $part) {