summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Cwiklinski <johan@x-tnd.be>2012-09-29 10:04:54 +0200
committerRemi Collet <fedora@famillecollet.com>2012-09-29 10:30:12 +0200
commit44bc0673599b56977f97370976d92f5d05ca720e (patch)
tree3e24a486e15b63bc75d86ea0838fa31036658001
parent578c3f5a2414ee8b216652b5d9ccfbaf4303bf6d (diff)
PEAR coding standards ;)
-rw-r--r--include/main.php6
-rw-r--r--zoom.php10
2 files changed, 9 insertions, 7 deletions
diff --git a/include/main.php b/include/main.php
index 5b66836..8134307 100644
--- a/include/main.php
+++ b/include/main.php
@@ -60,10 +60,10 @@ if (!defined('CLIONLY')) {
*
* @return void
*/
-function my_autoload($classname)
+function myAutoload($classname)
{
include dirname(__FILE__).'/../class/'.$classname.'.php';
}
-spl_autoload_register("my_autoload");
-?> \ No newline at end of file
+spl_autoload_register("myAutoload");
+?>
diff --git a/zoom.php b/zoom.php
index 502b51a..979cea9 100644
--- a/zoom.php
+++ b/zoom.php
@@ -79,7 +79,8 @@ function getBranchPeople($params)
$tmp = array();
foreach ( $ret_tmp as $r ) {
if (isset($r['aclOrder']['commit']['statuscode'])
- && $r['aclOrder']['commit']['statuscode']==3) {
+ && $r['aclOrder']['commit']['statuscode']==3
+ ) {
$tmp[] = $r['username'];
}
}
@@ -94,7 +95,7 @@ if ( !isset($name) || !$name ) {
$smarty->assign('error', 'missing_name');
} else {
try {
- $db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS);
+ $db = new PDO("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS);
$uptable = new TableUpstream($db);
@@ -190,8 +191,9 @@ if ( !isset($name) || !$name ) {
}
$rpm->askpkgdb = false;
if ($rpm->active
- && (substr($rpm->repo_main,0,1)=='f'
- || substr($rpm->repo_sub,0,4)=='epel')) {
+ && (substr($rpm->repo_main, 0, 1) == 'f'
+ || substr($rpm->repo_sub, 0, 4) == 'epel')
+ ) {
$rpm->askpkgdb = true;
}
$packages[] = $rpm;