X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FDashboard.php;h=b343429cb792ea03f1a4e348d7cd8a40b1ea4567;hb=5d2d8718b77fcf6f74f48f15df7101c79115e975;hp=504d59c11332fbe764ae01bad076817efa4c074b;hpb=00b6a86445c6d510566b2703245d21eee8125256;p=civicrm-core.git diff --git a/api/v3/Dashboard.php b/api/v3/Dashboard.php index 504d59c113..b343429cb7 100644 --- a/api/v3/Dashboard.php +++ b/api/v3/Dashboard.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -31,7 +31,6 @@ * @package CiviCRM_APIv3 */ - /** * Creates or updates an Dashlet. * @@ -41,13 +40,12 @@ * Array containing 'is_error' to denote success or failure and details of the created activity */ function civicrm_api3_dashboard_create($params) { - civicrm_api3_verify_one_mandatory($params, NULL, array( - 'name', - 'label', - 'url', - 'fullscreen_url', - ) - ); + civicrm_api3_verify_one_mandatory($params, NULL, [ + 'name', + 'label', + 'url', + 'fullscreen_url', + ]); return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'Dashboard'); }