INFRA-132 - xml/ - phpcbf
authorTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 21:37:01 +0000 (13:37 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 23:07:45 +0000 (15:07 -0800)
xml/GenCode.php
xml/plugins/block.ts.php

index e2ca3fa7bc10e91711a3486c9cff3a1fc749f08b..9a2fb79bd63c63ce3362ee0159fade7bb70b7b4d 100644 (file)
@@ -5,13 +5,13 @@ $memLimitString = trim(ini_get('memory_limit'));
 $memLimitUnit   = strtolower(substr($memLimitString, -1));
 $memLimit       = (int) $memLimitString;
 switch ($memLimitUnit) {
-    case 'g': $memLimit *= 1024;
-    case 'm': $memLimit *= 1024;
-    case 'k': $memLimit *= 1024;
+  case 'g': $memLimit *= 1024;
+  case 'm': $memLimit *= 1024;
+  case 'k': $memLimit *= 1024;
 }
 
 if ($memLimit >= 0 and $memLimit < 536870912) {
-    ini_set('memory_limit', '512M');
+  ini_set('memory_limit', '512M');
 }
 date_default_timezone_set('UTC'); // avoid php warnings if timezone is not set - CRM-10844
 
@@ -22,14 +22,14 @@ CRM_Core_ClassLoader::singleton()->register();
 
 # TODO: pull these settings from configuration
 $genCode = new CRM_Core_CodeGen_Main(
-  '../CRM/Core/DAO/',                                                         // $CoreDAOCodePath
-  '../sql/',                                                                  // $sqlCodePath
-  '../',                                                                      // $phpCodePath
-  '../templates/',                                                            // $tplCodePath
-  array('../packages/Smarty/plugins', '../CRM/Core/Smarty/plugins'),          // smarty plugin dirs
-  @$argv[3],                                                                  // cms
-  empty($argv[2]) ? NULL : $argv[2],                                          // db version
-  empty($argv[1]) ? 'schema/Schema.xml' : $argv[1],                           // schema file
+  '../CRM/Core/DAO/', // $CoreDAOCodePath
+  '../sql/', // $sqlCodePath
+  '../', // $phpCodePath
+  '../templates/', // $tplCodePath
+  array('../packages/Smarty/plugins', '../CRM/Core/Smarty/plugins'), // smarty plugin dirs
+  @$argv[3], // cms
+  empty($argv[2]) ? NULL : $argv[2], // db version
+  empty($argv[1]) ? 'schema/Schema.xml' : $argv[1], // schema file
   getenv('CIVICRM_GENCODE_DIGEST') ? getenv('CIVICRM_GENCODE_DIGEST') : NULL  // path to digest file
 );
-$genCode->main();
\ No newline at end of file
+$genCode->main();
index 56fbe713ba9e88a80188bc11d4e0368830f05880..a610ec0901d62219dd15d40f2e0835fb7828c553 100644 (file)
@@ -9,4 +9,3 @@
 function smarty_block_ts($params, $text, &$smarty) {
   return ts($text, $params);
 }
-