Code Duplication    Length = 3-4 lines in 2 locations

src/Ui/Table/Command/SetDefaultOptions.php 2 locations

@@ 51-54 (lines=4) @@
48
49
            $stream = $table->getStream();
50
51
            if ($stream && $stream->isSortable()) {
52
                $table->setOption('sortable', true);
53
                $table->setOption('limit', $table->getOption('limit', 9999));
54
            }
55
        }
56
57
        /**
@@ 60-62 (lines=3) @@
57
        /**
58
         * Set the default limit if the table is sortable
59
         */
60
        if (($table->getOption('sortable') === true) && ($table->getOption('limit') === null)) {
61
            $table->setOption('limit', $table->getOption('limit', 9999));
62
        }
63
64
        /**
65
         * Set the default breadcrumb.