summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/event.php4
-rw-r--r--core/response.php3
-rw-r--r--core/router.php7
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)) {