Merge pull request #319 from mpociot/analysis-XpdxMa

Apply fixes from StyleCI
This commit is contained in:
Marcel Pociot
2018-09-11 18:19:02 +02:00
committed by GitHub
4 changed files with 2 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ abstract class AbstractGenerator
$content = $response->getContent();
}
} catch (\Exception $e) {
dump("Couldn't get response for route: ".implode(',', $this->getMethods($route)).'] '.$route->uri()."", $e);
dump("Couldn't get response for route: ".implode(',', $this->getMethods($route)).'] '.$route->uri().'', $e);
}
}

View File

@@ -2,7 +2,6 @@
namespace Mpociot\ApiDoc\Generators;
class DingoGenerator extends AbstractGenerator
{
/**

View File

@@ -2,7 +2,6 @@
namespace Mpociot\ApiDoc\Generators;
use Exception;
use ReflectionClass;
use League\Fractal\Manager;
use Illuminate\Routing\Route;

View File

@@ -355,7 +355,7 @@ class ApiDocGeneratorTest extends TestCase
$this->assertTrue(is_array($parsed));
$this->assertArrayHasKey('showresponse', $parsed);
$this->assertTrue($parsed['showresponse']);
$this->assertJsonStringEqualsJsonString(json_decode($parsed['response'], true), "{ \"data\": []}");
$this->assertJsonStringEqualsJsonString(json_decode($parsed['response'], true), '{ "data": []}');
}
public function testCanParseTransformerTag()