Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pfigel committed Jul 12, 2019
1 parent f1273d3 commit ea63431
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# at.greenpeace.droptrigger
# Drop CiviCRM Database Triggers

This extension allows the removal of database triggers set by CiviCRM,
using the `hook_civicrm_triggerInfo` hook.
Expand Down
8 changes: 3 additions & 5 deletions droptrigger.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ function _droptrigger_civix_civicrm_disable() {
* @param $op string, the type of operation being performed; 'check' or 'enqueue'
* @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks
*
* @return mixed based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending)
* for 'enqueue', returns void
* @return array
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
*/
Expand Down Expand Up @@ -254,6 +253,7 @@ function _droptrigger_civix_find_files($dir, $pattern) {
}
return $result;
}

/**
* (Delegated) Implements hook_civicrm_managed().
*
Expand Down Expand Up @@ -448,8 +448,6 @@ function _droptrigger_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NUL
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
*/

function _droptrigger_civix_civicrm_entityTypes(&$entityTypes) {
$entityTypes = array_merge($entityTypes, array (
));
$entityTypes = array_merge($entityTypes, []);
}
7 changes: 3 additions & 4 deletions droptrigger.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php

require_once 'droptrigger.civix.php';
use CRM_Droptrigger_ExtensionUtil as E;

/**
* Implements hook_civicrm_config().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
*/
function droptrigger_civicrm_config(&$config) {
_droptrigger_civix_civicrm_config($config);
Expand Down Expand Up @@ -141,7 +140,7 @@ function droptrigger_civicrm_triggerInfo(&$info, $tableName) {
'table' => '/^civicrm_activity$/',
'when' => '/^BEFORE$/',
'sql' => '/civicrm_case/',
]
],
];
foreach ($info as $id => $triggerInfo) {
$dropTrigger = FALSE;
Expand All @@ -164,4 +163,4 @@ function droptrigger_civicrm_triggerInfo(&$info, $tableName) {
unset($info[$id]);
}
}
}
}

0 comments on commit ea63431

Please sign in to comment.