From 2edcf1aebe7c856cc55d3d4711fa78efbb4628b6 Mon Sep 17 00:00:00 2001 From: Klaus Silveira Date: Sat, 14 Jul 2012 15:57:08 -0300 Subject: [PATCH] Small coding style fixes, using better variable names --- lib/Application/Utils.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Application/Utils.php b/lib/Application/Utils.php index 1d4c861..dd2f2f9 100644 --- a/lib/Application/Utils.php +++ b/lib/Application/Utils.php @@ -174,13 +174,14 @@ class Utils $repository = $this->app['git']->getRepository($this->app['git.repos'] . $repo); $files = $repository->getTree($branch)->output(); - foreach ($files as $fileInfo) - if (preg_match('/^readme*/i', $fileInfo['name'])) { + foreach ($files as $file) { + if (preg_match('/^readme*/i', $file['name'])) { return array( - 'filename' => $fileInfo['name'], - 'content' => $repository->getBlob("$branch:'".$fileInfo['name']."'")->output() + 'filename' => $file['name'], + 'content' => $repository->getBlob("$branch:'{$file['name']}'")->output() ); } + } return array(); }