@@ -18,11 +18,11 @@ |
||
18 | 18 | * it's instantiated in there |
19 | 19 | */ |
20 | 20 | return [ |
21 | - 'routes' => [ |
|
21 | + 'routes' => [ |
|
22 | 22 | ['name' => 'ocr#process', 'url' => '/', 'verb' => 'POST'], |
23 | 23 | ['name' => 'ocr#languages', 'url' => '/', 'verb' => 'GET'], |
24 | 24 | ['name' => 'ocr#status', 'url' => '/status', 'verb' => 'GET'], |
25 | 25 | ['name' => 'PersonalSettings#deleteStatus', 'url' => '/settings/personal', 'verb' => 'DELETE'], |
26 | 26 | ['name' => 'PersonalSettings#getAll', 'url' => '/settings/personal', 'verb' => 'GET'] |
27 | - ] |
|
27 | + ] |
|
28 | 28 | ]; |
29 | 29 | \ No newline at end of file |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | $share = $this->shareMapper->find($fileInfo->getFileid(), $this->userId, str_replace('home::', '', $fileInfo->getStoragename())); |
322 | 322 | |
323 | 323 | // get rid of the .png or .pdf and so on |
324 | - $fileName = substr($share->getFileTarget(), 0 , (strrpos($share->getFileTarget(), '.'))); // '/thedom.png' => '/thedom' || '/Test/thedom.png' => '/Test/thedom' |
|
324 | + $fileName = substr($share->getFileTarget(), 0, (strrpos($share->getFileTarget(), '.'))); // '/thedom.png' => '/thedom' || '/Test/thedom.png' => '/Test/thedom' |
|
325 | 325 | |
326 | 326 | // remove everything in front of and including of the first appearance of a slash from behind |
327 | 327 | $fileName = substr(strrchr($fileName, "/"), 1); // '/thedom' => 'thedom' || '/Test/thedom' => 'thedom' |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | protected function buildTarget(File $fileInfo) { |
360 | 360 | try { |
361 | 361 | // get rid of the .png or .pdf and so on |
362 | - $fileName = substr($fileInfo->getName(), 0 , (strrpos($fileInfo->getName(), '.'))); // 'thedom.png' => 'thedom' |
|
362 | + $fileName = substr($fileInfo->getName(), 0, (strrpos($fileInfo->getName(), '.'))); // 'thedom.png' => 'thedom' |
|
363 | 363 | |
364 | 364 | // eliminate the file name from the path |
365 | 365 | $filePath = str_replace($fileInfo->getName(), '', $fileInfo->getPath()); // 'files/Test/thedom.png' => 'files/Test/' || 'files/thedom.png' => 'files/' |