[aur-dev] [PATCH 3/4] pkgsubmit.php: Style fixes

Lukas Fleischer archlinux at cryptocrack.de
Tue May 6 15:28:57 EDT 2014


Move some elseif statements to the same line as the closing brace.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/html/pkgsubmit.php | 12 ++++--------
 1 file 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;
 					}
-- 
1.9.2



More information about the aur-dev mailing list