Skip to content

Commit 45c2ac4

Browse files
committed
fix indentation
Signed-off-by: Arthur Schiwon <[email protected]>
1 parent ee1f5ec commit 45c2ac4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/Operation.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
namespace OCA\WorkflowScript;
2525

26-
use OC\Files\View;
2726
use OC\Files\Filesystem;
27+
use OC\Files\View;
2828
use OCA\WorkflowEngine\Entity\File;
2929
use OCA\WorkflowScript\BackgroundJobs\Launcher;
3030
use OCP\BackgroundJob\IJobList;
@@ -35,10 +35,10 @@
3535
use OCP\Files\IRootFolder;
3636
use OCP\Files\Node;
3737
use OCP\Files\NotFoundException;
38+
use OCP\IConfig;
3839
use OCP\IL10N;
3940
use OCP\IUser;
4041
use OCP\IUserSession;
41-
use OCP\IConfig;
4242
use OCP\SystemTag\MapperEvent;
4343
use OCP\WorkflowEngine\IManager;
4444
use OCP\WorkflowEngine\IRuleMatcher;
@@ -78,17 +78,17 @@ protected function buildCommand(string $template, Node $node, string $event, arr
7878

7979
if (strpos($command, '%n')) {
8080
// Nextcloud relative-path
81-
$nodeID = -1;
82-
try {
83-
$nodeID = $node->getId();
84-
} catch (InvalidPathException $e) {
85-
} catch (NotFoundException $e) {
81+
$nodeID = -1;
82+
try {
83+
$nodeID = $node->getId();
84+
} catch (InvalidPathException $e) {
85+
} catch (NotFoundException $e) {
8686
}
87-
87+
8888
$base_path = $this->config->getSystemValue('datadirectory');
89-
89+
9090
$path = Filesystem::getLocalFile(Filesystem::getPath($nodeID));
91-
$command = str_replace('%n', escapeshellarg(str_replace($base_path . '/','',$path)), $command);
91+
$command = str_replace('%n', escapeshellarg(str_replace($base_path . '/', '', $path)), $command);
9292
}
9393

9494
if (false && strpos($command, '%f')) {

0 commit comments

Comments
 (0)