This commit is contained in:
William Durand 2015-05-15 17:42:03 +02:00
parent f601dc17fb
commit 94ba751848
No known key found for this signature in database
GPG Key ID: A509BCF1C1274F3B
8 changed files with 4 additions and 11 deletions

View File

@ -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;
}

View File

@ -11,8 +11,6 @@
namespace Nelmio\ApiDocBundle\Extractor;
use Symfony\Component\Routing\Route;
/**
* Interface for annotations providers.
*

View File

@ -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 {

View File

@ -19,7 +19,6 @@ use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class EntityType extends AbstractType
{
/**
* {@inheritdoc}
*/

View File

@ -239,4 +239,3 @@ test_route_25:
defaults: { _controller: NelmioApiDocTestBundle:Test:withLinkAction }
requirements:
_method: GET

View File

@ -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 ##

View File

@ -59,7 +59,6 @@ class FormTypeParserTest extends \PHPUnit_Framework_TestCase
public function dataTestParse()
{
return $this->expectedData(true);
}

View File

@ -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');
}