Skip to content

Commit b48650a

Browse files
committed
Fix CS
1 parent 87b690d commit b48650a

File tree

6 files changed

+16
-14
lines changed

6 files changed

+16
-14
lines changed

Annotation/ApiDoc.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ public function __construct(array $data)
228228
$this->deprecated = $data['deprecated'];
229229
}
230230

231-
if (isset($data['tags'])) {
232-
$tags = $data['tags'];
231+
if (isset($data['tags'])) {
232+
$tags = $data['tags'];
233233

234-
if (!is_array($tags)) {
235-
$tags = array($tags);
236-
}
234+
if (!is_array($tags)) {
235+
$tags = array($tags);
236+
}
237237

238-
$this->tags = $tags;
239-
}
238+
$this->tags = $tags;
239+
}
240240

241241
if (isset($data['https'])) {
242242
$this->https = $data['https'];

Extractor/Handler/FosRestHandler.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ public function handle(ApiDoc $annotation, array $annotations, Route $route, \Re
5656
}
5757
}
5858
}
59-
59+
6060
/**
6161
* Handle FOSRestBundle requirements in order to return a string.
6262
*
63-
* @param mixed $requirements
63+
* @param mixed $requirements
6464
* @return string
6565
*/
6666
private function handleRequirements($requirements)
@@ -70,8 +70,10 @@ private function handleRequirements($requirements)
7070
return $requirements->getHtmlPattern();
7171
}
7272
$class = get_class($requirements);
73+
7374
return substr($class, strrpos($class, '\\')+1);
7475
}
75-
return (string)$requirements;
76+
77+
return (string) $requirements;
7678
}
7779
}

Formatter/FormatterInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function format(array $collection);
2727
* Format documentation data for one route.
2828
*
2929
* @param ApiDoc $annotation
30-
* return string|array
30+
* return string|array
3131
*/
3232
public function formatOne(ApiDoc $annotation);
3333
}

Parser/ValidationParser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ protected function parseConstraint(Constraint $constraint, $vparams, $className,
233233
/**
234234
* Return Choice constraint choices.
235235
*
236-
* @param Constraint $constraint
236+
* @param Constraint $constraint
237237
* @param $className
238238
* @return array
239239
* @throws \Symfony\Component\Validator\Exception\ConstraintDefinitionException

Tests/Extractor/Handler/FosRestHandlerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testGetWithQueryParamNoDefault()
8686

8787
$this->assertArrayNotHasKey('default', $filter);
8888
}
89-
89+
9090
public function testGetWithConstraintAsRequirements()
9191
{
9292
$container = $this->getContainer();

Tests/Fixtures/Controller/TestController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function zActionWithQueryParamAction()
130130
public function zActionWithQueryParamNoDefaultAction()
131131
{
132132
}
133-
133+
134134
/**
135135
* @ApiDoc()
136136
* @QueryParam(name="mail", requirements=@Email, description="Email of someone.")

0 commit comments

Comments
 (0)