From 8d4bf3f5ea4866d8919e9965c87b5c5ea3fe4d15 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 23 Nov 2014 20:21:06 +0000 Subject: [PATCH] Docbloc some things --- app/controllers/HomeController.php | 4 ++++ app/models/Component.php | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/app/controllers/HomeController.php b/app/controllers/HomeController.php index 9c0822e2..b09daa15 100644 --- a/app/controllers/HomeController.php +++ b/app/controllers/HomeController.php @@ -1,6 +1,10 @@ status) { case 1: return 'Operational'; @@ -10,6 +14,10 @@ } } + /** + * Color of the label for each status. + * @return string HTML class name + */ public function getColorAttribute() { switch ($this->status) { case 1: return 'text-success';