mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-10 09:36:10 +03:00
Fix CS
This commit is contained in:
parent
87b690d5e1
commit
b48650a9e0
@ -228,15 +228,15 @@ class ApiDoc
|
|||||||
$this->deprecated = $data['deprecated'];
|
$this->deprecated = $data['deprecated'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($data['tags'])) {
|
if (isset($data['tags'])) {
|
||||||
$tags = $data['tags'];
|
$tags = $data['tags'];
|
||||||
|
|
||||||
if (!is_array($tags)) {
|
if (!is_array($tags)) {
|
||||||
$tags = array($tags);
|
$tags = array($tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->tags = $tags;
|
$this->tags = $tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($data['https'])) {
|
if (isset($data['https'])) {
|
||||||
$this->https = $data['https'];
|
$this->https = $data['https'];
|
||||||
|
@ -60,7 +60,7 @@ class FosRestHandler implements HandlerInterface
|
|||||||
/**
|
/**
|
||||||
* Handle FOSRestBundle requirements in order to return a string.
|
* Handle FOSRestBundle requirements in order to return a string.
|
||||||
*
|
*
|
||||||
* @param mixed $requirements
|
* @param mixed $requirements
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function handleRequirements($requirements)
|
private function handleRequirements($requirements)
|
||||||
@ -70,8 +70,10 @@ class FosRestHandler implements HandlerInterface
|
|||||||
return $requirements->getHtmlPattern();
|
return $requirements->getHtmlPattern();
|
||||||
}
|
}
|
||||||
$class = get_class($requirements);
|
$class = get_class($requirements);
|
||||||
|
|
||||||
return substr($class, strrpos($class, '\\')+1);
|
return substr($class, strrpos($class, '\\')+1);
|
||||||
}
|
}
|
||||||
return (string)$requirements;
|
|
||||||
|
return (string) $requirements;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ interface FormatterInterface
|
|||||||
* Format documentation data for one route.
|
* Format documentation data for one route.
|
||||||
*
|
*
|
||||||
* @param ApiDoc $annotation
|
* @param ApiDoc $annotation
|
||||||
* return string|array
|
* return string|array
|
||||||
*/
|
*/
|
||||||
public function formatOne(ApiDoc $annotation);
|
public function formatOne(ApiDoc $annotation);
|
||||||
}
|
}
|
||||||
|
@ -233,7 +233,7 @@ class ValidationParser implements ParserInterface, PostParserInterface
|
|||||||
/**
|
/**
|
||||||
* Return Choice constraint choices.
|
* Return Choice constraint choices.
|
||||||
*
|
*
|
||||||
* @param Constraint $constraint
|
* @param Constraint $constraint
|
||||||
* @param $className
|
* @param $className
|
||||||
* @return array
|
* @return array
|
||||||
* @throws \Symfony\Component\Validator\Exception\ConstraintDefinitionException
|
* @throws \Symfony\Component\Validator\Exception\ConstraintDefinitionException
|
||||||
|
Loading…
x
Reference in New Issue
Block a user