From 4841466656715333e8e0278e626a47c1e59b1f5a Mon Sep 17 00:00:00 2001 From: Uriy Efremochkin Date: Sat, 9 Dec 2017 11:57:57 +0500 Subject: [PATCH 1/2] Fix for Doc --- flight/Flight.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/Flight.php b/flight/Flight.php index 296457a..0ec7320 100644 --- a/flight/Flight.php +++ b/flight/Flight.php @@ -39,7 +39,7 @@ * * Request & Response. * @method static \flight\net\Request request() Returns Request instance. - * @method static \flight\net\Response response() Returns Request instance. + * @method static \flight\net\Response response() Returns Response instance. * @method static void redirect($url, $code = 303) Redirects to another URL. * @method static void json($data, $code = 200, $encode = true, $charset = "utf8", $encodeOption = 0, $encodeDepth = 512) Sends a JSON response. * @method static void jsonp($data, $param = 'jsonp', $code = 200, $encode = true, $charset = "utf8", $encodeOption = 0, $encodeDepth = 512) Sends a JSONP response. From cc72d9a0811a111f547314cb35e184d6f4280881 Mon Sep 17 00:00:00 2001 From: Uriy Efremochkin Date: Sat, 9 Dec 2017 12:00:43 +0500 Subject: [PATCH 2/2] Code style fix --- flight/core/Dispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/core/Dispatcher.php b/flight/core/Dispatcher.php index 56465fe..e553b1c 100644 --- a/flight/core/Dispatcher.php +++ b/flight/core/Dispatcher.php @@ -188,7 +188,7 @@ class Dispatcher { public static function invokeMethod($func, array &$params = array()) { list($class, $method) = $func; - $instance = is_object($class); + $instance = is_object($class); switch (count($params)) { case 0: