Dwarfex/WordpressApiWrapper

View on GitHub
src/Service/Main/PostService.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method getPosts has 20 arguments (exceeds 4 allowed). Consider refactoring.
Open

        int $page = 1,
        int $perPage = 10,
        string $search = null,
        string $context = null,
        string $after = null,
Severity: Major
Found in src/Service/Main/PostService.php - About 2 hrs to fix

    Method getPosts has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getPosts(
            int $page = 1,
            int $perPage = 10,
            string $search = null,
            string $context = null,
    Severity: Minor
    Found in src/Service/Main/PostService.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status