projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update spelling of htmlpurifier to be correct spelling
[civicrm-core.git]
/
CRM
/
Core
/
Task.php
diff --git
a/CRM/Core/Task.php
b/CRM/Core/Task.php
index 4f2a545b1fdfbda1152615e10f0424fd9b393a08..96724ea89fada5de9c9791a271223660711f3f36 100644
(file)
--- a/
CRM/Core/Task.php
+++ b/
CRM/Core/Task.php
@@
-70,7
+70,7
@@
abstract class CRM_Core_Task {
* This must be defined in each child class. It is passed to the searchTasks hook.
* Example: $objectType = 'event';
*/
* This must be defined in each child class. It is passed to the searchTasks hook.
* Example: $objectType = 'event';
*/
- static $objectType = NULL;
+
public
static $objectType = NULL;
/**
* Generates a list of batch tasks available for the current entities.
/**
* Generates a list of batch tasks available for the current entities.
@@
-98,7
+98,7
@@
abstract class CRM_Core_Task {
public static function taskTitles() {
static::tasks();
public static function taskTitles() {
static::tasks();
- $titles =
array()
;
+ $titles =
[]
;
foreach (self::$_tasks as $id => $value) {
$titles[$id] = $value['title'];
}
foreach (self::$_tasks as $id => $value) {
$titles[$id] = $value['title'];
}
@@
-175,10
+175,10
@@
abstract class CRM_Core_Task {
// Children can specify a default task (eg. print), pick another if it is not valid.
$value = key(self::$_tasks);
}
// Children can specify a default task (eg. print), pick another if it is not valid.
$value = key(self::$_tasks);
}
- return
array(
+ return
[
CRM_Utils_Array::value('class', self::$_tasks[$value]),
CRM_Utils_Array::value('result', self::$_tasks[$value]),
CRM_Utils_Array::value('class', self::$_tasks[$value]),
CRM_Utils_Array::value('result', self::$_tasks[$value]),
-
)
;
+
]
;
}
/**
}
/**
@@
-195,10
+195,10
@@
abstract class CRM_Core_Task {
if ((!empty($value['url']) || $task == self::TASK_EXPORT)
&& ((is_array($value['class']) && in_array($className, $value['class']))
|| ($value['class'] == $className))) {
if ((!empty($value['url']) || $task == self::TASK_EXPORT)
&& ((is_array($value['class']) && in_array($className, $value['class']))
|| ($value['class'] == $className))) {
- return
array($task, CRM_Utils_Array::value('title', $value))
;
+ return
[$task, CRM_Utils_Array::value('title', $value)]
;
}
}
}
}
- return
array()
;
+ return
[]
;
}
}
}
}