diff options
author | Remi Collet <remi@remirepo.net> | 2020-05-18 10:58:46 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-05-18 10:58:46 +0200 |
commit | 53bd9dfc74cdaf87eba5c324d7e809033964f2e2 (patch) | |
tree | f9078fa9547048cdaaea80fefbea672f464f3327 /examples/librpm.php | |
parent | df3b2b652f29b74b524f3ceeb37169244ff5732f (diff) |
cleanup
Diffstat (limited to 'examples/librpm.php')
-rw-r--r-- | examples/librpm.php | 45 |
1 files changed, 9 insertions, 36 deletions
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]; |