Skip to content

Commit 13d174d

Browse files
committed
Last codestyle I hope
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
1 parent d167f62 commit 13d174d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

administrator/components/com_patchtester/src/Model/PullModel.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,8 @@ private function applyWithGitHub(int $id): bool
569569

570570
if (
571571
$file->action === 'modified'
572-
&& !file_exists(JPATH_ROOT . '/' . $file->filename)) {
572+
&& !file_exists(JPATH_ROOT . '/' . $file->filename)
573+
) {
573574
throw new RuntimeException(
574575
Text::sprintf(
575576
'COM_PATCHTESTER_FILE_MODIFIED_DOES_NOT_EXIST_S',
@@ -881,9 +882,7 @@ public function revertWithCIServer(int $id): bool
881882
}
882883

883884
// If folder is empty, remove it as well
884-
if (count(glob(JPATH_ROOT . '/' . $filePath . '/*'))
885-
=== 0
886-
) {
885+
if (count(glob(JPATH_ROOT . '/' . $filePath . '/*')) === 0) {
887886
Folder::delete(JPATH_ROOT . '/' . $filePath);
888887
}
889888
} elseif (file_exists($backupsPath . '/' . $file)) {
@@ -1042,11 +1041,10 @@ public function revertWithGitHub(int $id): bool
10421041

10431042
break;
10441043
case 'renamed':
1045-
$originalSrc = JPATH_COMPONENT . '/backups/' . md5(
1046-
$file->originalFile
1047-
) . '.txt';
1044+
$originalSrc = JPATH_COMPONENT . '/backups/' . md5($file->originalFile) . '.txt';
10481045
$newSrc = JPATH_ROOT . '/' . $file->filename;
10491046
$dest = JPATH_ROOT . '/' . $file->originalFile;
1047+
10501048
if (!File::copy($originalSrc, $dest)) {
10511049
throw new RuntimeException(
10521050
Text::sprintf(

0 commit comments

Comments
 (0)