+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
* $Id$
*
*/
*/
protected function __construct() {
$this->_registered = FALSE;
- $this->civiTestClasses = array(
+ $this->civiTestClasses = [
'CiviCaseTestCase',
'CiviDBAssert',
'CiviMailUtils',
'Membership',
'Participant',
'PaypalPro',
- );
+ ];
}
/**
// CRM-11304
// TODO Remove this autoloader. For civicrm-core and civicrm-packages, the composer autoloader works fine.
// Extensions rely on include_path-based autoloading
- spl_autoload_register(array($this, 'loadClass'), TRUE, $prepend);
+ spl_autoload_register([$this, 'loadClass'], TRUE, $prepend);
$this->initHtmlPurifier($prepend);
$this->_registered = TRUE;
- $packages_path = implode(DIRECTORY_SEPARATOR, array($civicrm_base_path, 'packages'));
- $include_paths = array(
+ $packages_path = implode(DIRECTORY_SEPARATOR, [$civicrm_base_path, 'packages']);
+ $include_paths = [
'.',
$civicrm_base_path,
$packages_path,
- );
+ ];
$include_paths = implode(PATH_SEPARATOR, $include_paths);
set_include_path($include_paths . PATH_SEPARATOR . get_include_path());
// @todo Why do we need to load this again?
return;
}
require_once $htmlPurifierPath;
- spl_autoload_register(array('HTMLPurifier_Bootstrap', 'autoload'), TRUE, $prepend);
+ spl_autoload_register(['HTMLPurifier_Bootstrap', 'autoload'], TRUE, $prepend);
}
/**
// we do this to prevent a autoloader errors with joomla / 3rd party packages
// Use absolute path, since we don't know the content of include_path yet.
// CRM-11304
- $file = dirname(__FILE__) . '/../../packages/IDS/vendors/htmlpurifier/HTMLPurifier/Bootstrap.php';
+ $file = dirname(__FILE__) . '/../../packages/IDS/vendors/htmlpurifer/HTMLPurifier/Bootstrap.php';
if (file_exists($file)) {
return $file;
}