mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Fix CS & file permissions
This commit is contained in:
parent
6b18d88517
commit
6c7c53e78d
@ -101,7 +101,7 @@ class Configuration implements ConfigurationInterface
|
||||
->booleanNode('custom_endpoint')->defaultFalse()->end()
|
||||
->end()
|
||||
->validate()
|
||||
->ifTrue(function($v) {
|
||||
->ifTrue(function ($v) {
|
||||
return 'http' === $v['delivery'] && !$v['type'] ;
|
||||
})
|
||||
->thenInvalid('"type" is required when using http delivery.')
|
||||
|
@ -306,8 +306,8 @@ class ApiDocExtractor
|
||||
}
|
||||
}
|
||||
|
||||
foreach($supportedParsers as $parser) {
|
||||
if($parser instanceof PostParserInterface) {
|
||||
foreach ($supportedParsers as $parser) {
|
||||
if ($parser instanceof PostParserInterface) {
|
||||
$mp = $parser->postParse($normalizedOutput, $response);
|
||||
$response = $this->mergeParameters($response, $mp);
|
||||
}
|
||||
|
@ -261,14 +261,14 @@ class JmsMetadataParser implements ParserInterface, PostParserInterface
|
||||
/**
|
||||
* Recursive `doPostParse` to avoid circular post parsing.
|
||||
*
|
||||
* @param array $parameters
|
||||
* @param array $visited
|
||||
* @param array $parameters
|
||||
* @param array $visited
|
||||
* @return array
|
||||
*/
|
||||
protected function doPostParse (array $parameters, array $visited = array())
|
||||
{
|
||||
foreach($parameters as $param => $data) {
|
||||
if(isset($data['class']) && isset($data['children']) && !in_array($data['class'], $visited)) {
|
||||
foreach ($parameters as $param => $data) {
|
||||
if (isset($data['class']) && isset($data['children']) && !in_array($data['class'], $visited)) {
|
||||
$visited[] = $data['class'];
|
||||
|
||||
$input = array('class' => $data['class'], 'groups' => isset($data['groups']) ? $data['groups'] : array());
|
||||
|
0
Resources/public/css/screen.css
Executable file → Normal file
0
Resources/public/css/screen.css
Executable file → Normal file
@ -49,7 +49,6 @@ class RequireConstructionType extends AbstractType
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'require_construction_type';
|
||||
|
Loading…
x
Reference in New Issue
Block a user