Skip to content

Commit 204eeeb

Browse files
committed
Merge branch 'master' of github.com:mpociot/laravel-apidoc-generator
2 parents e819439 + 303c412 commit 204eeeb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Automatically generate your API documentation from your existing Laravel routes. Take a look at the [example documentation](http://marcelpociot.com/whiteboard/).
44

5-
`php artisan api:gen --routePrefix=settings/api/*`
5+
`php artisan api:gen --routePrefix="settings/api/*"`
66

77
![image](http://img.shields.io/packagist/v/mpociot/laravel-apidoc-generator.svg?style=flat)
88
![image](http://img.shields.io/packagist/l/mpociot/laravel-apidoc-generator.svg?style=flat)
@@ -31,7 +31,7 @@ Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::class,
3131
To generate your API documentation, use the `api:generate` artisan command.
3232

3333
```sh
34-
$ php artisan api:generate --routePrefix=api/v1/*
34+
$ php artisan api:generate --routePrefix="api/v1/*"
3535
```
3636

3737
This command will scan your applications routes for the URIs matching `api/v1/*` and will parse these controller methods and form requests.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"require-dev": {
2525
"orchestra/testbench": "~3.0",
26-
"phpunit/phpunit": "~4.0"
26+
"phpunit/phpunit": "~4.0 || ~5.0"
2727
},
2828
"autoload": {
2929
"psr-0": {

src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ protected function transformHeadersToServerVars(array $headers)
369369
foreach ($headers as $name => $value) {
370370
$name = strtr(strtoupper($name), '-', '_');
371371

372-
if (! starts_with($name, $prefix) && $name !== 'CONTENT_TYPE') {
372+
if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') {
373373
$name = $prefix.$name;
374374
}
375375

0 commit comments

Comments
 (0)