Skip to content

Commit f6056d2

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents c53da08 + 4960eed commit f6056d2

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111

1212
### Fixed
13-
- Parse `@response` tags regardless of HTTP method
1413

1514
### Removed
1615

16+
## [2.1.3] - 11th September, 2018
17+
### Fixed
18+
- Parse `@response` tags regardless of HTTP method (https://github.com/mpociot/laravel-apidoc-generator/pull/318)
19+
1720
## [2.1.2] - 10th September, 2018
1821
### Fixed
1922
- Set correct HTTP method when parsing FormRequest (https://github.com/mpociot/laravel-apidoc-generator/pull/314)

src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function processRoute($route, $bindings = [], $headers = [], $withRespons
8282
$content = $response->getContent();
8383
}
8484
} catch (\Exception $e) {
85-
dump("Couldn't get response for route: ".implode(',', $this->getMethods($route)).'] '.$route->uri()."", $e);
85+
dump("Couldn't get response for route: ".implode(',', $this->getMethods($route)).'] '.$route->uri().'', $e);
8686
}
8787
}
8888

src/Mpociot/ApiDoc/Generators/DingoGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Mpociot\ApiDoc\Generators;
44

5-
65
class DingoGenerator extends AbstractGenerator
76
{
87
/**

src/Mpociot/ApiDoc/Generators/LaravelGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Mpociot\ApiDoc\Generators;
44

5-
use Exception;
65
use ReflectionClass;
76
use League\Fractal\Manager;
87
use Illuminate\Routing\Route;

tests/ApiDocGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function testCanParseResponseTag()
355355
$this->assertTrue(is_array($parsed));
356356
$this->assertArrayHasKey('showresponse', $parsed);
357357
$this->assertTrue($parsed['showresponse']);
358-
$this->assertJsonStringEqualsJsonString(json_decode($parsed['response'], true), "{ \"data\": []}");
358+
$this->assertJsonStringEqualsJsonString(json_decode($parsed['response'], true), '{ "data": []}');
359359
}
360360

361361
public function testCanParseTransformerTag()

0 commit comments

Comments
 (0)