code cleanup
This commit is contained in:
parent
a53b61775a
commit
86639cfe42
5 changed files with 23 additions and 23 deletions
|
@ -44,7 +44,7 @@ class CRM_TwingleCampaign_BAO_CustomGroup {
|
|||
$this->id = $this->results['id'];
|
||||
|
||||
if ($this->results['is_error'] == 0) {
|
||||
\Civi::log()->info("TwingleCampaign Extension has created a new custom group.
|
||||
Civi::log()->info("TwingleCampaign Extension has created a new custom group.
|
||||
title: $this->title
|
||||
name: $this->name
|
||||
extends: $this->extends
|
||||
|
@ -54,12 +54,12 @@ class CRM_TwingleCampaign_BAO_CustomGroup {
|
|||
}
|
||||
else {
|
||||
if ($this->title) {
|
||||
\Civi::log()->error("TwingleCampaign Extension could not create new custom group
|
||||
Civi::log()->error("TwingleCampaign Extension could not create new custom group
|
||||
for \"$this->title\": $this->results['error_message']"
|
||||
);
|
||||
}
|
||||
else {
|
||||
\Civi::log()->error("TwingleCampaign Extension could not create new
|
||||
Civi::log()->error("TwingleCampaign Extension could not create new
|
||||
custom group: $this->results['error_message']");
|
||||
}
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ class CRM_TwingleCampaign_BAO_CustomGroup {
|
|||
);
|
||||
|
||||
if ($this->results['is_error'] == 0) {
|
||||
\Civi::log()->info("TwingleCampaign Extension has deleted custom group.
|
||||
Civi::log()->info("TwingleCampaign Extension has deleted custom group.
|
||||
title: $this->title
|
||||
name: $this->name
|
||||
extends: $this->extends
|
||||
|
@ -142,12 +142,12 @@ class CRM_TwingleCampaign_BAO_CustomGroup {
|
|||
}
|
||||
else {
|
||||
if ($this->title) {
|
||||
\Civi::log()->error("TwingleCampaign Extension could not delete custom group
|
||||
Civi::log()->error("TwingleCampaign Extension could not delete custom group
|
||||
\"$this->title\": $this->results['error_message']"
|
||||
);
|
||||
}
|
||||
else {
|
||||
\Civi::log()->error("TwingleCampaign Extension could not delete custom group:
|
||||
Civi::log()->error("TwingleCampaign Extension could not delete custom group:
|
||||
$this->results['error_message']");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue