diff --git a/src/Lily/Adapter/Test.php b/src/Lily/Adapter/Test.php index b794c73..bf79ebe 100644 --- a/src/Lily/Adapter/Test.php +++ b/src/Lily/Adapter/Test.php @@ -92,7 +92,7 @@ private function shallowMergeRequests($r1, $r2) return $mergedRequest; } - public function run($handler, array $request = array()) + public function run($handler, $request = array()) { $originalRequest = $this->shallowMergeRequests( diff --git a/src/Lily/Application/MiddlewareApplication.php b/src/Lily/Application/MiddlewareApplication.php index f7c0efc..43dc22d 100644 --- a/src/Lily/Application/MiddlewareApplication.php +++ b/src/Lily/Application/MiddlewareApplication.php @@ -6,7 +6,7 @@ class MiddlewareApplication { private $middleware; - public function __construct(array $pipeline = NULL) + public function __construct($pipeline = NULL) { if ($pipeline !== NULL) { $this->middleware = $pipeline; diff --git a/src/Lily/Application/RoutedApplication.php b/src/Lily/Application/RoutedApplication.php index 6400a65..eeba77d 100644 --- a/src/Lily/Application/RoutedApplication.php +++ b/src/Lily/Application/RoutedApplication.php @@ -23,7 +23,7 @@ class RoutedApplication private $routes = array(); - public function __construct(array $routes = NULL) + public function __construct($routes = NULL) { if ($routes !== NULL) { $this->routes = $routes; @@ -224,7 +224,7 @@ public function __invoke($request) return Response::notFound(); } - public function uri($name, array $params = array()) + public function uri($name, $params = array()) { $routes = $this->routes(); $uri = $routes[$name][1]; diff --git a/src/Lily/Middleware/Cookie.php b/src/Lily/Middleware/Cookie.php index fda2827..8b21c45 100644 --- a/src/Lily/Middleware/Cookie.php +++ b/src/Lily/Middleware/Cookie.php @@ -35,7 +35,7 @@ public static function unsign($request, $name, $originalValue, $salt) private $defaults = array(); private $salt = 'a-salt'; - public function __construct(array $config = NULL) + public function __construct($config = NULL) { if (isset($config['defaults'])) { $this->defaults = $config['defaults']; diff --git a/src/Lily/Middleware/DefaultHeaders.php b/src/Lily/Middleware/DefaultHeaders.php index 6f703e9..ef7f31d 100644 --- a/src/Lily/Middleware/DefaultHeaders.php +++ b/src/Lily/Middleware/DefaultHeaders.php @@ -6,7 +6,7 @@ class DefaultHeaders { private $headers; - public function __construct(array $config) + public function __construct($config) { $this->headers = $config['headers']; } diff --git a/src/Lily/Middleware/ExceptionHandler.php b/src/Lily/Middleware/ExceptionHandler.php index b520240..d88fbf2 100644 --- a/src/Lily/Middleware/ExceptionHandler.php +++ b/src/Lily/Middleware/ExceptionHandler.php @@ -14,7 +14,7 @@ class ExceptionHandler { private $handler; - public function __construct(array $config = array()) + public function __construct($config = array()) { if (isset($config['handler'])) { $this->handler = $config['handler']; diff --git a/src/Lily/Middleware/Injection.php b/src/Lily/Middleware/Injection.php index 354207d..688eff3 100644 --- a/src/Lily/Middleware/Injection.php +++ b/src/Lily/Middleware/Injection.php @@ -6,7 +6,7 @@ class Injection { private $map; - public function __construct(array $config) + public function __construct($config) { $this->map = $config['inject']; } diff --git a/src/Lily/Middleware/ResponseStatusHandler.php b/src/Lily/Middleware/ResponseStatusHandler.php index 259c7b7..c97e2c5 100644 --- a/src/Lily/Middleware/ResponseStatusHandler.php +++ b/src/Lily/Middleware/ResponseStatusHandler.php @@ -6,7 +6,7 @@ class ResponseStatusHandler { private $statusHandlers; - public function __construct(array $config) + public function __construct($config) { $this->statusHandlers = $config['handlers']; } diff --git a/src/Lily/Middleware/Session.php b/src/Lily/Middleware/Session.php index db2e4d7..ce92ba5 100644 --- a/src/Lily/Middleware/Session.php +++ b/src/Lily/Middleware/Session.php @@ -8,7 +8,7 @@ class Session { private $store; - public function __construct(array $config = NULL) + public function __construct($config = NULL) { if (isset($config['store'])) { $this->store = $config['store']; diff --git a/src/Lily/Middleware/Session/CookieStore.php b/src/Lily/Middleware/Session/CookieStore.php index e928ced..d2cedef 100644 --- a/src/Lily/Middleware/Session/CookieStore.php +++ b/src/Lily/Middleware/Session/CookieStore.php @@ -7,7 +7,7 @@ class CookieStore private $name = '_session'; private $cookie = array(); - public function __construct(array $config = NULL) + public function __construct($config = NULL) { if (isset($config['cookie'])) { if (isset($config['cookie']['name'])) { @@ -19,7 +19,7 @@ public function __construct(array $config = NULL) } } - public function get(array $request) + public function get($request) { if (isset($request['cookies'][$this->name])) { $request['session'] = @@ -31,7 +31,7 @@ public function get(array $request) return $request; } - public function set(array $response) + public function set($response) { if (isset($response['session'])) { $response['cookies'][$this->name] = diff --git a/src/Lily/Middleware/Session/NativeStore.php b/src/Lily/Middleware/Session/NativeStore.php index ae8ef63..e9a8557 100644 --- a/src/Lily/Middleware/Session/NativeStore.php +++ b/src/Lily/Middleware/Session/NativeStore.php @@ -11,13 +11,13 @@ public function __construct() } } - public function get(array $request) + public function get($request) { $request['session'] = $_SESSION; return $request; } - public function set(array $response) + public function set($response) { if (isset($response['session'])) { $_SESSION = $response['session'];