@@ -42,7 +42,7 @@ abstract class Http
42
42
/**
43
43
* Current URI prefix.
44
44
*
45
- * @var string| null
45
+ * @var null|string
46
46
*/
47
47
protected static $ uri ;
48
48
@@ -56,7 +56,7 @@ abstract class Http
56
56
/**
57
57
* Current raw request.
58
58
*
59
- * @var RawRequest| null
59
+ * @var null|RawRequest
60
60
*/
61
61
protected static $ rawRequest ;
62
62
@@ -156,9 +156,9 @@ public static function run() : void
156
156
* Set namespace, subdomain and url prefixes for incoming routes.
157
157
*
158
158
* @static
159
- * @param string $namespace namespace prefix
160
- * @param string| array $subdomain subdomain prefix
161
- * @param string $uri uri prefix
159
+ * @param string $namespace namespace prefix
160
+ * @param array|string $subdomain subdomain prefix
161
+ * @param string $uri uri prefix
162
162
*/
163
163
public static function prefix (string $ namespace , $ subdomain = null , string $ uri = null ) : void
164
164
{
@@ -171,9 +171,9 @@ public static function prefix(string $namespace, $subdomain = null, string $uri
171
171
* Add route to be considered.
172
172
*
173
173
* @static
174
- * @param string $method route HTTP method
175
- * @param string $path route path
176
- * @param string $action class and method to call
174
+ * @param string $method route HTTP method
175
+ * @param string $path route path
176
+ * @param string $action class and method to call
177
177
*/
178
178
public static function route (string $ method , string $ path , string $ action ) : void
179
179
{
@@ -194,9 +194,9 @@ public static function route(string $method, string $path, string $action) : voi
194
194
* Add before hook to be considered.
195
195
*
196
196
* @static
197
- * @param string $method route HTTP method
198
- * @param string $path route path
199
- * @param string $action class and method to call
197
+ * @param string $method route HTTP method
198
+ * @param string $path route path
199
+ * @param string $action class and method to call
200
200
*/
201
201
public static function before (string $ method , string $ path , string $ action ) : void
202
202
{
@@ -217,9 +217,9 @@ public static function before(string $method, string $path, string $action) : vo
217
217
* Add before hook to be considered.
218
218
*
219
219
* @static
220
- * @param string $method route HTTP method
221
- * @param string $path route path
222
- * @param string $action class and method to call
220
+ * @param string $method route HTTP method
221
+ * @param string $path route path
222
+ * @param string $action class and method to call
223
223
*/
224
224
public static function after (string $ method , string $ path , string $ action ) : void
225
225
{
@@ -250,7 +250,7 @@ public static function getRoutes() : array
250
250
* Get current raw request.
251
251
*
252
252
* @static
253
- * @return RawRequest| null
253
+ * @return null|RawRequest
254
254
*/
255
255
public static function getRawRequest () : ?RawRequest
256
256
{
0 commit comments