* @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 mixed
+ * based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending)
+ * for 'enqueue', returns void
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
*/
* @param string $dir base dir
* @param string $pattern , glob pattern, eg "*.txt"
*
- * @return array(string)
+ * @return array
*/
function _afform_civix_find_files($dir, $pattern) {
if (is_callable(['CRM_Utils_File', 'findFiles'])) {
if ($dh = opendir($subdir)) {
while (FALSE !== ($entry = readdir($dh))) {
$path = $subdir . DIRECTORY_SEPARATOR . $entry;
- if ($entry{0} == '.') {
+ if ($entry[0] == '.') {
}
elseif (is_dir($path)) {
$todos[] = $path;
}
return $result;
}
+
/**
* (Delegated) Implements hook_civicrm_managed().
*
* @link http://php.net/glob
* @param string $pattern
*
- * @return array, possibly empty
+ * @return array
*/
function _afform_civix_glob($pattern) {
$result = glob($pattern);
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
*/
-
function _afform_civix_civicrm_entityTypes(&$entityTypes) {
- $entityTypes = array_merge($entityTypes, array (
- ));
+ $entityTypes = array_merge($entityTypes, []);
}
* @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 mixed
+ * based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending)
+ * for 'enqueue', returns void
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
*/
* @param string $dir base dir
* @param string $pattern , glob pattern, eg "*.txt"
*
- * @return array(string)
+ * @return array
*/
function _afform_gui_civix_find_files($dir, $pattern) {
if (is_callable(['CRM_Utils_File', 'findFiles'])) {
if ($dh = opendir($subdir)) {
while (FALSE !== ($entry = readdir($dh))) {
$path = $subdir . DIRECTORY_SEPARATOR . $entry;
- if ($entry{0} == '.') {
+ if ($entry[0] == '.') {
}
elseif (is_dir($path)) {
$todos[] = $path;
}
return $result;
}
+
/**
* (Delegated) Implements hook_civicrm_managed().
*
* @link http://php.net/glob
* @param string $pattern
*
- * @return array, possibly empty
+ * @return array
*/
function _afform_gui_civix_glob($pattern) {
$result = glob($pattern);
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
*/
-
function _afform_gui_civix_civicrm_entityTypes(&$entityTypes) {
- $entityTypes = array_merge($entityTypes, array (
- ));
+ $entityTypes = array_merge($entityTypes, []);
}
* @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 mixed
+ * based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending)
+ * for 'enqueue', returns void
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
*/
* @param string $dir base dir
* @param string $pattern , glob pattern, eg "*.txt"
*
- * @return array(string)
+ * @return array
*/
function _afform_html_civix_find_files($dir, $pattern) {
if (is_callable(['CRM_Utils_File', 'findFiles'])) {
if ($dh = opendir($subdir)) {
while (FALSE !== ($entry = readdir($dh))) {
$path = $subdir . DIRECTORY_SEPARATOR . $entry;
- if ($entry{0} == '.') {
+ if ($entry[0] == '.') {
}
elseif (is_dir($path)) {
$todos[] = $path;
}
return $result;
}
+
/**
* (Delegated) Implements hook_civicrm_managed().
*
* @link http://php.net/glob
* @param string $pattern
*
- * @return array, possibly empty
+ * @return array
*/
function _afform_html_civix_glob($pattern) {
$result = glob($pattern);
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
*/
-
function _afform_html_civix_civicrm_entityTypes(&$entityTypes) {
- $entityTypes = array_merge($entityTypes, array (
- ));
+ $entityTypes = array_merge($entityTypes, []);
}
* @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 mixed
+ * based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending)
+ * for 'enqueue', returns void
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
*/
* @param string $dir base dir
* @param string $pattern , glob pattern, eg "*.txt"
*
- * @return array(string)
+ * @return array
*/
function _afform_mock_civix_find_files($dir, $pattern) {
if (is_callable(['CRM_Utils_File', 'findFiles'])) {
if ($dh = opendir($subdir)) {
while (FALSE !== ($entry = readdir($dh))) {
$path = $subdir . DIRECTORY_SEPARATOR . $entry;
- if ($entry{0} == '.') {
+ if ($entry[0] == '.') {
}
elseif (is_dir($path)) {
$todos[] = $path;
}
return $result;
}
+
/**
* (Delegated) Implements hook_civicrm_managed().
*
* @link http://php.net/glob
* @param string $pattern
*
- * @return array, possibly empty
+ * @return array
*/
function _afform_mock_civix_glob($pattern) {
$result = glob($pattern);
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
*/
-
function _afform_mock_civix_civicrm_entityTypes(&$entityTypes) {
- $entityTypes = array_merge($entityTypes, array (
- ));
+ $entityTypes = array_merge($entityTypes, []);
}