bookboon/api-php

View on GitHub
src/Entity/Book.php

Summary

Maintainability
C
1 day
Test Coverage
C
71%

Book has 38 functions (exceeds 20 allowed). Consider refactoring.
Open

abstract class Book extends Entity
{
    const _OWN_TYPE = '';

    const TYPE_AUDIO = 'audio';
Severity: Minor
Found in src/Entity/Book.php - About 5 hrs to fix

    File Book.php has 300 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace Bookboon\Api\Entity;
    
    use Bookboon\Api\Bookboon;
    Severity: Minor
    Found in src/Entity/Book.php - About 3 hrs to fix

      Method search has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              Bookboon $bookboon,
              string $query,
              int $limit = 10,
              int $offset = 0,
               array $bookTypes = ['professional']
      Severity: Minor
      Found in src/Entity/Book.php - About 35 mins to fix

        Method recommendations has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                Bookboon $bookboon,
                array $bookIds = [],
                int $limit = 5,
                array $bookTypes = ['professional'],
                array $params = []
        Severity: Minor
        Found in src/Entity/Book.php - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status