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()
|
->booleanNode('custom_endpoint')->defaultFalse()->end()
|
||||||
->end()
|
->end()
|
||||||
->validate()
|
->validate()
|
||||||
->ifTrue(function($v) {
|
->ifTrue(function ($v) {
|
||||||
return 'http' === $v['delivery'] && !$v['type'] ;
|
return 'http' === $v['delivery'] && !$v['type'] ;
|
||||||
})
|
})
|
||||||
->thenInvalid('"type" is required when using http delivery.')
|
->thenInvalid('"type" is required when using http delivery.')
|
||||||
|
@ -306,8 +306,8 @@ class ApiDocExtractor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($supportedParsers as $parser) {
|
foreach ($supportedParsers as $parser) {
|
||||||
if($parser instanceof PostParserInterface) {
|
if ($parser instanceof PostParserInterface) {
|
||||||
$mp = $parser->postParse($normalizedOutput, $response);
|
$mp = $parser->postParse($normalizedOutput, $response);
|
||||||
$response = $this->mergeParameters($response, $mp);
|
$response = $this->mergeParameters($response, $mp);
|
||||||
}
|
}
|
||||||
|
@ -261,14 +261,14 @@ class JmsMetadataParser implements ParserInterface, PostParserInterface
|
|||||||
/**
|
/**
|
||||||
* Recursive `doPostParse` to avoid circular post parsing.
|
* Recursive `doPostParse` to avoid circular post parsing.
|
||||||
*
|
*
|
||||||
* @param array $parameters
|
* @param array $parameters
|
||||||
* @param array $visited
|
* @param array $visited
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function doPostParse (array $parameters, array $visited = array())
|
protected function doPostParse (array $parameters, array $visited = array())
|
||||||
{
|
{
|
||||||
foreach($parameters as $param => $data) {
|
foreach ($parameters as $param => $data) {
|
||||||
if(isset($data['class']) && isset($data['children']) && !in_array($data['class'], $visited)) {
|
if (isset($data['class']) && isset($data['children']) && !in_array($data['class'], $visited)) {
|
||||||
$visited[] = $data['class'];
|
$visited[] = $data['class'];
|
||||||
|
|
||||||
$input = array('class' => $data['class'], 'groups' => isset($data['groups']) ? $data['groups'] : array());
|
$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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
return 'require_construction_type';
|
return 'require_construction_type';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user