diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml index c4c9543..7fb8ed0 100644 --- a/.idea/codeStyleSettings.xml +++ b/.idea/codeStyleSettings.xml @@ -2,7 +2,11 @@ diff --git a/src/pjdietz/WellRESTed/Handler.php b/src/pjdietz/WellRESTed/Handler.php index e941e63..3c2bb61 100644 --- a/src/pjdietz/WellRESTed/Handler.php +++ b/src/pjdietz/WellRESTed/Handler.php @@ -20,10 +20,10 @@ use pjdietz\WellRESTed\Interfaces\ResponseInterface; * * To use Handler, create a subclass and implement the methods for any HTTP * verbs you would like to support. (get() for GET, post() for POST, etc). - *

- * - Access the request via the protected member $this->request
- * - Access a map of arguments via $this->args (e.g., URI path variables)
- * - Modify $this->response to provide the response the instance will return
+ * + * - Access the request via the protected member $this->request + * - Access a map of arguments via $this->args (e.g., URI path variables) + * - Modify $this->response to provide the response the instance will return */ abstract class Handler implements HandlerInterface { @@ -204,5 +204,4 @@ abstract class Handler implements HandlerInterface } return false; } - } diff --git a/src/pjdietz/WellRESTed/RouteBuilder.php b/src/pjdietz/WellRESTed/RouteBuilder.php index d193c0d..45814a5 100644 --- a/src/pjdietz/WellRESTed/RouteBuilder.php +++ b/src/pjdietz/WellRESTed/RouteBuilder.php @@ -46,10 +46,10 @@ class RouteBuilder * Contruct and return an array of routes. * * If $data is a string, buildRoutes() will parse it as JSON with json_decode. - *

+ * * If $data is an array, buildRoutes() assumes each item in the array is * an object it can translate into a route. - *

+ * * If $data is an object, buildRoutes() assumes it will have a "routes" * property with an array value that is a collection of objects to * translate into routes. Any other properties will be read with @@ -92,11 +92,11 @@ class RouteBuilder /** * Parse an object and update the instances with the new configuration. * - * ->handlerNamespace is passed to setHandlerNamesapce() - *

- * ->variablePattern is passed to setDefaultVariablePattern() - *

- * ->vars is passed to setTemplateVars() + * handlerNamespace is passed to setHandlerNamesapce() + + * variablePattern is passed to setDefaultVariablePattern() + * + * vars is passed to setTemplateVars() * * @param object */ @@ -149,7 +149,7 @@ class RouteBuilder * Keys are names of variables for use in URI template (do not include {}). * Values are regex patterns or any of the following special names: SLUG, * ALPHA, ALPHANUM, DIGIT, NUM. - *

+ * * If you wish to use additional named patterns, subclass RouteBuilder and * override getTemplateVariablePattern. * @@ -178,7 +178,7 @@ class RouteBuilder * * $defaultVariablePattern may be a regex pattern or one of the following: * SLUG, ALPHA, ALPHANUM, DIGIT, NUM. - *

+ * * If you wish to use additional named patterns, subclass RouteBuilder and * override getTemplateVariablePattern. * @@ -196,7 +196,7 @@ class RouteBuilder * HandlerInterface to call getResponse() on if the route matches. "handler" * may be fully qualified and begin with "\". If it does not begin with "\", * the instance's $handlerNamespace is affixed to the begining. - *

+ * * $item must also contain a "path", "template", or "pattern" property to * indicate how to create the StaticRoute, TemplateRoute, or RegexRoute. * @@ -246,7 +246,7 @@ class RouteBuilder * * The names SLUG, ALPHA, ALPHANUM, DIGIT, NUM convert to regex patterns. * Anything else passes through as is. - *

+ * * If you wish to use additional named patterns, subclass RouteBuilder and * override getTemplateVariablePattern. * @@ -269,5 +269,4 @@ class RouteBuilder return $variable; } } - } diff --git a/src/pjdietz/WellRESTed/Routes/RegexRoute.php b/src/pjdietz/WellRESTed/Routes/RegexRoute.php index 717da3a..2182e08 100644 --- a/src/pjdietz/WellRESTed/Routes/RegexRoute.php +++ b/src/pjdietz/WellRESTed/Routes/RegexRoute.php @@ -73,5 +73,4 @@ class RegexRoute extends BaseRoute { return $this->pattern; } - }