PoweredLocal/vrata

View on GitHub

Showing 122 of 122 total issues

Line exceeds 120 characters; contains 128 characters
Open

                if ($data === null) throw new DataFormatException('Unable to get JSON response from ' . $resource['serviceId']);

Inline control structures are not allowed
Open

            if (isset($data['swagger']) && preg_match('/^2\./', $data['swagger']) && isset($data['paths']))

Inline control structures are not allowed
Open

        if (! $request->getRoute()->isAggregate()) return $this->simpleRequest($request, $client);

Inline control structures are not allowed
Open

        if ($request->getRoute()->isAggregate()) throw new NotImplementedException('Aggregate ' . strtoupper($request->method()) . 's are not implemented yet');

Inline control structures are not allowed
Open

        if (empty($config)) return $this;

Inline control structures are not allowed
Open

        if (empty($output)) throw new DataFormatException('Unable to parse the routes');

Line exceeds 120 characters; contains 156 characters
Open

            $data = isset($this->config['actions'][$alias]['input_key']) ? $output[$alias][$this->config['actions'][$alias]['input_key']] : $output[$alias];

Line exceeds 120 characters; contains 121 characters
Open

                'connect_timeout' => Config::get('gateway.global.connect_timeout', Config::get('gateway.global.timeout'))

Inline control structures are not allowed
Open

            if (! $response) $response = new PsrResponse(502, []);
Severity: Minor
Found in app/Services/RestClient.php by phpcodesniffer

Inline control structures are not allowed
Open

        if (! $request->getRoute()->isAggregate()) return $this->simpleRequest($request, $client);

Inline control structures are not allowed
Open

        if (isset($parametersJar['query_string'])) $url .= '?' . $parametersJar['query_string'];
Severity: Minor
Found in app/Services/RestClient.php by phpcodesniffer

Inline control structures are not allowed
Open

            if ($data === null) throw new DataFormatException('Unable to get JSON response from ' . $serviceId);

Line exceeds 120 characters; contains 140 characters
Open

                $response = $this->client->request('GET', $resource['url'] . $resource['docRoot'] . $resource['path'], ['timeout' => 10.0]);

Line exceeds 120 characters; contains 146 characters
Open

                'X-Token-Scopes' => $request->user() && ! empty($request->user()->token()) ? implode(',', $request->user()->token()->scopes) : '',
Severity: Minor
Found in app/Services/RestClient.php by phpcodesniffer

Inline control structures are not allowed
Open

            if (! $route->isPublic()) $middleware[] = 'auth';

Inline control structures are not allowed
Open

            if ($wrapper->hasCriticalActions()) throw new UnableToExecuteRequestException($response);
Severity: Minor
Found in app/Services/RestClient.php by phpcodesniffer

Inline control structures are not allowed
Open

        if (! $request->getRoute()->isAggregate()) return $this->simpleRequest($request, $client);

Inline control structures are not allowed
Open

        if (empty($request->getRoute())) throw new DataFormatException('Unable to find original URI pattern');

Inline control structures are not allowed
Open

        if ($url[0] != '/') $url = '/' . $url;
Severity: Minor
Found in app/Services/RestClient.php by phpcodesniffer

Inline control structures are not allowed
Open

        if (empty($output)) throw new DataFormatException('Unable to parse the routes');
Severity
Category
Status
Source
Language