break;
case CRM_Core_Action::UPDATE:
- if (! CRM_Extension_System::singleton()->getBrowser()->isEnabled()) {
+ if (!CRM_Extension_System::singleton()->getBrowser()->isEnabled()) {
CRM_Core_Error::fatal(ts('The system administrator has disabled this feature.'));
}
$info = CRM_Extension_System::singleton()->getBrowser()->getExtension($this->_key);
switch ($this->_action) {
case CRM_Core_Action::ADD:
$buttonName = ts('Install');
- $title = ts('Install ' . $extName . '?');
+ $title = ts('Install ' . $extName . '?');
break;
case CRM_Core_Action::UPDATE:
$buttonName = ts('Download and Install');
- $title = ts('Download and Install ' . $extName . '?');
+ $title = ts('Download and Install ' . $extName . '?');
break;
case CRM_Core_Action::DELETE:
* @param array $self
* This object.
*
- * @return true if no errors, else an array of errors
- * @static
+ * @return bool|array
+ * true if no errors, else an array of errors
*/
public static function formRule($fields, $files, $self) {
$errors = array();
'version' => 3,
'key' => $this->_key,
));
- if (! CRM_Utils_Array::value('is_error', $result, FALSE)) {
+ if (!CRM_Utils_Array::value('is_error', $result, FALSE)) {
CRM_Core_Session::setStatus("", ts('Extension Upgraded'), "success");
}
else {