From bba378c39b0f301a5c85b0baa115a541bb0274c3 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Thu, 20 Sep 2012 11:06:46 -0400 Subject: Cosmetics: xmlData::songs --- lib/class/xmldata.class.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php index 24cd2ba0..c736569a 100644 --- a/lib/class/xmldata.class.php +++ b/lib/class/xmldata.class.php @@ -404,15 +404,13 @@ class xmlData { /** * songs * - * This returns an xml document from an array of song ids spiffy isn't it! - * - * @param array $songs (description here...) - * @return string return xml + * This returns an xml document from an array of song ids. + * (Spiffy isn't it!) */ public static function songs($songs) { if (count($songs) > self::$limit OR self::$offset > 0) { - $songs = array_slice($songs,self::$offset,self::$limit); + $songs = array_slice($songs, self::$offset, self::$limit); } Song::build_cache($songs); @@ -456,9 +454,7 @@ class xmlData { } // end foreach - $final = self::_header() . $string . self::_footer(); - - return $final; + return self::_header() . $string . self::_footer(); } // songs -- cgit