mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Fix CS
This commit is contained in:
parent
3c47357a0e
commit
ce71bf0629
@ -42,6 +42,7 @@ class JsonSerializableParser implements ParserInterface
|
|||||||
if (isset($input['name']) && !empty($input['name'])) {
|
if (isset($input['name']) && !empty($input['name'])) {
|
||||||
$output = array();
|
$output = array();
|
||||||
$output[$input['name']] = $parsed;
|
$output[$input['name']] = $parsed;
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,6 +90,7 @@ class JsonSerializableParser implements ParserInterface
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -83,6 +83,7 @@ class ValidationParser implements ParserInterface, PostParserInterface
|
|||||||
'readonly' => null,
|
'readonly' => null,
|
||||||
'children' => $parsed
|
'children' => $parsed
|
||||||
);
|
);
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,8 @@ class ApiDocExtractorTest extends WebTestCase
|
|||||||
private static $ROUTES_QUANTITY_PREMIUM = 6; // Routes in the premium view
|
private static $ROUTES_QUANTITY_PREMIUM = 6; // Routes in the premium view
|
||||||
private static $ROUTES_QUANTITY_TEST = 2; // Routes in the test view
|
private static $ROUTES_QUANTITY_TEST = 2; // Routes in the test view
|
||||||
|
|
||||||
public static function setUpBeforeClass() {
|
public static function setUpBeforeClass()
|
||||||
|
{
|
||||||
if (class_exists('Dunglas\ApiBundle\DunglasApiBundle')) {
|
if (class_exists('Dunglas\ApiBundle\DunglasApiBundle')) {
|
||||||
self::$ROUTES_QUANTITY_DEFAULT += self::NB_ROUTES_ADDED_BY_DUNGLAS_API_BUNDLE;
|
self::$ROUTES_QUANTITY_DEFAULT += self::NB_ROUTES_ADDED_BY_DUNGLAS_API_BUNDLE;
|
||||||
self::$ROUTES_QUANTITY_PREMIUM += self::NB_ROUTES_ADDED_BY_DUNGLAS_API_BUNDLE;
|
self::$ROUTES_QUANTITY_PREMIUM += self::NB_ROUTES_ADDED_BY_DUNGLAS_API_BUNDLE;
|
||||||
|
@ -16,6 +16,7 @@ class CachingApiDocExtractorTest extends WebTestCase
|
|||||||
$data = ApiDocExtractorTest::dataProviderForViews();
|
$data = ApiDocExtractorTest::dataProviderForViews();
|
||||||
// remove default view data from provider
|
// remove default view data from provider
|
||||||
array_shift($data);
|
array_shift($data);
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,10 +3,8 @@
|
|||||||
* Created by mcfedr on 30/06/15 21:06
|
* Created by mcfedr on 30/06/15 21:06
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
namespace NelmioApiDocBundle\Tests\Parser;
|
namespace NelmioApiDocBundle\Tests\Parser;
|
||||||
|
|
||||||
|
|
||||||
use Nelmio\ApiDocBundle\Parser\JsonSerializableParser;
|
use Nelmio\ApiDocBundle\Parser\JsonSerializableParser;
|
||||||
|
|
||||||
class JsonSerializableParserTest extends \PHPUnit_Framework_TestCase
|
class JsonSerializableParserTest extends \PHPUnit_Framework_TestCase
|
||||||
|
Loading…
x
Reference in New Issue
Block a user