Commit ceaaa4ebe661196482bb16e707fbb296568eb38a
1 parent
3eef5e55
Code cleanup
Showing
1 changed file
with
8 additions
and
14 deletions
plugins/pdfConverter/pdfConverter.php
| ... | ... | @@ -54,17 +54,13 @@ class pdfConverter extends BaseProcessor |
| 54 | 54 | * |
| 55 | 55 | * @return pdfConverter |
| 56 | 56 | */ |
| 57 | - public function pdfConverter() | |
| 58 | - { | |
| 59 | - $config =& KTConfig::getSingleton(); | |
| 60 | - $javaServerUrl = $config->get('indexer/javaLuceneURL'); | |
| 61 | - $this->ooHost = $config->get('openoffice/host','127.0.0.1'); | |
| 62 | - $this->ooPort = $config->get('openoffice/port','8100'); | |
| 63 | - | |
| 64 | - $this->xmlrpc = XmlRpcLucene::get($javaServerUrl); | |
| 65 | - | |
| 66 | - | |
| 57 | + public function pdfConverter() { | |
| 58 | + $config =& KTConfig::getSingleton(); | |
| 59 | + $javaServerUrl = $config->get('indexer/javaLuceneURL'); | |
| 60 | + $this->ooHost = $config->get('openoffice/host','127.0.0.1'); | |
| 61 | + $this->ooPort = $config->get('openoffice/port','8100'); | |
| 67 | 62 | |
| 63 | + $this->xmlrpc = XmlRpcLucene::get($javaServerUrl); | |
| 68 | 64 | } |
| 69 | 65 | |
| 70 | 66 | /** |
| ... | ... | @@ -88,8 +84,7 @@ class pdfConverter extends BaseProcessor |
| 88 | 84 | * |
| 89 | 85 | * @return boolean |
| 90 | 86 | */ |
| 91 | - public function processDocument() | |
| 92 | - { | |
| 87 | + public function processDocument() { | |
| 93 | 88 | $oStorage = KTStorageManagerUtil::getSingleton(); |
| 94 | 89 | $path = $oStorage->temporaryFile($this->document); |
| 95 | 90 | $ext = KTMime::getFileType($this->document->getMimeTypeID()); |
| ... | ... | @@ -197,8 +192,7 @@ class pdfConverter extends BaseProcessor |
| 197 | 192 | * @param string $ext The extension of the file |
| 198 | 193 | * @return boolean |
| 199 | 194 | */ |
| 200 | - function convertFile($filename, $ext) | |
| 201 | - { | |
| 195 | + function convertFile($filename, $ext) { | |
| 202 | 196 | global $default; |
| 203 | 197 | $tempDir = $default->tmpDirectory; |
| 204 | 198 | ... | ... |