diff options
author | Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr> | 2014-04-22 15:08:18 +0200 |
---|---|---|
committer | Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr> | 2014-04-22 15:08:18 +0200 |
commit | d156c47f0951cf681d16ed047f322e8332eb485e (patch) | |
tree | 1b97d1cb437fd7b2c0262640b7a70026e054413f /core | |
parent | 919e5d51a4cc4a2928cd34c8c575d4c003bb9a74 (diff) |
Better documentation
These changes have been automatically suggested by scrutinizer-ci.com
Diffstat (limited to 'core')
-rw-r--r-- | core/event.php | 4 | ||||
-rw-r--r-- | core/response.php | 3 | ||||
-rw-r--r-- | core/router.php | 7 |
3 files changed, 14 insertions, 0 deletions
diff --git a/core/event.php b/core/event.php index 672146f3..0941acac 100644 --- a/core/event.php +++ b/core/event.php @@ -9,6 +9,10 @@ namespace Core; * @author Frederic Guillot */ interface Listener { + + /** + * @return boolean + */ public function execute(array $data); } diff --git a/core/response.php b/core/response.php index 4a00ed79..0973bf95 100644 --- a/core/response.php +++ b/core/response.php @@ -9,6 +9,9 @@ class Response header('Content-Disposition: attachment; filename="'.$filename.'"'); } + /** + * @param integer $status_code + */ public function status($status_code) { if (strpos(php_sapi_name(), 'apache') !== false) { diff --git a/core/router.php b/core/router.php index 5a27276c..56a95e52 100644 --- a/core/router.php +++ b/core/router.php @@ -20,11 +20,18 @@ class Router $this->action = empty($_GET['action']) ? $controller : $_GET['action']; } + /** + * @param string $default_value + */ public function sanitize($value, $default_value) { return ! ctype_alpha($value) || empty($value) ? $default_value : strtolower($value); } + /** + * @param string $filename + * @param string $class + */ public function load($filename, $class, $method) { if (file_exists($filename)) { |