@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * @copyright (c) 2007-2014 G. Giunta |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -if ($_SERVER['argc'] < 4) |
|
| 8 | +if ($_SERVER['argc']<4) |
|
| 9 | 9 | die("Usage: php convert.php docbook.xml \path\\to\stylesheet.xsl output-dir|output_file\n"); |
| 10 | 10 | else |
| 11 | 11 | echo "Starting xsl conversion process...\n"; |
@@ -26,14 +26,14 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | // Configure the transformer |
| 28 | 28 | $proc = new XSLTProcessor; |
| 29 | -if (version_compare(PHP_VERSION,'5.4',"<")) |
|
| 29 | +if (version_compare(PHP_VERSION, '5.4', "<")) |
|
| 30 | 30 | { |
| 31 | - if(defined('XSL_SECPREF_WRITE_FILE')) |
|
| 31 | + if (defined('XSL_SECPREF_WRITE_FILE')) |
|
| 32 | 32 | ini_set("xsl.security_prefs", XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_FILE); |
| 33 | 33 | } |
| 34 | 34 | else |
| 35 | 35 | { |
| 36 | - if(is_callable(array($proc, 'setSecurityPreferences'))) |
|
| 36 | + if (is_callable(array($proc, 'setSecurityPreferences'))) |
|
| 37 | 37 | { |
| 38 | 38 | $proc->setSecurityPreferences(XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_FILE); |
| 39 | 39 | } |