diff options
author | Johan "Papa" Cwiklinski <trasher@odysseus.(none)> | 2010-05-30 23:21:38 +0200 |
---|---|---|
committer | Johan "Papa" Cwiklinski <trasher@odysseus.(none)> | 2010-05-30 23:21:38 +0200 |
commit | 44dd451dacc2f726155815210cf3bc03201cb72a (patch) | |
tree | 98fe4bf9d892438517d061f15f64a1c7edd7e161 | |
parent | 9400a0ef41ebcc433ddc5da4dea8673d691114a0 (diff) |
Applying PEAR coding standards ; refs #48
-rw-r--r-- | all.php | 8 | ||||
-rw-r--r-- | zoom.php | 8 |
2 files changed, 8 insertions, 8 deletions
@@ -49,7 +49,7 @@ $smarty->assign('page_title', 'All packages in Fedora repositories'); /** * Retrieve packages informations * -* @param Object $db A reference to the database +* @param Object $db A reference to the database * * @return array */ @@ -61,8 +61,8 @@ function report ($db) $smarty->assign('repos', $repos); - if (substr($what,0,1)=='%') { - $sql=sprintf("SELECT DISTINCT name FROM rpm WHERE SUBSTRING(name,1,1)='%s' ORDER BY name", substr($what,1,1)); + if (substr($what, 0, 1)=='%') { + $sql=sprintf("SELECT DISTINCT name FROM rpm WHERE SUBSTRING(name,1,1)='%s' ORDER BY name", substr($what, 1, 1)); } else { $sql=sprintf("SELECT DISTINCT name FROM acls WHERE owner='%s' ORDER BY name", $what); } @@ -103,7 +103,7 @@ function report ($db) $package['owners'] = $owners; $versions = null; - foreach($repos as $repomain) { + foreach ($repos as $repomain) { $display=""; $class=""; foreach ($repomain as $repo) { @@ -113,10 +113,10 @@ if ( !isset($name) || !$name ) { $owner = ($resown ? $resown->fetchObject() : false); if (isset($owner->name)) { - // Use exact name (with case) from acl (else pkgdb could fail) - $name = $owner->name; - $smarty->assign('name', $name); - $smarty->assign('page_title', 'Package: ' . $name); + // Use exact name (with case) from acl (else pkgdb could fail) + $name = $owner->name; + $smarty->assign('name', $name); + $smarty->assign('page_title', 'Package: ' . $name); } if (!$rpm) { |