From 53bd9dfc74cdaf87eba5c324d7e809033964f2e2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 18 May 2020 10:58:46 +0200 Subject: cleanup --- examples/librpm.php | 45 +++++++++------------------------------------ 1 file changed, 9 insertions(+), 36 deletions(-) (limited to 'examples/librpm.php') diff --git a/examples/librpm.php b/examples/librpm.php index bed896e..6ae8b81 100644 --- a/examples/librpm.php +++ b/examples/librpm.php @@ -59,74 +59,47 @@ abstract class Common { if (isset($this->info['Requirename'])) { return $this->_dep($this->info['Requirename'], $this->info['Requireflags'], $this->info['Requireversion']); } - else - { - return NULL; - } + return NULL; case 'Conflicts': if (isset($this->info['Conflictname'])) { return $this->_dep($this->info['Conflictname'], $this->info['Conflictflags'], $this->info['Conflictversion']); } - else - { - return NULL; - } + return NULL; case 'Obsoletes': if (isset($this->info['Obsoletename'])) { return $this->_dep($this->info['Obsoletename'], $this->info['Obsoleteflags'], $this->info['Obsoleteversion']); } - else - { - return NULL; - } + return NULL; case 'Provides': if (isset($this->info['Providename'])) { return $this->_dep($this->info['Providename'], $this->info['Provideflags'], $this->info['Provideversion']); } - else - { - return NULL; - } + return NULL; case 'Recommends': if (isset($this->info['Recommendname'])) { return $this->_dep($this->info['Recommendname'], $this->info['Recommendflags'], $this->info['Recommendversion']); } - else - { - return NULL; - } + return NULL; case 'Suggests': if (isset($this->info['Suggestname'])) { return $this->_dep($this->info['Suggestname'], $this->info['Suggestflags'], $this->info['Suggestversion']); } - else - { - return NULL; - } + return NULL; case 'Supplements': if (isset($this->info['Supplementname'])) { return $this->_dep($this->info['Supplementname'], $this->info['Supplementflags'], $this->info['Supplementversion']); } - else - { - return NULL; - } + return NULL; case 'Enhances': if (isset($this->info['Enhancename'])) { return $this->_dep($this->info['Enhancename'], $this->info['Enhanceflags'], $this->info['Enhanceversion']); } - else - { - return NULL; - } + return NULL; case 'Files': if (isset($this->info['Basenames'])) { return $this->_files(); } - else - { - return NULL; - } + return NULL; default: if (isset($this->info[$name])) { return $this->info[$name]; -- cgit