diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..c096d39 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/src/pjdietz/WellRESTed/Request.php b/src/pjdietz/WellRESTed/Request.php index 034f344..f0e77ba 100644 --- a/src/pjdietz/WellRESTed/Request.php +++ b/src/pjdietz/WellRESTed/Request.php @@ -92,7 +92,7 @@ class Request extends Message implements RequestInterface public static function getRequestHeaders() { // http://www.php.net/manual/en/function.getallheaders.php#84262 - $headers = []; + $headers = array(); foreach ($_SERVER as $name => $value) { if (substr($name, 0, 5) === "HTTP_") { $headers[str_replace(" ", "-", ucwords(strtolower(str_replace("_", " ", substr($name, 5)))))] = $value; @@ -343,7 +343,7 @@ class Request extends Message implements RequestInterface /** * Set the body by supplying an associative array of form fields. * - * In additon, add a "Content-type: application/x-www-form-urlencoded" header + * In addition, add a "Content-type: application/x-www-form-urlencoded" header * * @param array $fields */ diff --git a/src/pjdietz/WellRESTed/RouteBuilder.php b/src/pjdietz/WellRESTed/RouteBuilder.php index 78de6c1..09b2e66 100644 --- a/src/pjdietz/WellRESTed/RouteBuilder.php +++ b/src/pjdietz/WellRESTed/RouteBuilder.php @@ -174,7 +174,7 @@ class RouteBuilder } /** - * Create and return an approrate route given an object describing a route. + * Create and return an appropriate route given an object describing a route. * * $item must contain a "handler" property providing the classname for the * HandlerInterface to call getResponse() on if the route matches. "handler"