[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1463] Fix some broken indentation.
From: |
Michael Sheldon |
Subject: |
[Librefm-commits] [1463] Fix some broken indentation. |
Date: |
Sun, 10 May 2009 13:14:20 +0000 |
Revision: 1463
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1463
Author: elleo
Date: 2009-05-10 13:14:19 +0000 (Sun, 10 May 2009)
Log Message:
-----------
Fix some broken indentation.
Modified Paths:
--------------
trunk/nixtape/data/Server.php
Modified: trunk/nixtape/data/Server.php
===================================================================
--- trunk/nixtape/data/Server.php 2009-05-10 13:02:40 UTC (rev 1462)
+++ trunk/nixtape/data/Server.php 2009-05-10 13:14:19 UTC (rev 1463)
@@ -144,30 +144,30 @@
return $result;
}
- /**
- * Retrieves a list of popular artists
- *
- * @param int $number The number of artists to return
- * @return An array of artists or a PEAR_Error in case of failure
- */
- static function getTopArtists($number=20) {
- global $mdb2;
+ /**
+ * Retrieves a list of popular artists
+ *
+ * @param int $number The number of artists to return
+ * @return An array of artists or a PEAR_Error in case of failure
+ */
+ static function getTopArtists($number=20) {
+ global $mdb2;
- $res = $mdb2->query("SELECT COUNT(artist) as c, artist FROM Scrobbles
GROUP BY artist ORDER BY c DESC LIMIT 20");
+ $res = $mdb2->query("SELECT COUNT(artist) as c, artist FROM
Scrobbles GROUP BY artist ORDER BY c DESC LIMIT 20");
- if(PEAR::isError($res)) {
- return $res;
- }
+ if(PEAR::isError($res)) {
+ return $res;
+ }
- $data = $res->fetchAll(MDB2_FETCHMODE_ASSOC);
- foreach($data as $i) {
- $row = sanitize($i);
- $row["artisturl"] = Server::getArtistURL($row["artist"]);
- $result[] = $row;
- }
+ $data = $res->fetchAll(MDB2_FETCHMODE_ASSOC);
+ foreach($data as $i) {
+ $row = sanitize($i);
+ $row["artisturl"] =
Server::getArtistURL($row["artist"]);
+ $result[] = $row;
+ }
- return $result;
- }
+ return $result;
+ }
/**
* Retrieves a list of the currently playing tracks
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1463] Fix some broken indentation.,
Michael Sheldon <=