From 41b74a9c49a36b04941b34c11fbfa60e32f0740a Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Fri, 17 Jan 2020 19:02:32 +0000 Subject: [PATCH] Remove unused parameter from function --- CRM/Admin/Page/Job.php | 4 +--- CRM/Admin/Page/JobLog.php | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/CRM/Admin/Page/Job.php b/CRM/Admin/Page/Job.php index 9d785c876bfa..f2eed5d69c93 100644 --- a/CRM/Admin/Page/Job.php +++ b/CRM/Admin/Page/Job.php @@ -136,10 +136,8 @@ public function run() { /** * Browse all jobs. - * - * @param null $action */ - public function browse($action = NULL) { + public function browse() { // check if non-prod mode is enabled. if (CRM_Core_Config::environment() != 'Production') { CRM_Core_Session::setStatus(ts('Execution of scheduled jobs has been turned off by default since this is a non-production environment. You can override this for particular jobs by adding runInNonProductionEnvironment=TRUE as a parameter.'), ts("Non-production Environment"), "warning", array('expires' => 0)); diff --git a/CRM/Admin/Page/JobLog.php b/CRM/Admin/Page/JobLog.php index 81997a67d7c9..6f23cf0857c6 100644 --- a/CRM/Admin/Page/JobLog.php +++ b/CRM/Admin/Page/JobLog.php @@ -71,11 +71,8 @@ public function run() { /** * Browse all jobs. - * - * @param null $action */ - public function browse($action = NULL) { - + public function browse() { $jid = CRM_Utils_Request::retrieve('jid', 'Positive', $this); $sj = new CRM_Core_JobManager();