Showing 122 of 122 total issues
Inline control structures are not allowed Open
Open
if (empty($output)) throw new DataFormatException('Unable to parse the routes');
- Exclude checks
Line exceeds 120 characters; contains 156 characters Open
Open
$data = isset($this->config['actions'][$alias]['input_key']) ? $output[$alias][$this->config['actions'][$alias]['input_key']] : $output[$alias];
- Exclude checks
Inline control structures are not allowed Open
Open
if ($request->getRoute()->isAggregate()) throw new NotImplementedException('Aggregate ' . strtoupper($request->method()) . 's are not implemented yet');
- Exclude checks
Line exceeds 120 characters; contains 146 characters Open
Open
'X-Token-Scopes' => $request->user() && ! empty($request->user()->token()) ? implode(',', $request->user()->token()->scopes) : '',
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
Open
if ($data === null) throw new DataFormatException('Unable to get JSON response from ' . $resource['serviceId']);
- Exclude checks
Inline control structures are not allowed Open
Open
if (! $request->getRoute()->isAggregate()) return $this->simpleRequest($request, $client);
- Exclude checks
Inline control structures are not allowed Open
Open
if (empty($input) && ! is_array($input)) return new Response(null, $code);
- Exclude checks
Inline control structures are not allowed Open
Open
if (is_array($input)) $input = json_encode($input);
- Exclude checks
Inline control structures are not allowed Open
Open
if (empty($config)) return $this;
- Exclude checks
Inline control structures are not allowed Open
Open
if ($data === null) throw new DataFormatException('Unable to get JSON response from ' . $resource['serviceId']);
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
Open
if ($data === null) throw new DataFormatException('Unable to get JSON response from ' . $resource['serviceId']);
- Exclude checks
Inline control structures are not allowed Open
Open
if (isset($this->guzzleParams['body'])) unset($this->guzzleParams['body']);
- Exclude checks
Line exceeds 120 characters; contains 140 characters Open
Open
$response = $this->client->request('GET', $resource['url'] . $resource['docRoot'] . $resource['path'], ['timeout' => 10.0]);
- Exclude checks
Inline control structures are not allowed Open
Open
if (empty($request->getRoute())) throw new DataFormatException('Unable to find original URI pattern');
- Exclude checks
Inline control structures are not allowed Open
Open
if ($key === false) return $carry;
- Exclude checks
Inline control structures are not allowed Open
Open
if (! $route->isPublic()) $middleware[] = 'auth';
- Exclude checks
Closing brace indented incorrectly; expected 8 spaces, found 9 Open
Open
}
- Exclude checks
Whitespace found at end of line Open
Open
}
- Exclude checks
Opening brace should be on a new line Open
Open
private function aggregateRequest(Request $request, RestClient $client) {
- Exclude checks
Expected 1 newline at end of file; 0 found Open
Open
}
- Exclude checks