mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +03:00
fix CS
This commit is contained in:
parent
f601dc17fb
commit
94ba751848
@ -405,7 +405,6 @@ class ApiDoc
|
||||
return $this->apis;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $documentation
|
||||
*/
|
||||
@ -662,7 +661,6 @@ class ApiDoc
|
||||
$data['apis'] = $apis;
|
||||
}
|
||||
|
||||
|
||||
if ($response = $this->response) {
|
||||
$data['response'] = $response;
|
||||
}
|
||||
|
@ -11,8 +11,6 @@
|
||||
|
||||
namespace Nelmio\ApiDocBundle\Extractor;
|
||||
|
||||
use Symfony\Component\Routing\Route;
|
||||
|
||||
/**
|
||||
* Interface for annotations providers.
|
||||
*
|
||||
|
@ -29,7 +29,7 @@ class ApiDocExtractorTest extends WebTestCase
|
||||
$data = $extractor->all();
|
||||
restore_error_handler();
|
||||
|
||||
if(class_exists('Dunglas\ApiBundle\DunglasApiBundle')) {
|
||||
if (class_exists('Dunglas\ApiBundle\DunglasApiBundle')) {
|
||||
$routesQuantity = 38;
|
||||
$httpsKey = 25;
|
||||
} else {
|
||||
|
@ -19,7 +19,6 @@ use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||
class EntityType extends AbstractType
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
@ -239,4 +239,3 @@ test_route_25:
|
||||
defaults: { _controller: NelmioApiDocTestBundle:Test:withLinkAction }
|
||||
requirements:
|
||||
_method: GET
|
||||
|
||||
|
@ -25,7 +25,7 @@ class MarkdownFormatterTest extends WebTestCase
|
||||
restore_error_handler();
|
||||
$result = $container->get('nelmio_api_doc.formatter.markdown_formatter')->format($data);
|
||||
|
||||
if(class_exists('Dunglas\ApiBundle\DunglasApiBundle')) {
|
||||
if (class_exists('Dunglas\ApiBundle\DunglasApiBundle')) {
|
||||
$expected = <<<MARKDOWN
|
||||
## /api/other-resources ##
|
||||
|
||||
|
@ -59,7 +59,6 @@ class FormTypeParserTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function dataTestParse()
|
||||
{
|
||||
|
||||
return $this->expectedData(true);
|
||||
}
|
||||
|
||||
|
@ -15,9 +15,9 @@ class ValidationParserTest extends WebTestCase
|
||||
{
|
||||
$container = $this->getContainer();
|
||||
|
||||
if($container->has('validator.mapping.class_metadata_factory')){
|
||||
if ($container->has('validator.mapping.class_metadata_factory')) {
|
||||
$factory = $container->get('validator.mapping.class_metadata_factory');
|
||||
}else {
|
||||
} else {
|
||||
$factory = $container->get('validator');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user