Skip to content

Commit 0478466

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents c7b0c79 + 3417131 commit 0478466

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/Commands/GenerateDocumentation.php

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

33
namespace Mpociot\ApiDoc\Commands;
44

5-
use Mpociot\ApiDoc\Tools\DocumentationConfig;
65
use ReflectionClass;
76
use ReflectionException;
87
use Illuminate\Routing\Route;
@@ -15,6 +14,7 @@
1514
use Mpociot\ApiDoc\Tools\RouteMatcher;
1615
use Mpociot\Documentarian\Documentarian;
1716
use Mpociot\ApiDoc\Postman\CollectionWriter;
17+
use Mpociot\ApiDoc\Tools\DocumentationConfig;
1818

1919
class GenerateDocumentation extends Command
2020
{
@@ -55,7 +55,7 @@ public function __construct(RouteMatcher $routeMatcher)
5555
public function handle()
5656
{
5757
$this->docConfig = new DocumentationConfig(config('apidoc'));
58-
58+
5959
try {
6060
URL::forceRootUrl($this->docConfig->get('base_url'));
6161
} catch (\Exception $e) {

src/Tools/DocumentationConfig.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<?php
22

3-
43
namespace Mpociot\ApiDoc\Tools;
54

6-
75
class DocumentationConfig
86
{
9-
107
private $data;
118

129
public function __construct(array $config = [])
@@ -18,4 +15,4 @@ public function get($key, $default = null)
1815
{
1916
return data_get($this->data, $key, $default);
2017
}
21-
}
18+
}

src/Tools/ResponseStrategies/ResponseCallStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __invoke(Route $route, array $tags, array $routeProps)
3636
try {
3737
$response = [$this->makeApiCall($request)];
3838
} catch (\Exception $e) {
39-
echo "Response call failed for [". implode(',', $route->methods). "] {$route->uri}";
39+
echo 'Response call failed for ['.implode(',', $route->methods)."] {$route->uri}";
4040
// TODO
4141
// echo "Run this again with the --debug flag for details
4242
$response = null;

tests/Unit/GeneratorTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Mpociot\ApiDoc\Tests\Unit;
44

5-
use Mpociot\ApiDoc\Tools\DocumentationConfig;
65
use Orchestra\Testbench\TestCase;
76
use Mpociot\ApiDoc\Tools\Generator;
87
use Illuminate\Support\Facades\Storage;
8+
use Mpociot\ApiDoc\Tools\DocumentationConfig;
99
use Mpociot\ApiDoc\ApiDocGeneratorServiceProvider;
1010

1111
abstract class GeneratorTestCase extends TestCase

0 commit comments

Comments
 (0)