Fix CS & file permissions

This commit is contained in:
William DURAND 2014-07-30 10:50:23 +02:00
parent 6b18d88517
commit 6c7c53e78d
5 changed files with 7 additions and 8 deletions

View File

@ -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.')

View File

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

View File

@ -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
View File

View 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';