Completed
Branch master (c81bdc)
by Emlyn
05:19
created
src/Route.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
 		return $this;
53 53
 	}
54 54
 
55
+	/**
56
+	 * @param string $resource
57
+	 */
55 58
 	protected function parseTypes($resource)
56 59
 	{
57 60
 		$route = $this;
@@ -130,6 +133,9 @@  discard block
 block discarded – undo
130 133
 		return '#^'.$regex.'$#';
131 134
 	}
132 135
 
136
+	/**
137
+	 * @param string $method
138
+	 */
133 139
 	public function match($uri, $method)
134 140
 	{
135 141
 		if ( ! is_string($this->resource) or $method !== '*' and ! in_array($method, $this->methods))
Please login to merge, or discard this patch.
src/Router.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@  discard block
 block discarded – undo
70 70
 		return call_user_func($this->autoFilter, $match);
71 71
 	}
72 72
 
73
+	/**
74
+	 * @return callable
75
+	 */
73 76
 	public function resolveFilter($name)
74 77
 	{
75 78
 		if (isset($this->filters[$name]))
@@ -130,6 +133,9 @@  discard block
 block discarded – undo
130 133
 		return new Match(null, $method, $uri, $uri);
131 134
 	}
132 135
 
136
+	/**
137
+	 * @param string $uri
138
+	 */
133 139
 	public function match(Route $route, $uri, $method = '*')
134 140
 	{
135 141
 		if ($match = $route->match($uri, $method))
Please login to merge, or discard this patch.