ernestwisniewski/kbin

View on GitHub

Showing 226 of 573 total issues

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

        #[MapEntity(id: 'post_id')]
        Post $post,
        PostFactory $factory,
        EventDispatcherInterface $dispatcher,
        RateLimiterFactory $apiReadLimiter,
Severity: Minor
Found in src/Controller/Api/Post/PostsRetrieveApi.php - About 35 mins to fix

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

            ?string $body,
            Magazine $magazine,
            User $user,
            bool $isAdult,
            string $ip = null
    Severity: Minor
    Found in src/Entity/Post.php - About 35 mins to fix

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

              string $email,
              string $username,
              string $password,
              string $apProfileId = null,
              string $apId = null
      Severity: Minor
      Found in src/Entity/User.php - About 35 mins to fix

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

                #[MapEntity(id: 'post_id')]
                Post $post,
                int $choice,
                VoteCreate $voteCreate,
                PostFactory $factory,
        Severity: Minor
        Found in src/Controller/Api/Post/PostsVoteApi.php - About 35 mins to fix

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

                  PostRepository $repository,
                  PostFactory $factory,
                  RequestStack $request,
                  RateLimiterFactory $apiReadLimiter,
                  RateLimiterFactory $anonymousApiReadLimiter
          Severity: Minor
          Found in src/Controller/Api/Post/PostsRetrieveApi.php - About 35 mins to fix

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

                    ?Magazine $magazine,
                    string $intervalStr,
                    ?\DateTime $start,
                    ?\DateTime $end,
                    ?bool $onlyLocal
            Severity: Minor
            Found in src/Repository/StatsViewsRepository.php - About 35 mins to fix

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

                      #[MapEntity(id: 'magazine_id')]
                      Magazine $magazine,
                      PostCreate $postCreate,
                      PostFactory $postFactory,
                      ValidatorInterface $validator,
              Severity: Minor
              Found in src/Controller/Api/Post/PostsCreateApi.php - About 35 mins to fix

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

                        #[MapEntity(id: 'magazine_id')]
                        Magazine $magazine,
                        string $tag,
                        EntityManagerInterface $entityManager,
                        MagazineFactory $factory,
                Severity: Minor
                Found in src/Controller/Api/Magazine/Admin/MagazineAddTagsApi.php - About 35 mins to fix

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

                          #[MapEntity(id: 'magazine_id')]
                          Magazine $magazine,
                          #[MapEntity(id: 'user_id')]
                          User $user,
                          MagazineUnban $magazineUnban,
                  Severity: Minor
                  Found in src/Controller/Api/Magazine/Moderate/MagazineUserBanApi.php - About 35 mins to fix

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

                            #[MapEntity(id: 'magazine_id')]
                            Magazine $magazine,
                            PostCreate $postCreate,
                            PostFactory $postFactory,
                            ValidatorInterface $validator,
                    Severity: Minor
                    Found in src/Controller/Api/Post/PostsCreateApi.php - About 35 mins to fix

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

                          public function __construct(string $body, ?Post $post, User $user, PostComment $parent = null, string $ip = null)
                      Severity: Minor
                      Found in src/Entity/PostComment.php - About 35 mins to fix

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

                                Magazine $magazine,
                                ?string $sortBy,
                                ?string $time,
                                PostRepository $repository,
                                Request $request
                        Severity: Minor
                        Found in src/Controller/Post/PostFrontController.php - About 35 mins to fix

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

                                  #[MapEntity(id: 'magazine_id')]
                                  Magazine $magazine,
                                  string $tag,
                                  EntityManagerInterface $entityManager,
                                  MagazineFactory $factory,
                          Severity: Minor
                          Found in src/Controller/Api/Magazine/Admin/MagazineRemoveTagsApi.php - About 35 mins to fix

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

                                    Magazine $magazine,
                                    User $user,
                                    User $bannedBy,
                                    string $reason = null,
                                    \DateTimeInterface $expiredAt = null
                            Severity: Minor
                            Found in src/Entity/MagazineBan.php - About 35 mins to fix

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

                                      #[MapEntity(mapping: ['magazine_name' => 'name'])]
                                      Magazine $magazine,
                                      #[MapEntity(id: 'entry_id')]
                                      Entry $entry,
                                      #[MapEntity(id: 'comment_id')]
                              Severity: Minor
                              Found in src/Controller/Entry/Comment/EntryCommentVotersController.php - About 35 mins to fix

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

                                        #[MapEntity(id: 'magazine_id')]
                                        Magazine $magazine,
                                        #[MapEntity(id: 'badge_id')]
                                        Badge $badge,
                                        EntryBadgeDelete $entryBadgeDelete,
                                Severity: Minor
                                Found in src/Controller/Api/Magazine/Admin/MagazineRemoveBadgesApi.php - About 35 mins to fix

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

                                          PostRepository $repository,
                                          PostFactory $factory,
                                          RequestStack $request,
                                          RateLimiterFactory $apiReadLimiter,
                                          RateLimiterFactory $anonymousApiReadLimiter
                                  Severity: Minor
                                  Found in src/Controller/Api/Post/PostsRetrieveApi.php - About 35 mins to fix

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

                                            ?Magazine $magazine,
                                            string $intervalStr,
                                            ?\DateTime $start,
                                            ?\DateTime $end,
                                            ?bool $onlyLocal
                                    Severity: Minor
                                    Found in src/Repository/StatsContentRepository.php - About 35 mins to fix

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

                                              #[MapEntity(id: 'entry_id')]
                                              Entry $entry,
                                              EntryEdit $entryEdit,
                                              EntryFactory $entryFactory,
                                              ValidatorInterface $validator,
                                      Severity: Minor
                                      Found in src/Controller/Api/Entry/EntriesUpdateApi.php - About 35 mins to fix

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

                                                MagazineSmallResponseDto $magazine,
                                                UserSmallResponseDto $moderator,
                                                \DateTimeImmutable $createdAt,
                                                string $type,
                                                MagazineBanResponseDto $subject = null,
                                        Severity: Minor
                                        Found in src/Kbin/Magazine/DTO/MagazineLogResponseDto.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language