IDE re-format of tools directory
[civicrm-core.git] / tools / extensions / org.civicrm.demoqueue / demoqueue.civix.php
index cfc2973f96640caf8fd2d8bf61bfb5d9c4fe56b6..2f643279ded3e7b1b0b4e2c96454c96a8543a2c1 100644 (file)
@@ -9,17 +9,18 @@
 function _demoqueue_civix_civicrm_config(&$config) {
   $template =& CRM_Core_Smarty::singleton();
 
-  $extRoot = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
+  $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
   $extDir = $extRoot . 'templates';
 
-  if ( is_array( $template->template_dir ) ) {
-      array_unshift( $template->template_dir, $extDir );
-  } else {
-      $template->template_dir = array( $extDir, $template->template_dir );
+  if (is_array($template->template_dir)) {
+    array_unshift($template->template_dir, $extDir);
+  }
+  else {
+    $template->template_dir = [$extDir, $template->template_dir];
   }
 
-  $include_path = $extRoot . PATH_SEPARATOR . get_include_path( );
-  set_include_path( $include_path );
+  $include_path = $extRoot . PATH_SEPARATOR . get_include_path();
+  set_include_path($include_path);
 }
 
 /**