Skip to content

Commit aeb41f7

Browse files
committed
Followup fix of Automatic code style fixes
1 parent 9312c4b commit aeb41f7

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

action/editcommit.php

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
use dokuwiki\Search\Indexer;
4-
53
/**
64
* DokuWiki Plugin gitbacked (Action Component)
75
*
@@ -22,6 +20,7 @@
2220
use dokuwiki\Extension\ActionPlugin;
2321
use dokuwiki\Extension\EventHandler;
2422
use dokuwiki\Extension\Event;
23+
use dokuwiki\Search\Indexer;
2524

2625
use woolfg\dokuwiki\plugin\gitbacked\Git;
2726
use woolfg\dokuwiki\plugin\gitbacked\GitRepo;
@@ -305,7 +304,11 @@ public function handleIOWikiPageWrite(Event &$event, $param)
305304
*/
306305
public function notifyCreateNewError($repo_path, $reference, $error_message)
307306
{
308-
$template_replacements = ['GIT_REPO_PATH' => $repo_path, 'GIT_REFERENCE' => (empty($reference) ? 'n/a' : $reference), 'GIT_ERROR_MESSAGE' => $error_message];
307+
$template_replacements = [
308+
'GIT_REPO_PATH' => $repo_path,
309+
'GIT_REFERENCE' => (empty($reference) ? 'n/a' : $reference),
310+
'GIT_ERROR_MESSAGE' => $error_message
311+
];
309312
return $this->notifyByMail('mail_create_new_error_subject', 'mail_create_new_error', $template_replacements);
310313
}
311314

@@ -319,7 +322,10 @@ public function notifyCreateNewError($repo_path, $reference, $error_message)
319322
*/
320323
public function notifyRepoPathError($repo_path, $error_message)
321324
{
322-
$template_replacements = ['GIT_REPO_PATH' => $repo_path, 'GIT_ERROR_MESSAGE' => $error_message];
325+
$template_replacements = [
326+
'GIT_REPO_PATH' => $repo_path,
327+
'GIT_ERROR_MESSAGE' => $error_message
328+
];
323329
return $this->notifyByMail('mail_repo_path_error_subject', 'mail_repo_path_error', $template_replacements);
324330
}
325331

@@ -336,7 +342,13 @@ public function notifyRepoPathError($repo_path, $error_message)
336342
*/
337343
public function notifyCommandError($repo_path, $cwd, $command, $status, $error_message)
338344
{
339-
$template_replacements = ['GIT_REPO_PATH' => $repo_path, 'GIT_CWD' => $cwd, 'GIT_COMMAND' => $command, 'GIT_COMMAND_EXITCODE' => $status, 'GIT_ERROR_MESSAGE' => $error_message];
345+
$template_replacements = [
346+
'GIT_REPO_PATH' => $repo_path,
347+
'GIT_CWD' => $cwd,
348+
'GIT_COMMAND' => $command,
349+
'GIT_COMMAND_EXITCODE' => $status,
350+
'GIT_ERROR_MESSAGE' => $error_message
351+
];
340352
return $this->notifyByMail('mail_command_error_subject', 'mail_command_error', $template_replacements);
341353
}
342354

@@ -354,7 +366,11 @@ public function notifyCommandSuccess($repo_path, $cwd, $command)
354366
if (!$this->getConf('notifyByMailOnSuccess')) {
355367
return false;
356368
}
357-
$template_replacements = ['GIT_REPO_PATH' => $repo_path, 'GIT_CWD' => $cwd, 'GIT_COMMAND' => $command];
369+
$template_replacements = [
370+
'GIT_REPO_PATH' => $repo_path,
371+
'GIT_CWD' => $cwd,
372+
'GIT_COMMAND' => $command
373+
];
358374
return $this->notifyByMail('mail_command_success_subject', 'mail_command_success', $template_replacements);
359375
}
360376

0 commit comments

Comments
 (0)