Completed
Pull Request — master (#116)
by Janis
09:43
created
lib/Controller/JobController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
lib/Service/FileService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -189,10 +189,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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';
Please login to merge, or discard this patch.
lib/Service/JobService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.