PoweredLocal/vrata

View on GitHub

Showing 122 of 122 total issues

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];

Inline control structures are not allowed
Open

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

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

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 (! $request->getRoute()->isAggregate()) return $this->simpleRequest($request, $client);

Inline control structures are not allowed
Open

        if (empty($input) && ! is_array($input)) return new Response(null, $code);

Inline control structures are not allowed
Open

        if (is_array($input)) $input = json_encode($input);

Inline control structures are not allowed
Open

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

Inline control structures are not allowed
Open

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

Line exceeds 120 characters; contains 124 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($this->guzzleParams['body'])) unset($this->guzzleParams['body']);
Severity: Minor
Found in app/Services/RestClient.php by phpcodesniffer

Line exceeds 120 characters; contains 140 characters
Open

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

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 ($key === false) return $carry;

Inline control structures are not allowed
Open

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

Closing brace indented incorrectly; expected 8 spaces, found 9
Open

         }
Severity: Minor
Found in app/Services/RestClient.php by phpcodesniffer

Whitespace found at end of line
Open

    }    
Severity: Minor
Found in app/Services/RestClient.php by phpcodesniffer

Opening brace should be on a new line
Open

    private function aggregateRequest(Request $request, RestClient $client) {

Expected 1 newline at end of file; 0 found
Open

}
Severity: Minor
Found in app/Services/DNSRegistry.php by phpcodesniffer
Severity
Category
Status
Source
Language