Optimisations

- Added phpunit cache to .gitignore
- Updated README with latest helper.php example.
- Minor phpDocs changes.
This commit is contained in:
Simon Sessingø
2021-03-24 23:18:17 +01:00
parent d9c63699f5
commit 0ec7c0d960
4 changed files with 5 additions and 6 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
composer.lock
vendor/
.idea/
.idea/
.phpunit.result.cache

View File

@@ -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.
```php
<?php
use Pecee\SimpleRouter\SimpleRouter as Router;
use Pecee\Http\Url;
use Pecee\Http\Response;
@@ -349,7 +347,7 @@ function request(): Request
/**
* Get input class
* @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
* @return \Pecee\Http\Input\InputHandler|array|string|null
*/

View File

@@ -47,7 +47,7 @@ function request(): Request
/**
* Get input class
* @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
* @return \Pecee\Http\Input\InputHandler|array|string|null
*/

View File

@@ -241,7 +241,7 @@ class InputHandler
* Get input element value matching index
*
* @param string $index
* @param string|object|null $defaultValue
* @param string|mixed|null $defaultValue
* @param array ...$methods
* @return string|array
*/