From 2177d15cba5177afd2ad4a5d475b5c72de981331 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 19 Jan 2015 19:20:37 -0800 Subject: [PATCH] INFRA-132 - Drupal.Classes.ClassCreateInstance.ParenthesisMissing --- CRM/Core/Payment/BaseIPN.php | 2 +- CRM/Event/BAO/Participant.php | 2 +- CRM/Logging/Reverter.php | 2 +- CRM/Upgrade/Incremental/php/FourFive.php | 2 +- tests/phpunit/CRM/Event/AllTests.php | 2 +- tests/phpunit/CRM/Extension/Manager/AllTests.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CRM/Core/Payment/BaseIPN.php b/CRM/Core/Payment/BaseIPN.php index 9b90c4ed98..aaa911a2fb 100644 --- a/CRM/Core/Payment/BaseIPN.php +++ b/CRM/Core/Payment/BaseIPN.php @@ -429,7 +429,7 @@ FROM civicrm_membership_log WHERE membership_id=$membership->id ORDER BY id DESC LIMIT 1;"; - $dao = new CRM_Core_DAO; + $dao = new CRM_Core_DAO(); $dao->query($sql); if ($dao->fetch()) { if (!empty($dao->membership_type_id)) { diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index c4464a21bf..f1171b0063 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -113,7 +113,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant { $params['role_id'] = implode(CRM_Core_DAO::VALUE_SEPARATOR, $params['role_id']); } - $participantBAO = new CRM_Event_BAO_Participant; + $participantBAO = new CRM_Event_BAO_Participant(); if (!empty($params['id'])) { $participantBAO->id = CRM_Utils_Array::value('id', $params); $participantBAO->find(TRUE); diff --git a/CRM/Logging/Reverter.php b/CRM/Logging/Reverter.php index 803bf26b4c..d2dfd18bea 100644 --- a/CRM/Logging/Reverter.php +++ b/CRM/Logging/Reverter.php @@ -189,7 +189,7 @@ class CRM_Logging_Reverter { return; } - $dao = new CRM_Contact_DAO_Contact; + $dao = new CRM_Contact_DAO_Contact(); $dao->id = $cid; if ($dao->find(TRUE)) { // CRM-8102: MySQL can’t parse its own dates diff --git a/CRM/Upgrade/Incremental/php/FourFive.php b/CRM/Upgrade/Incremental/php/FourFive.php index 8a4b6b395b..8e81e4605b 100644 --- a/CRM/Upgrade/Incremental/php/FourFive.php +++ b/CRM/Upgrade/Incremental/php/FourFive.php @@ -272,7 +272,7 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`"; $dao = CRM_Core_DAO::executeQuery($query); if ($dao->N) { - $domain = new CRM_Core_DAO_Domain; + $domain = new CRM_Core_DAO_Domain(); $domain->find(TRUE); while ($dao->fetch()) { $honorParams = array('soft_credit' => array('soft_credit_types' => $honorTypes)); diff --git a/tests/phpunit/CRM/Event/AllTests.php b/tests/phpunit/CRM/Event/AllTests.php index d8ed62ea88..d029de66aa 100644 --- a/tests/phpunit/CRM/Event/AllTests.php +++ b/tests/phpunit/CRM/Event/AllTests.php @@ -47,7 +47,7 @@ class CRM_Event_AllTests extends CiviTestSuite { */ private static function getInstance() { if (is_null(self::$instance)) { - self::$instance = new self; + self::$instance = new self(); } return self::$instance; } diff --git a/tests/phpunit/CRM/Extension/Manager/AllTests.php b/tests/phpunit/CRM/Extension/Manager/AllTests.php index e66236ca1a..785086c224 100644 --- a/tests/phpunit/CRM/Extension/Manager/AllTests.php +++ b/tests/phpunit/CRM/Extension/Manager/AllTests.php @@ -47,7 +47,7 @@ class CRM_Extension_Manager_AllTests extends CiviTestSuite { */ private static function getInstance() { if (is_null(self::$instance)) { - self::$instance = new self; + self::$instance = new self(); } return self::$instance; } -- 2.25.1