summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-05-06 21:16:24 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-05-06 21:16:31 +0200
commitac09e669c7d49723794ae05a471924e3892f6dce (patch)
tree4efaee9410657ae23ffcd7ea2b2e06221abd3e9f
parent97df70daecfa128afd630330685d0dcfa8b0da14 (diff)
downloadaurweb-ac09e669c7d49723794ae05a471924e3892f6dce.tar.xz
pkgsubmit.php: Style fixes
Move some elseif statements to the same line as the closing brace. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/html/pkgsubmit.php12
1 files changed, 4 insertions, 8 deletions
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;
}