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