Merge pull request #558 from mpociot/analysis-z9E519

Apply fixes from StyleCI
This commit is contained in:
Marcel Pociot
2019-08-25 23:47:45 +02:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ class ResponseCallStrategy
{
$rulesToApply = $routeProps['rules']['response_calls'] ?? [];
if (! $this->shouldMakeApiCall($route, $rulesToApply)) {
return null;
return;
}
$this->configureEnvironment($rulesToApply);

View File

@@ -40,7 +40,7 @@ class ResponseFileStrategy
);
if (empty($responseFileTags)) {
return null;
return;
}
return array_map(function (Tag $responseFileTag) {

View File

@@ -39,7 +39,7 @@ class ResponseTagStrategy
);
if (empty($responseTags)) {
return null;
return;
}
return array_map(function (Tag $responseTag) {

View File

@@ -39,7 +39,7 @@ class TransformerTagsStrategy
{
try {
if (empty($transformerTag = $this->getTransformerTag($tags))) {
return null;
return;
}
$transformer = $this->getTransformerClass($transformerTag);
@@ -58,7 +58,7 @@ class TransformerTagsStrategy
return [response($fractal->createData($resource)->toJson())];
} catch (\Exception $e) {
return null;
return;
}
}