phptuts/starterkitforsymfony

View on GitHub

Showing 3 of 3 total issues

User has 46 functions (exceeds 20 allowed). Consider refactoring.
Open

class User implements AdvancedUserInterface, \Serializable, EquatableInterface, ResponseTypeInterface
{
 
use TimeStampTrait;
 
 
Severity: Minor
Found in src/AppBundle/Entity/User.php - About 6 hrs to fix

    Method onKernelException has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    public function onKernelException(GetResponseForExceptionEvent $event)
    {
    $exception = $event->getException();
     
    if ($exception instanceof HttpException
    Severity: Minor
    Found in src/AppBundle/Handler/ExceptionHandler.php - About 1 hr to fix

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

      public function serializeList(Paginator $paginator, $type, $page, $groups = [], $statusCode)
      Severity: Minor
      Found in src/AppBundle/Controller/Api/AbstractRestController.php - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language