corcel/corcel

View on GitHub
src/Model/Builder/PostBuilder.php

Summary

Maintainability
A
30 mins
Test Coverage
A
91%

Avoid too many return statements within this method.
Open

        return $this->where(function ($query) use ($terms) {
            $terms->each(function ($term) use ($query) {
                $query->orWhere('post_title', 'like', $term)
                    ->orWhere('post_excerpt', 'like', $term)
                    ->orWhere('post_content', 'like', $term);
Severity: Major
Found in src/Model/Builder/PostBuilder.php - About 30 mins to fix

    There are no issues that match your filters.

    Category
    Status