mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-28 10:06:01 +08:00
Merge pull request #558 from mpociot/analysis-z9E519
Apply fixes from StyleCI
This commit is contained in:
@@ -28,7 +28,7 @@ class ResponseCallStrategy
|
||||
{
|
||||
$rulesToApply = $routeProps['rules']['response_calls'] ?? [];
|
||||
if (! $this->shouldMakeApiCall($route, $rulesToApply)) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
$this->configureEnvironment($rulesToApply);
|
||||
|
||||
@@ -40,7 +40,7 @@ class ResponseFileStrategy
|
||||
);
|
||||
|
||||
if (empty($responseFileTags)) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
return array_map(function (Tag $responseFileTag) {
|
||||
|
||||
@@ -39,7 +39,7 @@ class ResponseTagStrategy
|
||||
);
|
||||
|
||||
if (empty($responseTags)) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
return array_map(function (Tag $responseTag) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user