Completed
Push — master ( 29755b...ad31bb )
by Mikael
02:06
created
src/Route/Route.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,11 +76,11 @@
 block discarded – undo
76 76
     /**
77 77
      * Check if value is matching a certain type of values.
78 78
      *
79
-     * @param string $rulePart   the rule part to check.
80
-     * @param string $queryPart  the query part to check.
81 79
      * @param array  &$args      add argument to args array if matched
80
+     * @param string $value
81
+     * @param string $type
82 82
      *
83
-     * @return boolean
83
+     * @return boolean|null
84 84
      */
85 85
     private function checkPartMatchingType($value, $type)
86 86
     {
Please login to merge, or discard this patch.
src/Route/RouterInjectable.php 1 patch
Doc Comments   +9 added lines, -13 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param null|string          $rule   for this route
49 49
      * @param null|string|callable $action to implement a handler for the route
50 50
      *
51
-     * @return class as new route
51
+     * @return Route as new route
52 52
      */
53 53
     public function add($rule, $action)
54 54
     {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * @param null|string          $rule   for this route
65 65
      * @param null|string|callable $action to implement a handler for the route
66 66
      *
67
-     * @return class as new route
67
+     * @return Route as new route
68 68
      */
69 69
     public function any($method, $rule, $action)
70 70
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * @param null|string|array    $method as request methods
85 85
      * @param null|string|callable $action to implement a handler for the route
86 86
      *
87
-     * @return class as new route
87
+     * @return Route as new route
88 88
      */
89 89
     public function all($method, $action = null)
90 90
     {
@@ -96,10 +96,9 @@  discard block
 block discarded – undo
96 96
     /**
97 97
      * Add a GET route to the router.
98 98
      *
99
-     * @param null|string|array    $method as request methods
100 99
      * @param null|string|callable $action to implement a handler for the route
101 100
      *
102
-     * @return class as new route
101
+     * @return Route as new route
103 102
      */
104 103
     public function get($rule, $action)
105 104
     {
@@ -111,10 +110,9 @@  discard block
 block discarded – undo
111 110
     /**
112 111
      * Add a POST route to the router.
113 112
      *
114
-     * @param null|string|array    $method as request methods
115 113
      * @param null|string|callable $action to implement a handler for the route
116 114
      *
117
-     * @return class as new route
115
+     * @return Route as new route
118 116
      */
119 117
     public function post($rule, $action)
120 118
     {
@@ -126,10 +124,9 @@  discard block
 block discarded – undo
126 124
     /**
127 125
      * Add a PUT route to the router.
128 126
      *
129
-     * @param null|string|array    $method as request methods
130 127
      * @param null|string|callable $action to implement a handler for the route
131 128
      *
132
-     * @return class as new route
129
+     * @return Route as new route
133 130
      */
134 131
     public function put($rule, $action)
135 132
     {
@@ -141,10 +138,9 @@  discard block
 block discarded – undo
141 138
     /**
142 139
      * Add a DELETE route to the router.
143 140
      *
144
-     * @param null|string|array    $method as request methods
145 141
      * @param null|string|callable $action to implement a handler for the route
146 142
      *
147
-     * @return class as new route
143
+     * @return Route as new route
148 144
      */
149 145
     public function delete($rule, $action)
150 146
     {
@@ -159,7 +155,7 @@  discard block
 block discarded – undo
159 155
      * @param string               $rule   for this route
160 156
      * @param null|string|callable $action to implement a handler for the route
161 157
      *
162
-     * @return class as new route
158
+     * @return Route as new route
163 159
      */
164 160
     public function addInternal($rule, $action)
165 161
     {
@@ -195,7 +191,7 @@  discard block
 block discarded – undo
195 191
     /**
196 192
      * Get the route for the last route that was handled.
197 193
      *
198
-     * @return mixed
194
+     * @return string
199 195
      */
200 196
     public function getLastRoute()
201 197
     {
Please login to merge, or discard this patch.