@@ -155,7 +155,7 @@ public function runOcrProcess(int $fileId, string $uid, WorkflowSettings $settin
155155
156156 $ ocrProcessor = $ this ->ocrProcessorFactory ->create ($ file ->getMimeType ());
157157 $ globalSettings = $ this ->globalSettingsService ->getGlobalSettings ();
158-
158+
159159 try {
160160 $ result = $ ocrProcessor ->ocrFile ($ file , $ settings , $ globalSettings );
161161 } catch (OcrAlreadyDoneException $ ex ) {
@@ -181,9 +181,9 @@ private function parseArguments($argument) : array {
181181 throw new \InvalidArgumentException ('Argument is not an array in ' . self ::class . ' method \'tryParseArguments \'. ' );
182182 }
183183
184- $ getArgument = fn ($ key ) => array_key_exists ($ key , $ argument ) ?
185- $ argument [$ key ] :
186- throw new \InvalidArgumentException ("Argument key ' $ key' not found in " . self ::class . ' method \'tryParseArguments \'. ' );
184+ $ getArgument = fn ($ key ) => array_key_exists ($ key , $ argument )
185+ ? $ argument [$ key ]
186+ : throw new \InvalidArgumentException ("Argument key ' $ key' not found in " . self ::class . ' method \'tryParseArguments \'. ' );
187187
188188 $ jsonSettings = $ getArgument ('settings ' );
189189 $ settings = new WorkflowSettings ($ jsonSettings );
@@ -222,7 +222,7 @@ private function getNode(int $fileId) : Node {
222222 if (count ($ nodeArr ) === 0 ) {
223223 throw new NotFoundException ('Could not process file with id \'' . $ fileId . '\'. File was not found ' );
224224 }
225-
225+
226226 $ node = array_shift ($ nodeArr );
227227
228228 if (!$ node instanceof Node || $ node ->getType () !== FileInfo::TYPE_FILE ) {
@@ -263,7 +263,7 @@ private function processTagsAfterSuccessfulOcr(File $file, WorkflowSettings $set
263263 private function createNewFileVersion (string $ filePath , string $ ocrContent , ?int $ fileMtime = null ) : void {
264264 $ dirPath = dirname ($ filePath );
265265 $ filename = basename ($ filePath );
266-
266+
267267 $ this ->processingFileAccessor ->setCurrentlyProcessedFilePath ($ filePath );
268268
269269 try {
0 commit comments