Completed
Pull Request — master (#93)
by Janis
14:24
created
lib/Db/OcrJob.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 	 * @param string $target
79 79
 	 * @param null $tempFile
80 80
 	 * @param string $type
81
-	 * @param null $userId
81
+	 * @param string $userId
82 82
 	 * @param boolean $errorDisplayed
83 83
 	 */
84 84
 	public function __construct($status = null, $source = null, $target = null, $tempFile = null, $type = null, $userId = null, $errorDisplayed = null) {
Please login to merge, or discard this patch.
lib/Service/FileService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
 	/**
183 183
 	 * Removes ".txt" from the newName of a OCR job
184 184
 	 *
185
-	 * @param $job OcrJob        	
185
+	 * @param OcrJob $job OcrJob        	
186 186
 	 * @return string
187 187
 	 */
188 188
 	public function removeFileExtension($job) {
Please login to merge, or discard this patch.
lib/Service/JobService.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@
 block discarded – undo
245 245
 				if ($job->getType () === 'tess' && $this->fileService->fileExists ( $job->getTempFile () . '.txt' )) {
246 246
 					// Save the tmp file with newname
247 247
 					$this->view->file_put_contents ( $job->getTarget (), $this->fileService->getFileContents ( $job->getTempFile () . '.txt' ) ); // need .txt because tesseract saves it like this
248
-					                                                                                                                              // Cleaning temp files
248
+																																				  // Cleaning temp files
249 249
 					$this->jobMapper->delete ( $job );
250 250
 					$this->fileService->execRemove ( $job->getTempFile () . '.txt' );
251 251
 				} elseif ($job->getType () === 'mypdf' && $this->fileService->fileExists ( $job->getTempFile () )) {
Please login to merge, or discard this patch.
appinfo/routes.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
  * it's instantiated in there
19 19
  */
20 20
 return [
21
-    'routes' => [
21
+	'routes' => [
22 22
 		['name' => 'Job#process', 'url' => '/', 'verb' => 'POST'],
23
-    	['name' => 'Job#deleteJob', 'url' => '/', 'verb' => 'DELETE'],
24
-    	['name' => 'Job#getAllJobs', 'url' => '/', 'verb' => 'GET'],
23
+		['name' => 'Job#deleteJob', 'url' => '/', 'verb' => 'DELETE'],
24
+		['name' => 'Job#getAllJobs', 'url' => '/', 'verb' => 'GET'],
25 25
 		['name' => 'Status#getStatus', 'url' => '/status', 'verb' => 'GET'],
26
-    	// settings
27
-    	['name' => 'AdminSettings#setSettings', 'url' => '/admin', 'verb' => 'POST'],
28
-    	['name' => 'AdminSettings#getSettings', 'url' => '/settings', 'verb' => 'GET']
29
-    ]
26
+		// settings
27
+		['name' => 'AdminSettings#setSettings', 'url' => '/admin', 'verb' => 'POST'],
28
+		['name' => 'AdminSettings#getSettings', 'url' => '/settings', 'verb' => 'GET']
29
+	]
30 30
 ];
31 31
\ No newline at end of file
Please login to merge, or discard this patch.