BookStackApp/BookStack

View on GitHub

Showing 889 of 1,485 total issues

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

    public static function getDefault(string $event, Webhook $webhook, $detail, User $initiator, int $initiatedTime): self
Severity: Minor
Found in app/Activity/Tools/WebhookFormatter.php - About 35 mins to fix

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

        protected function sendNotificationToUserIds(string $notification, array $userIds, User $initiator, string|Loggable $detail, Entity $relatedModel): void
    Severity: Minor
    Found in app/Activity/Notifications/Handlers/BaseNotificationHandler.php - About 35 mins to fix

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

          protected function applyNegatableWhere(EloquentBuilder $query, bool $negated, string $column, string $operator, mixed $value): void
      Severity: Minor
      Found in app/Search/SearchRunner.php - About 35 mins to fix

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

                Connection $db,
                string $table,
                string $column,
                string $oldUrl,
                string $newUrl
        Severity: Minor
        Found in app/Console/Commands/UpdateUrlCommand.php - About 35 mins to fix

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

                  protected TagRepo $tagRepo,
                  protected ImageRepo $imageRepo,
                  protected ReferenceUpdater $referenceUpdater,
                  protected ReferenceStore $referenceStore,
                  protected PageQueries $pageQueries,
          Severity: Minor
          Found in app/Entities/Repos/BaseRepo.php - About 35 mins to fix

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

                    protected BookshelfRepo $shelfRepo,
                    protected BookshelfQueries $queries,
                    protected BookQueries $bookQueries,
                    protected ShelfContext $shelfContext,
                    protected ReferenceFetcher $referenceFetcher,
            Severity: Minor
            Found in app/Entities/Controllers/BookshelfController.php - About 35 mins to fix

              Function buildEditorUI has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              export function buildEditorUI(container: HTMLElement, element: HTMLElement, scrollContainer: HTMLElement, editor: LexicalEditor, options: Record<string, any>): EditorUiContext {
              Severity: Minor
              Found in resources/js/wysiwyg/ui/index.ts - About 35 mins to fix

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

                    public function __construct(int $id, int $sort, ?int $parentChapterId, string $type, int $parentBookId)
                Severity: Minor
                Found in app/Entities/Tools/BookSortMapItem.php - About 35 mins to fix

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

                          public BookshelfQueries $shelves,
                          public BookQueries $books,
                          public ChapterQueries $chapters,
                          public PageQueries $pages,
                          public PageRevisionQueries $revisions,
                  Severity: Minor
                  Found in app/Entities/Queries/EntityQueries.php - About 35 mins to fix

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

                            protected ShelfContext $shelfContext,
                            protected BookRepo $bookRepo,
                            protected BookQueries $queries,
                            protected BookshelfQueries $shelfQueries,
                            protected ReferenceFetcher $referenceFetcher,
                    Severity: Minor
                    Found in app/Entities/Controllers/BookController.php - About 35 mins to fix

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

                          protected function isSortChangePermissible(BookSortMapItem $sortMapItem, BookChild $model, ?Entity $currentParent, ?Entity $newBook, ?Entity $newChapter): bool
                      Severity: Minor
                      Found in app/Entities/Tools/BookContents.php - About 35 mins to fix

                        Function $wrapNodesImpl has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                          selection: BaseSelection,
                          nodes: LexicalNode[],
                          nodesLength: number,
                          createElement: () => ElementNode,
                          wrappingElement: null | ElementNode = null,
                        Severity: Minor
                        Found in resources/js/wysiwyg/lexical/selection/range-selection.ts - About 35 mins to fix

                          Function setLocalStateFocus has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                            provider: Provider,
                            name: string,
                            color: string,
                            focusing: boolean,
                            awarenessData: object,
                          Severity: Minor
                          Found in resources/js/wysiwyg/lexical/yjs/index.ts - About 35 mins to fix

                            Function initLocalState has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              provider: Provider,
                              name: string,
                              color: string,
                              focusing: boolean,
                              awarenessData: object,
                            Severity: Minor
                            Found in resources/js/wysiwyg/lexical/yjs/index.ts - About 35 mins to fix

                              Function createCursorSelection has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                cursor: Cursor,
                                anchorKey: NodeKey,
                                anchorOffset: number,
                                focusKey: NodeKey,
                                focusOffset: number,
                              Severity: Minor
                              Found in resources/js/wysiwyg/lexical/yjs/SyncCursors.ts - About 35 mins to fix

                                Function setNativeSelectionWithPaths has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                  rootElement: Node,
                                  anchorPath: number[],
                                  anchorOffset: number,
                                  focusPath: number[],
                                  focusOffset: number,
                                Severity: Minor
                                Found in resources/js/wysiwyg/lexical/selection/__tests__/utils/index.ts - About 35 mins to fix

                                  Function createDOMRange has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                    editor: LexicalEditor,
                                    anchorNode: LexicalNode,
                                    _anchorOffset: number,
                                    focusNode: LexicalNode,
                                    _focusOffset: number,
                                  Severity: Minor
                                  Found in resources/js/wysiwyg/lexical/selection/utils.ts - About 35 mins to fix

                                    Function $insertTableRow has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                      tableNode: TableNode,
                                      targetIndex: number,
                                      shouldInsertAfter = true,
                                      rowCount: number,
                                      table: TableDOMTable,
                                    Severity: Minor
                                    Found in resources/js/wysiwyg/lexical/table/LexicalTableUtils.ts - About 35 mins to fix

                                      Function $handleArrowKey has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                        editor: LexicalEditor,
                                        event: KeyboardEvent,
                                        direction: Direction,
                                        tableNode: TableNode,
                                        tableObserver: TableObserver,
                                      Severity: Minor
                                      Found in resources/js/wysiwyg/lexical/table/LexicalTableSelectionHelpers.ts - About 35 mins to fix

                                        Function getChangeType has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                          prevEditorState: null | EditorState,
                                          nextEditorState: EditorState,
                                          dirtyLeavesSet: Set<NodeKey>,
                                          dirtyElementsSet: Map<NodeKey, IntentionallyMarkedAsDirtyElement>,
                                          isComposing: boolean,
                                        Severity: Minor
                                        Found in resources/js/wysiwyg/lexical/history/index.ts - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language