phpmentoring/webapp

View on GitHub
src/Mentoring/Conversation/ServiceProvider/ConversationServiceProvider.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method register has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function register(Container $app)
    {
        $app['conversation_repository'] = function (Application $app) {
            return new ConversationRepository($app['db'], $app['user.manager']);
        };

    Avoid too many return statements within this method.
    Open

                return new ConversationReplyForm();

      Avoid too many return statements within this method.
      Open

                  return $types;

        There are no issues that match your filters.

        Category
        Status