PoweredLocal/vrata

View on GitHub
app/Presenters/JSONPresenter.php

Summary

Maintainability
A
0 mins
Test Coverage

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 ($decoded === null) throw new DataFormatException('Unable to decode input');

Opening brace should be on a new line
Open

    public static function safeEncode($input) {

Expected 1 newline at end of file; 0 found
Open

}

Opening brace should be on a new line
Open

    public static function safeDecode($input) {

There are no issues that match your filters.

Category
Status