diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:00:32 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:38:46 -0500 |
commit | ef4d3660605efc7f1328d4533b0f4bfb6c1107e2 (patch) | |
tree | e4377fb129a899e65aaaf421f8c97098aecaedd5 /lib/rating.lib.php | |
parent | 8a750c3e875d590d351c3042570a134fcdf03e5d (diff) | |
download | ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.gz ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.bz2 ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.zip |
Cosmetics: death to tabs
The refactoring I've been doing has reminded me of my strong preference
for spaces, and I feel inclined to impose my will on the tree.
Diffstat (limited to 'lib/rating.lib.php')
-rw-r--r-- | lib/rating.lib.php | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/lib/rating.lib.php b/lib/rating.lib.php index 461762f8..ca6d7209 100644 --- a/lib/rating.lib.php +++ b/lib/rating.lib.php @@ -1,5 +1,5 @@ <?php -/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */ +/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU General Public License, version 2 (GPLv2) @@ -26,9 +26,9 @@ */ function show_rating($object_id,$type) { - $rating = new Rating($object_id,$type); + $rating = new Rating($object_id,$type); - require Config::get('prefix') . '/templates/show_object_rating.inc.php'; + require Config::get('prefix') . '/templates/show_object_rating.inc.php'; } // show_rating @@ -38,32 +38,32 @@ function show_rating($object_id,$type) { */ function get_rating_name($score) { - switch ($score) { - case '0': - return T_("Don't Play"); - break; - case '1': - return T_("It's Pretty Bad"); - break; - case '2': - return T_("It's Ok"); - break; - case '3': - return T_("It's Pretty Good"); - break; - case '4': - return T_("I Love It!"); - break; - case '5': - return T_("It's Insane"); - break; - // I'm fired - default: - return T_("Off the Charts!"); - break; - } // end switch + switch ($score) { + case '0': + return T_("Don't Play"); + break; + case '1': + return T_("It's Pretty Bad"); + break; + case '2': + return T_("It's Ok"); + break; + case '3': + return T_("It's Pretty Good"); + break; + case '4': + return T_("I Love It!"); + break; + case '5': + return T_("It's Insane"); + break; + // I'm fired + default: + return T_("Off the Charts!"); + break; + } // end switch - return true; + return true; } // get_rating_name |