mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 04:12:13 +00:00
Optimisations
- Added phpunit cache to .gitignore - Updated README with latest helper.php example. - Minor phpDocs changes.
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
composer.lock
|
composer.lock
|
||||||
vendor/
|
vendor/
|
||||||
.idea/
|
.idea/
|
||||||
|
.phpunit.result.cache
|
||||||
@@ -300,8 +300,6 @@ We recommend that you add these helper functions to your project. These will all
|
|||||||
To implement the functions below, simply copy the code to a new file and require the file before initializing the router or copy the `helpers.php` we've included in this library.
|
To implement the functions below, simply copy the code to a new file and require the file before initializing the router or copy the `helpers.php` we've included in this library.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
<?php
|
|
||||||
|
|
||||||
use Pecee\SimpleRouter\SimpleRouter as Router;
|
use Pecee\SimpleRouter\SimpleRouter as Router;
|
||||||
use Pecee\Http\Url;
|
use Pecee\Http\Url;
|
||||||
use Pecee\Http\Response;
|
use Pecee\Http\Response;
|
||||||
@@ -349,7 +347,7 @@ function request(): Request
|
|||||||
/**
|
/**
|
||||||
* Get input class
|
* Get input class
|
||||||
* @param string|null $index Parameter index name
|
* @param string|null $index Parameter index name
|
||||||
* @param string|null $defaultValue Default return value
|
* @param string|mixed|null $defaultValue Default return value
|
||||||
* @param array ...$methods Default methods
|
* @param array ...$methods Default methods
|
||||||
* @return \Pecee\Http\Input\InputHandler|array|string|null
|
* @return \Pecee\Http\Input\InputHandler|array|string|null
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ function request(): Request
|
|||||||
/**
|
/**
|
||||||
* Get input class
|
* Get input class
|
||||||
* @param string|null $index Parameter index name
|
* @param string|null $index Parameter index name
|
||||||
* @param string|null $defaultValue Default return value
|
* @param string|mixed|null $defaultValue Default return value
|
||||||
* @param array ...$methods Default methods
|
* @param array ...$methods Default methods
|
||||||
* @return \Pecee\Http\Input\InputHandler|array|string|null
|
* @return \Pecee\Http\Input\InputHandler|array|string|null
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ class InputHandler
|
|||||||
* Get input element value matching index
|
* Get input element value matching index
|
||||||
*
|
*
|
||||||
* @param string $index
|
* @param string $index
|
||||||
* @param string|object|null $defaultValue
|
* @param string|mixed|null $defaultValue
|
||||||
* @param array ...$methods
|
* @param array ...$methods
|
||||||
* @return string|array
|
* @return string|array
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user