From ac09e669c7d49723794ae05a471924e3892f6dce Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 6 May 2014 21:16:24 +0200 Subject: pkgsubmit.php: Style fixes Move some elseif statements to the same line as the closing brace. Signed-off-by: Lukas Fleischer --- web/html/pkgsubmit.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'web') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 7b7023b..51d0203 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -90,20 +90,16 @@ if ($uid): if (strchr($tar_file['filename'], '/') === false) { $error = __("Error - source tarball may not contain files outside a directory."); break; - } - elseif (substr($tar_file['filename'], -9) == '/PKGBUILD') { + } elseif (substr($tar_file['filename'], -9) == '/PKGBUILD') { $pkgbuild_raw = $tar->extractInString($tar_file['filename']); - } - elseif (substr($tar_file['filename'], -9) == '/.AURINFO') { + } elseif (substr($tar_file['filename'], -9) == '/.AURINFO') { $srcinfo_raw = $tar->extractInString($tar_file['filename']); } - } - elseif ($tar_file['typeflag'] == 5) { + } elseif ($tar_file['typeflag'] == 5) { if (substr_count($tar_file['filename'], "/") > 1) { $error = __("Error - source tarball may not contain nested subdirectories."); break; - } - elseif (++$dircount > 1) { + } elseif (++$dircount > 1) { $error = __("Error - source tarball may not contain more than one directory."); break; } -- cgit v1.2.3-70-g09d2