@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function process($languages, $files, $replace) { |
66 | 66 | return $this->handleNotFound( |
67 | - function () use ($languages, $files, $replace) { |
|
67 | + function() use ($languages, $files, $replace) { |
|
68 | 68 | return $this->service->process($languages, $files, $replace); |
69 | 69 | }); |
70 | 70 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function getAllJobs() { |
78 | 78 | return $this->handleNotFound( |
79 | - function () { |
|
79 | + function() { |
|
80 | 80 | return $this->service->getAllJobsForUser($this->userId); |
81 | 81 | }); |
82 | 82 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function deleteJob($id) { |
91 | 91 | return $this->handleNotFound( |
92 | - function () use ($id) { |
|
92 | + function() use ($id) { |
|
93 | 93 | return $this->service->deleteJob($id, $this->userId); |
94 | 94 | }); |
95 | 95 | } |
@@ -189,10 +189,10 @@ discard block |
||
189 | 189 | if ($fileInfo->getMimetype() === OcrConstants::MIME_TYPE_PDF) { |
190 | 190 | // PDFs: |
191 | 191 | if ($replace) { |
192 | - if($filePath === '/') { |
|
192 | + if ($filePath === '/') { |
|
193 | 193 | $filePath = ''; |
194 | 194 | } |
195 | - return $filePath . '/'. $fileName . '.pdf'; |
|
195 | + return $filePath . '/' . $fileName . '.pdf'; |
|
196 | 196 | } else { |
197 | 197 | return $this->fileUtil->buildNotExistingFilename($filePath, $fileName . '.pdf'); |
198 | 198 | } |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | if ($fileInfo->getMimetype() === OcrConstants::MIME_TYPE_PDF) { |
232 | 232 | // PDFs: |
233 | 233 | if ($replace) { |
234 | - if($filePath === '/') { |
|
234 | + if ($filePath === '/') { |
|
235 | 235 | $filePath = ''; |
236 | 236 | } |
237 | 237 | return $filePath . '/' . $fileName . '.pdf'; |
@@ -156,7 +156,7 @@ |
||
156 | 156 | foreach ($fileInfo as $fInfo) { |
157 | 157 | // Check Shared |
158 | 158 | $shared = $this->fileService->checkSharedWithInitiator($fInfo); |
159 | - if($shared && $replace) { |
|
159 | + if ($shared && $replace) { |
|
160 | 160 | throw new NotFoundException($this->l10n->t('Cannot replace shared files.')); |
161 | 161 | } |
162 | 162 | $target = $this->fileService->buildTarget($fInfo, $shared, $replace); |