PoweredLocal/vrata

View on GitHub
app/Presenters/JSONPresenter.php

Summary

Maintainability
A
0 mins
Test Coverage

Inline control structures are not allowed
Open

        if ($decoded === null) throw new DataFormatException('Unable to decode input');

Inline control structures are not allowed
Open

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

Opening brace should be on a new line
Open

    public static function safeEncode($input) {

Opening brace should be on a new line
Open

    public static function safeDecode($input) {

Expected 1 newline at end of file; 0 found
Open

}

There are no issues that match your filters.

Category
Status